- changed status to wontfix
RuntimeWarnings during importing of anything that touches pandas
Issue #42
wontfix
when importing anything that eventually touches pandas, with numpy>=1.15.0
installed, warnings that look like this fill the console:
RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd
we are not sure about the explanation for this, but we think it could be the case that numpy 1.15.0 changes something in such a way that other packages like pandas should now build their wheels against numpy 1.15.0 to avoid this message, but pandas still builds instead against an older version of numpy
there are two workarounds:
- downgrade numpy via
pip install numpy==1.14.5
- rebuild pandas (and any other offending packages) from source via
pip install --no-binary pandas
if this continues to be a major issue, we are considering restricting the numpy requirement to numpy>=1.10.4,<1.15.0
in setup.py
's install_requires
list
Comments (2)
-
reporter -
reporter Full example:
$ pip install numpy==1.15.0 Collecting numpy==1.15.0 Using cached https://files.pythonhosted.org/packages/3d/d6/f04730ad69240be04584b3979dcd2f0b25f9e58463547df6fcafa139c567/numpy-1.15.0-cp27-none-win_amd64.whl Installing collected packages: numpy Found existing installation: numpy 1.14.5 Uninstalling numpy-1.14.5: Successfully uninstalled numpy-1.14.5 Successfully installed numpy-1.15.0 $ python Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pandas as pd C:\Users\thoma\venv\lib\site-packages\pandas\_libs\__init__.py:4: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime C:\Users\thoma\venv\lib\site-packages\pandas\__init__.py:26: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import (hashtable as _hashtable, C:\Users\thoma\venv\lib\site-packages\pandas\core\dtypes\common.py:6: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import algos, lib C:\Users\thoma\venv\lib\site-packages\pandas\core\util\hashing.py:7: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import hashing, tslib C:\Users\thoma\venv\lib\site-packages\pandas\core\indexes\base.py:7: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import (lib, index as libindex, tslib as libts, C:\Users\thoma\venv\lib\site-packages\pandas\tseries\offsets.py:21: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd import pandas._libs.tslibs.offsets as liboffsets C:\Users\thoma\venv\lib\site-packages\pandas\core\ops.py:16: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import algos as libalgos, ops as libops C:\Users\thoma\venv\lib\site-packages\pandas\core\indexes\interval.py:32: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs.interval import ( C:\Users\thoma\venv\lib\site-packages\pandas\core\internals.py:14: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import internals as libinternals C:\Users\thoma\venv\lib\site-packages\pandas\core\sparse\array.py:33: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd import pandas._libs.sparse as splib C:\Users\thoma\venv\lib\site-packages\pandas\core\window.py:36: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd import pandas._libs.window as _window C:\Users\thoma\venv\lib\site-packages\pandas\core\groupby\groupby.py:68: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import (lib, reduction, C:\Users\thoma\venv\lib\site-packages\pandas\core\reshape\reshape.py:30: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import algos as _algos, reshape as _reshape C:\Users\thoma\venv\lib\site-packages\pandas\io\parsers.py:45: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd import pandas._libs.parsers as parsers C:\Users\thoma\venv\lib\site-packages\pandas\io\pytables.py:50: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected zd, got zd from pandas._libs import algos, lib, writers as libwriters >>> quit() $ pip install numpy==1.14.5 Collecting numpy==1.14.5 Using cached https://files.pythonhosted.org/packages/8e/a0/104512bc5a87b03689ce5b3d3778d60a0ebdc039b6084636158a1a839894/numpy-1.14.5-cp27-none-win_amd64.whl Installing collected packages: numpy Found existing installation: numpy 1.15.0 Uninstalling numpy-1.15.0: Successfully uninstalled numpy-1.15.0 Successfully installed numpy-1.14.5 $ python Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pandas as pd >>> quit()
- Log in to comment