Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: import pandas 2.2.3 on WSL 2.4.12.0 raises broken support for numpy.longdouble dtype warning #61153

Open
2 of 3 tasks
pierre-eliep-met opened this issue Mar 20, 2025 · 2 comments
Labels
Bug Build Library building on various platforms Needs Info Clarification about behavior needed to assess issue

Comments

@pierre-eliep-met
Copy link

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

# on WSL2, ubuntu 24
import pandas

#raises
#/home/pepmts/git_projects/mts-python-monorepo/projects/mml-python-toolkit/venv/lib/python3.11/#site-packages/numpy/_core/getlimits.py:551: UserWarning: Signature #b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\x00\x00\x00\x00\x00\x00' for <class #'numpy.longdouble'> does not match any known type: falling back to type probe function.
#This warnings indicates broken support for the dtype!
#  machar = _get_machar(dtype)

Issue Description

Whenever I import pandas on WSL I get this broken dtype warning

>>> import pandas
/home/pepmts/git_projects/mts-python-monorepo/projects/mml-python-toolkit/venv/lib/python3.11/site-packages/numpy/_core/getlimits.py:551: UserWarning: Signature b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\x00\x00\x00\x00\x00\x00' for <class 'numpy.longdouble'> does not match any known type: falling back to type probe function.
This warnings indicates broken support for the dtype!
  machar = _get_machar(dtype)

Expected Behavior

no warning

Installed Versions

INSTALLED VERSIONS

commit : 0691c5c
python : 3.11.5
python-bits : 64
OS : Linux
OS-release : 4.4.0-26100-Microsoft
Version : #1882-Microsoft Fri Jan 01 08:00:00 PST 2016
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : C.UTF-8
LOCALE : en_US.UTF-8

pandas : 2.2.3
numpy : 2.2.4
pytz : 2024.2
dateutil : 2.9.0.post0
pip : 24.3.1
Cython : None
sphinx : None
IPython : 8.18.1
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
blosc : None
bottleneck : None
dataframe-api-compat : None
fastparquet : None
fsspec : None
html5lib : None
hypothesis : None
gcsfs : None
jinja2 : 3.1.4
lxml.etree : 5.3.0
matplotlib : 3.9.4
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
psycopg2 : None
pymysql : None
pyarrow : None
pyreadstat : None
pytest : 8.3.2
python-calamine : None
pyxlsb : None
s3fs : None
scipy : 1.13.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlsxwriter : None
zstandard : None
tzdata : 2024.2
qtpy : None
pyqt5 : None

@pierre-eliep-met pierre-eliep-met added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 20, 2025
@rhshadrach
Copy link
Member

Thanks for the report. What do you get if you do import numpy?

@rhshadrach rhshadrach added Needs Info Clarification about behavior needed to assess issue Build Library building on various platforms Bug and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 20, 2025
@pierre-eliep-met
Copy link
Author

No error shown, just a regular import :

>>> import numpy
>>> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Build Library building on various platforms Needs Info Clarification about behavior needed to assess issue
Projects
None yet
Development

No branches or pull requests

2 participants