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 installing pyvmomi 8.0.3.0.1 with setuptools 72.1.0 #1087

Open
jorgeaaq70 opened this issue Aug 8, 2024 · 0 comments
Open

Error installing pyvmomi 8.0.3.0.1 with setuptools 72.1.0 #1087

jorgeaaq70 opened this issue Aug 8, 2024 · 0 comments
Labels

Comments

@jorgeaaq70
Copy link

Describe the bug

File "/tmp/pip-install-qrfzps_2/pyvmomi_eb551e3266b44268b27be8d1df5a64d9/setup.py", line 46, in
setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/init.py", line 108, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/dist.py", line 945, in run_command
super().run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 310, in run
self.find_sources()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 318, in find_sources
mm.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 544, in run
self.prune_file_list()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 610, in prune_file_list
base_dir = self.distribution.get_fullname()
File "/usr/local/lib/python3.9/site-packages/setuptools/_core_metadata.py", line 266, in get_fullname
return _distribution_fullname(self.get_name(), self.get_version())
File "/usr/local/lib/python3.9/site-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname
canonicalize_version(version, strip_trailing_zero=False),
TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'

Reproduction steps

1.Centos stream 9
2. Python3
3. setuptools 72.1.0
4.-wheel 0.44.0
5.- pyvmomi-8.0.3.0.1

Expected behavior

the function canonicalize_version returns two values

canonicalize_version(version, strip_trailing_zero=False),

and the setup expect only one

this apparently is a problem with setuptools above 70

some changes need to be done to receive the two values without crash

changing in setuptools :

canonicalize_version(version)

allow the installation, but this is not a very good option and not in control of this project, but receiving the 2 values could be manage it for this project

sorry for my bad english

Additional context

No response

@jorgeaaq70 jorgeaaq70 added the bug label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant