Skip to content
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

ImportError: version conflict for psutil-5.0.1-cp36-cp36m-win_amd64.whl #951

Closed
csarn opened this issue Jan 20, 2017 · 13 comments
Closed

ImportError: version conflict for psutil-5.0.1-cp36-cp36m-win_amd64.whl #951

csarn opened this issue Jan 20, 2017 · 13 comments
Labels

Comments

@csarn
Copy link

csarn commented Jan 20, 2017

When pip-installing psutil on Python 3.6 on Windows 7 64-bit, the psutil package cannot be imported:

C:> python -c "import psutil"
Traceback (most recent call last):
File "", line 1, in
File "E:\Py36\lib\site-packages\psutil\__init__.py", line 218, in
raise ImportError(msg)
ImportError: version conflict: 'E:\Py36\lib\site-packages\psutil\_psutil_windows.cp36-win_amd64.pyd' C extension module was built for another version of psutil (5.0.2 instead of 5.0.1); you may try to 'pip uninstall psutil', manually remove E:\Py36\lib\site-packages\psutil_psutil_windows.cp36-win_amd64.pyd or clean the virtual env somehow, then reinstall

@giampaolo
Copy link
Owner

"you may try to 'pip uninstall psutil', manually remove E:\Py36\lib\site-packages\psutil_psutil_windows.cp36-win_amd64.pyd or clean the virtual env somehow, then reinstall"

have you tried this?

@csarn
Copy link
Author

csarn commented Jan 20, 2017

Yes I have. I also cleaned out the pip cache, so it downloaded the file again. The problem persists.

@ymeine
Copy link

ymeine commented Jan 20, 2017

In the meantime, the build at Python Extension Packages for Windows - Christoph Gohlke works fine.

@giampaolo
Copy link
Owner

It looks like this is a problem with your past installation. If no psutil is installed that error message shouldn't occur. You can test this by installing another psutil version as in "pip install psutil==5.0.0" in which case I expect the same error message.
Please try to search "psutil" inside your Python installation and remove any occurrence (either file or directory).

@prokher
Copy link

prokher commented Jan 21, 2017

I have exactly the same issue. Installing previous version with pip install psutil==5.0.0 works fine, which I am going to proceed with as a workaround.

@csarn
Copy link
Author

csarn commented Jan 21, 2017

I tried it on a completely fresh windows 7 install, fresh python3.6, nothing installed or copied except win7, servicepack1, firefox, python. Even there the problem is the same, so this must be a problem in the wheel.

homu added a commit to ycm-core/ycmd that referenced this issue Jan 22, 2017
[READY] Exclude psutil 5.0.1 from test requirements

Last version of psutil (5.0.1) is broken on Python 3.6 and Windows 64-bit. See issue giampaolo/psutil#951. We exclude it from our test requirements. This fixes the builds with `arch=64` and `python=36` on AppVeyor.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/695)
<!-- Reviewable:end -->
@giampaolo
Copy link
Owner

I tried now and I could install psutil via pip both with 32bit and 64bit versions of python 3.6. Really not sure what to think. :-\

@ghost
Copy link

ghost commented Feb 1, 2017

This also seems to be happening for us as well.

@giampaolo
Copy link
Owner

@ghost
Copy link

ghost commented Feb 1, 2017

The error only occurs on py36-x64, which I happen to be running. I can confirm that:

  1. The pip version of psutil doesn't work on py36-x64.
  2. The wheel that you provided for py36-x64 does work.

Not sure about the 32-bit wheel, but that one wasn't broken in the first place.

@csarn
Copy link
Author

csarn commented Feb 1, 2017

I can second that. 64bit wheel for 5.1.0 fixes the import error.

@giampaolo
Copy link
Owner

OK, then for some reason the 5.0.1 wasn't properly built or something. I will release a 5.1.0 wheel version soon (possibly today).

@giampaolo
Copy link
Owner

OK, new version is out.

htgoebel pushed a commit to htgoebel/pyinstaller that referenced this issue Feb 2, 2017
htgoebel pushed a commit to htgoebel/pyinstaller that referenced this issue Feb 2, 2017
htgoebel pushed a commit to htgoebel/pyinstaller that referenced this issue Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants