vmware / vmware/pyvmomi

Error installing pyvmomi 8.0.3.0.1 with setuptools 72.1.0

Open
#1,087 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the installation on CentOS Stream 9 with Python 3, setuptools 72.1.0, wheel 0.44.0, and pyvmomi-8.0.3.0.1, then inspect setup.py around line 46 and the version metadata path shown in the traceback. Done means the package installs successfully with the affected setuptools version without requiring a change outside this project.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.