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

'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. #1268

Closed
dulek opened this issue Apr 13, 2018 · 13 comments

Comments

@dulek
Copy link

dulek commented Apr 13, 2018

Newest release (5.4.4) has installation broken somehow. This is what we get on CentOS 7: http://paste.openstack.org/show/719136/

@krajster
Copy link

Same error.
Fix It: pip3.4 install --upgrade setuptools.

http://paste.openstack.org/show/719139/

@foosel
Copy link

foosel commented Apr 13, 2018

Another one chiming in with the same issue. Except I can't tell several thousand of users out there to update setuptools on their individual installs to fix a setup problem with a third party dependency :/

@bleloch
Copy link

bleloch commented Apr 13, 2018

Observed this morning whilst installing diamond w/ psutil 5.4.4. Installed with 5.4.3 without issue. Able to install 5.4.4 by changing extras_require in setup.py to install_requires, and updating the enclosing type to a list

giampaolo added a commit that referenced this issue Apr 13, 2018
@giampaolo
Copy link
Owner

New release is out.

@msolimans
Copy link

fixed by running $ pip install --user --upgrade setuptools

@relrod
Copy link

relrod commented Jul 15, 2020

@giampaolo Today's releases seem to have caused this to show up again on EL7 boxes 😢

[root@6fa896ce6445 /]# pip install psutil
Collecting psutil
  Using cached https://files.pythonhosted.org/packages/aa/3e/d18f2c04cf2b528e18515999b0c8e698c136db78f62df34eee89cee205f1/psutil-5.7.2.tar.gz
    Complete output from command python setup.py egg_info:
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    error in psutil setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ajpB12/psutil/
You are using pip version 8.1.2, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@giampaolo
Copy link
Owner

You are using pip version 8.1.2, however version 20.1.1 is available.

Boy, that is jurassic ancient! Can't you upgrade pip? =)

@relrod
Copy link

relrod commented Jul 15, 2020

@giampaolo
Yeah, it is, but that's what's currently supported in EPEL. We actually found this because we use psutil in some Ansible integration tests and it broke on some distros in our CI with older pip. If the breakage was intentional, we can deal, but based on the changelog I wasn't sure that it was. :)

Thanks for the reply!

@giampaolo
Copy link
Owner

What about this #1268 (comment)?

@relrod
Copy link

relrod commented Jul 15, 2020

Well, we need to test against the distro-supported versions. We can pin psutil to the version before today's releases in those tests. So it's not a huge deal. This was mainly an FYI to let you know it broke older versions, in case that wasn't intentional. If it is, feel free to ignore and we'll live. :)

@snowmansora
Copy link

It is also breaking our deployment script which installs psutil on a fresh CentOS 7.
If it can be fixed in the latest release, it will be great, or else our old deployment script will fail.
Thanks.

@lianran
Copy link

lianran commented Jul 17, 2020

Maybe you can specific the version of psutil to avoid installing the latest version.

pip install psutil==5.7.0

@snowmansora

bzhaoopenstack added a commit to theopenlab/openlab-zuul-jobs that referenced this issue Jul 17, 2020
The upstream issue giampaolo/psutil#1268
Downgrade the psutil from 5.7.2 to 5.7.0 during testing when using py27.
bzhaoopenstack added a commit to theopenlab/openlab-zuul-jobs that referenced this issue Jul 17, 2020
The upstream issue giampaolo/psutil#1268
Downgrade the psutil from 5.7.2 to 5.7.0 during testing when using py27.
@Stripling07
Copy link

I am still having this problem... even using psutil 5.7.0 ....

pont-us added a commit to bcdev/jpy that referenced this issue Aug 4, 2020
AppVeyor Windows Python 3.4 build was failing, apparently due to
giampaolo/psutil#1268 . This commit
implements a suggested workaround for the problem.
RuizSerra added a commit to RuizSerra/meltingpot that referenced this issue Feb 14, 2023
to address "error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers."
as per giampaolo/psutil#1268
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants