Skip to content

confusing ImportError message in __init__.py #12176

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
wojdyr opened this issue Jan 29, 2016 · 1 comment
Closed

confusing ImportError message in __init__.py #12176

wojdyr opened this issue Jan 29, 2016 · 1 comment
Labels
Build Library building on various platforms
Milestone

Comments

@wojdyr
Copy link

wojdyr commented Jan 29, 2016

In some cases the error message could be more clear, as discussed here:
69cab57#commitcomment-15762471

my example:

>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/marcin/install/lib/python2.7/site-packages/pandas/__init__.py", line 13, in <module>
    "extensions first.".format(module))
ImportError: C extension: No module named pytz.tzinfo not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.
@jreback
Copy link
Contributor

jreback commented Jan 29, 2016

yeh, prob need to go thru the deps (pytz, dateutil) and try importing them and give a nice message.
numpy is already checked. Then if this is hit it would be a good message.

@jreback jreback added the Build Library building on various platforms label Jan 29, 2016
@jreback jreback added this to the Next Major Release milestone Jan 29, 2016
@jreback jreback modified the milestones: 0.18.0, Next Major Release Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

No branches or pull requests

2 participants