BUG: import pandas 2.2.3 on WSL 2.4.12.0 raises broken support for `numpy.longdouble` dtype warning
Closed this issue · 3 comments
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
Thanks for the report. What do you get if you do import numpy
?
No error shown, just a regular import :
>>> import numpy
>>>
It appears to me this is not an issue with pandas: numpy/numpy#22187.
Closing.