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

Psutil install fails in RHEL 7 #161

Open
davidauto opened this issue Feb 2, 2021 · 2 comments
Open

Psutil install fails in RHEL 7 #161

davidauto opened this issue Feb 2, 2021 · 2 comments

Comments

@davidauto
Copy link

davidauto commented Feb 2, 2021

Hi Techies,

I am attempting to install psutil. Can someone please help with below. I get error below.
I have tried installing setuptools (pip install setuptools) but it does not help.

Presently python-setuptools-0.9.8-7.el7.noarch is installed and version of pip is pip 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7).

pip install psutil
Collecting psutil
Using cached https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.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)
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
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-jdFWqc/psutil/

Thanks
David

@davidauto
Copy link
Author

I see many recommendations to use setuptools using pip, but that gives below error.

#pip install -U setuptools
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/84/48/5c99d8770fd0a9eb0f82654c3294aad6d0ba9f8600638c2e2ad74f2c5d52/setuptools-52.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "setuptools/init.py", line 16, in
import setuptools.version
File "setuptools/version.py", line 1, in
import pkg_resources
File "pkg_resources/init.py", line 1367
raise SyntaxError(e) from e
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-kVIEY2/setuptools/

@gopala410
Copy link

gopala410 commented Feb 15, 2021

I had the same issue with Centos 8 rolling release today.
Ive installed manually the libraries using pip. When installing helpers library I got the error:

#pip3 install helpers
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Requirement already satisfied: helpers in /usr/local/lib/python3.6/site-packages (0.2.0)

#python3 loki.py
Traceback (most recent call last):
File "loki.py", line 43, in
from lib.lokilogger import *
File "/root/Tools/Loki/lib/lokilogger.py", line 15, in
from helpers import removeNonAsciiDrop
ImportError: cannot import name 'removeNonAsciiDrop'

Ive updated pip just in case that was the issue and still having the same issue.

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

3 participants