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

Error execution pip install #124

Open
tXambe opened this issue May 21, 2024 · 3 comments
Open

Error execution pip install #124

tXambe opened this issue May 21, 2024 · 3 comments

Comments

@tXambe
Copy link

tXambe commented May 21, 2024

Hello,

when I run pip install I have the next error:

`
pip install .
Defaulting to user installation because normal site-packages is not writeable
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/contextvars-2.4.dist-info due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/immutables-0.20.dist-info due to invalid metadata entry 'name'
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/knockpy-7.0.1-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/knockpy-5.4.0-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/tqdm-4.66.4-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/ipaddress-1.0.23-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
DEPRECATION: Loading egg at /usr/local/lib/python3.11/dist-packages/colorclass-2.2.2-py3.11.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at pypa/pip#12330
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/ipaddress-1.0.23-py3.11.egg/EGG-INFO due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/colorclass-2.2.2-py3.11.egg/EGG-INFO due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/contextvars-2.4.dist-info due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/immutables-0.20.dist-info due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/ipaddress-1.0.23-py3.11.egg/EGG-INFO due to invalid metadata entry 'name'
WARNING: Skipping /usr/local/lib/python3.11/dist-packages/colorclass-2.2.2-py3.11.egg/EGG-INFO due to invalid metadata entry 'name'
Processing /opt/WEB/IDENT-PARAMETERS/ParamSpider
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/opt/PNTST/WEB/IDENT-PARAMETERS/ParamSpider/setup.py", line 3, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 106, in setup
_install_setup_requires(attrs)
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 74, in _install_setup_requires
dist = MinimalDistribution(attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 56, in init
super().init(filtered)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 483, in init
for ep in metadata.entry_points(group='distutils.setup_keywords'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 1041, in entry_points
return SelectableGroups.load(eps).select(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 476, in load
ordered = sorted(eps, key=by_group)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 1038, in
eps = itertools.chain.from_iterable(
^
File "/usr/lib/python3.11/importlib/metadata/_itertools.py", line 16, in unique_everseen
k = key(element)
^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 955, in _normalized_name
or super().normalized_name
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 627, in normalized_name
return Prepared.normalize(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/init.py", line 882, in normalize
return re.sub(r"[-
.]+", "-", name).lower().replace('-', '
')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/re/init.py", line 185, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
[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.

`

My version of pip is 24.0 and python 3.11

Anyone can help me ?

A greeting and thanks.

@rainman456
Copy link

use sudo pip3

@tXambe
Copy link
Author

tXambe commented May 29, 2024

Hello,

same error

@knrredhelmet
Copy link

or use my tool
https://github.com/knrredhelmet/paraminer

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

3 participants