Skip to content

BUG: Getting import error on master "Cannot import IS64" #41340

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

Closed
phofl opened this issue May 5, 2021 · 3 comments
Closed

BUG: Getting import error on master "Cannot import IS64" #41340

phofl opened this issue May 5, 2021 · 3 comments
Labels
Bug Upstream issue Issue related to pandas dependency

Comments

@phofl
Copy link
Member

phofl commented May 5, 2021

I might be doing something wrong here, but when executing

import pandas as pd

I get an import error after pulling f40e58c. The commit before is fine. Can someone reproduce?

Traceback (most recent call last):
  File "/home/developer/.config/JetBrains/PyCharm2021.1/scratches/scratch_4.py", line 566, in <module>
    import pandas as pd
  File "/home/developer/PycharmProjects/pandas/pandas/__init__.py", line 22, in <module>
    from pandas.compat import (
  File "/home/developer/PycharmProjects/pandas/pandas/compat/__init__.py", line 15, in <module>
    from pandas.compat.numpy import (
  File "/home/developer/PycharmProjects/pandas/pandas/compat/numpy/__init__.py", line 7, in <module>
    from pandas.util.version import Version
  File "/home/developer/PycharmProjects/pandas/pandas/util/__init__.py", line 1, in <module>
    from pandas.util._decorators import (  # noqa
  File "/home/developer/PycharmProjects/pandas/pandas/util/_decorators.py", line 14, in <module>
    from pandas._libs.properties import cache_readonly  # noqa
  File "/home/developer/PycharmProjects/pandas/pandas/_libs/__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
  File "pandas/_libs/hashtable.pyx", line 1, in init pandas._libs.hashtable
  File "pandas/_libs/missing.pyx", line 30, in init pandas._libs.missing
ImportError: cannot import name IS64

Process finished with exit code 1

The show versions is from the last working commit

cc @fangchenli

Output of pd.show_versions()

INSTALLED VERSIONS

commit : a43c42c
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-50-generic
Version : #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8

pandas : 1.3.0.dev0+1544.ga43c42c32d
numpy : 1.20.0
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 49.6.0.post20210108
Cython : 0.29.21
pytest : 6.2.1
hypothesis : 6.0.2
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : 1.3.7
lxml.etree : 4.6.2
html5lib : 1.1
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : 1.3.2
fsspec : 0.8.5
fastparquet : 0.5.0
gcsfs : 0.7.1
matplotlib : 3.3.3
numexpr : 2.7.2
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : 1.0.0
pyxlsb : None
s3fs : 0.4.2
scipy : 1.6.0
sqlalchemy : 1.3.22
tables : 3.6.1
tabulate : 0.8.7
xarray : 0.16.2
xlrd : 2.0.1
xlwt : 1.3.0
numba : 0.52.0
None

@phofl phofl added Bug Needs Triage Issue that has not been reviewed by a pandas team member Upstream issue Issue related to pandas dependency and removed Needs Triage Issue that has not been reviewed by a pandas team member labels May 5, 2021
@phofl phofl changed the title BUG: Getting import error on master Can not import IS64 BUG: Getting import error on master "Cannot import IS64" May 5, 2021
@jbrockmendel
Copy link
Member

have you rebuilt recently?

@phofl
Copy link
Member Author

phofl commented May 5, 2021

Yes, did not fix it.

But just setup my complete conda env from scratch , this fixed the error

@phofl phofl closed this as completed May 5, 2021
@phofl phofl added this to the No action milestone May 5, 2021
@abmyii
Copy link
Contributor

abmyii commented Feb 23, 2022

For me the solution (after ensuring my environment was setup correctly) was to run:

make clean   # May be optional
make build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Upstream issue Issue related to pandas dependency
Projects
None yet
Development

No branches or pull requests

3 participants