Skip to content

cant install the setup file in python 3.10.12 in ubuntu 22 LTS #1

@EvilOdil

Description

@EvilOdil

odil@Odil-ubuntu:~/vector_perception$ pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/odil/vector_perception
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]
running egg_info
creating /tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info
writing /tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-k32enwin/vector_perception.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/home/odil/vector_perception/setup.py", line 7, in
setup(
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/init.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/dist.py", line 1104, in run_command
super().run_command(command)
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 312, in run
self.find_sources()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
mm.run()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run
self.prune_file_list()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/command/sdist.py", line 162, in prune_file_list
super().prune_file_list()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 386, in prune_file_list
base_dir = self.distribution.get_fullname()
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 275, in get_fullname
return _distribution_fullname(self.get_name(), self.get_version())
File "/home/odil/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 293, 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions