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

Updating psutil fails when running make test #516

Closed
spoonerf opened this issue Sep 26, 2022 · 5 comments
Closed

Updating psutil fails when running make test #516

spoonerf opened this issue Sep 26, 2022 · 5 comments
Assignees

Comments

@spoonerf
Copy link
Contributor

Currently running into this error when running make test

Screenshot 2022-09-26 at 14 04 54

@Marigold
Copy link
Collaborator

@spoonerf can you try running pip install psutil==5.9.2 and paste the error here? The error from poetry is quite strange and I can't replicate it.

@spoonerf
Copy link
Contributor Author

Sure! It is:

(.venv) fionaspooner@Fionas-MBP etl % pip install psutil==5.9.2
Collecting psutil==5.9.2
Downloading psutil-5.9.2.tar.gz (479 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 479.8/479.8 KB 5.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
WARNING: You are using pip version 22.0.3; however, version 22.2.2 is available.
You should consider upgrading via the '/Users/fionaspooner/Documents/OWID/repos/etl/.venv/bin/python -m pip install --upgrade pip' command.

@Marigold
Copy link
Collaborator

@spoonerf I couldn't replicate it, but found this thread. Could you please try pip install setuptools --upgrade and then pip install psutil==5.9.2 again? (You could also try reinstalling pyenv python, but hopefully that won't be necessary)

@spoonerf
Copy link
Contributor Author

That worked! 🥳

I'm getting this warning now - not sure if that's anything to worry about but otherwise make test all ran perfectly. Thanks!!

Collecting setuptools
Using cached setuptools-65.4.0-py3-none-any.whl (1.2 MB)
WARNING: Error parsing requirements for etl: Invalid URL: vendor/owid-catalog-py

@Marigold Marigold self-assigned this Sep 27, 2022
@Marigold
Copy link
Collaborator

Marigold commented Sep 27, 2022

Don't worry... and keep your fingers crossed :). If something like this happens again, remove the entire etl/.venv, update poetry self update, then pip install --upgrade pip and try running make install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants