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

Install borks at: "python setup.py egg_info did not run successfully." #103

Closed
myriad007 opened this issue Dec 28, 2024 · 3 comments
Closed

Comments

@myriad007
Copy link

myriad007 commented Dec 28, 2024

Unable to get this to install properly on Ubuntu 22.05 getting the following error:
`Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-a_5f4ser/ratelimit.egg-info
writing /tmp/pip-pip-egg-info-a_5f4ser/ratelimit.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-a_5f4ser/ratelimit.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-a_5f4ser/ratelimit.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-a_5f4ser/ratelimit.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-a_5f4ser/ratelimit.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-1usau_h6/ratelimit_ed6c80dc89634660853dc9e882d0f763/setup.py", line 10, in
setup(
File "/usr/local/lib/python3.10/dist-packages/setuptools/init.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 995, in run_command
super().run_command(command)
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 313, in run
self.find_sources()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 321, in find_sources
mm.run()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/egg_info.py", line 549, in run
self.prune_file_list()
File "/usr/local/lib/python3.10/dist-packages/setuptools/command/sdist.py", line 162, in prune_file_list
super().prune_file_list()
File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/command/sdist.py", line 380, in prune_file_list
base_dir = self.distribution.get_fullname()
File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 267, in get_fullname
return _distribution_fullname(self.get_name(), self.get_version())
File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 285, in _distribution_fullname
canonicalize_version(version, strip_trailing_zero=False),
TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
[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.`
Any suggestions as to how I can fix this?

@timrae
Copy link
Collaborator

timrae commented Dec 28, 2024

pypa/setuptools#4483

@timrae timrae closed this as completed Dec 28, 2024
@timrae
Copy link
Collaborator

timrae commented Dec 28, 2024

In the future, when making use of open source projects, might I suggest that you at least make an attempt at solving issues yourself before asking the project maintainers for help?

This is clearly an issue with your local python environment, which you could have found a solution to in about 10 seconds by googling the error message.

In case you're new to this, here's an excerpt I found about open source etiquette:

  • Generally, avoid asking questions about an open-source project before putting in the effort to try it yourself (unless you get stuck of course), as that is considered the lazy behavior of unskilled software engineers and actual trolls, and you might get ignored for it. Respectful software engineers always give open-source projects the benefit of the doubt and do due diligence before asking questions to avoid wasting the project author's time.
  • Do not open an issue when the effort to implement a fix or a feature is very small, including documentation changes. Open a pull request instead. Remember that open-source projects are a community effort. Finding a small issue or feature that is quick to implement is your opportunity to make a contribution!
  • When reporting an issue, provide a step-by-step scenario for reproducing the issue if it is easy to reproduce, and follow troubleshooting instructions that project authors might give you to help you troubleshoot the issue further.
  • Never put pressure on an open-source project's author if he is unavailable or too busy as that comes across as disrespectful and might discourage them from becoming available, especially given that they offer the project as a free service. There is never a need to sweat an author's lack of availability with open-source projects. The whole point of open-source is anybody can clone the code and make future changes themselves in a fork if the project's author becomes temporarily or permanently unavailable. And, Pull Requests make it possible to eventually merge the fork back in if the author does become available again. Furthermore, this can be an opportunity to learn a new codebase and improve your software engineering skills. Do not waste it by whining about an author's lack of availability.

@myriad007
Copy link
Author

myriad007 commented Dec 28, 2024

Sorry Tim, my bad. Thanks for the info.
For anyone else receiving the same error run: pip install -U setuptools[core]

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

2 participants