-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ImportError with pandas 0.20.0 and 0.20.1 #16288
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
Comments
@jorisvandenbossche did you see something like this earlier? |
Not exactly this error, but possibly related. For me the error with clipboard was something with |
@FragLegs Is this in a clean (newly made) env? Or if not, can you see if you can reproduce it then as well? |
yeah this tries to import the clipboard things at import time, not usage time. You can mitigate atm by installing xclip. |
@jorisvandenbossche This was in a clean env (which starts with pip and wheel, I think, but that's it). I'll try preinstalling xclip and let you know if that helps. |
Note that always importing PyQt4.QtCore will also lead to a RuntimeError when PyQt5 is already imported. See e.g. https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/qt_compat.py#L37 where matplotlib first checks whether one of them has already been imported in which case it is used. |
@FragLegs Out of curiosity, can you check whether you have a PyQt4 directory in the site-packages of the env? |
@jorisvandenbossche Shoot, I totally forgot that I had added a symlink to fwiw - installing xclip does not solve the import problem for me. @jreback Thanks for getting the fix merged so quickly! I can confirm that your commit works perfectly on my machine. |
…started (pandas-dev#16294) closes pandas-dev#16288 (cherry picked from commit 1e59b4c)
Code Sample, a copy-pastable example if possible
With versions 0.20.0 and 0.20.1, I get the following error:
This does not occur with 0.19.2
Here are the other packages installed in my virtualenv
Problem description
It would be nice if pandas was pip installable. As it stands, the new versions are not (for me).
Expected Output
No error when importing pandas.
Output of
pd.show_versions()
I can't get that info without being able to import pandas.
The text was updated successfully, but these errors were encountered: