the zun cmd "python3 setup.py install" error(s)

Hongbin Lu hongbin034 at gmail.com
Fri Dec 9 09:05:29 UTC 2022


Thanks for reporting the issue.

This is due to the new git owner check [1]. I suggested to skip the check
as following:

# git config --global --add safe.directory /var/lib/zun/zun

Then, re-running your command should work. I submitted a patch to fix the
installation guide [2].

[1] setup_git_directory(): add an owner check for the top-level directory ·
git/git at 8959555 · GitHub
<https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9>
[2] Disable git owner check for zun (I5dd1e405) · Gerrit Code Review
(opendev.org) <https://review.opendev.org/c/openstack/zun/+/867086>

On Tue, Dec 6, 2022 at 2:19 AM 无数的星球 <2292613444 at qq.com> wrote:

> system:ubuntu:20.04
> useDocumentation:
> https://docs.openstack.org/zun/zed/install/controller-install.html
>
> root at controller:/var/lib/zun/zun# python3 setup.py install
> ERROR:root:Error parsing
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/pbr/core.py", line 96, in pbr
>     attrs = util.cfg_to_args(path, dist.script_args)
>   File "/usr/lib/python3/dist-packages/pbr/util.py", line 271, in
> cfg_to_args
>     pbr.hooks.setup_hook(config)
>   File "/usr/lib/python3/dist-packages/pbr/hooks/__init__.py", line 25, in
> setup_hook
>     metadata_config.run()
>   File "/usr/lib/python3/dist-packages/pbr/hooks/base.py", line 27, in run
>     self.hook()
>   File "/usr/lib/python3/dist-packages/pbr/hooks/metadata.py", line 25, in
> hook
>     self.config['version'] = packaging.get_version(
>   File "/usr/lib/python3/dist-packages/pbr/packaging.py", line 874, in
> get_version
>     raise Exception("Versioning for this project requires either an sdist"
> Exception: Versioning for this project requires either an sdist tarball,
> or access to an upstream git repository. It's also possible that there is a
> mismatch between the package name in setup.cfg and the argument given to
> pbr.version.VersionInfo. Project name zun was given, but was not able to be
> found.
> error in setup command: Error parsing /var/lib/zun/zun/setup.cfg:
> Exception: Versioning for this project requires either an sdist tarball, or
> access to an upstream git repository. It's also possible that there is a
> mismatch between the package name in setup.cfg and the argument given to
> pbr.version.VersionInfo. Project name zun was given, but was not able to be
> found.
> root at controller:/var/lib/zun/zun#
>
>
> cryed:
> pip3 install --upgrade distribute
> pip3 install --upgrade tensorflow_gpu
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20221209/7037e50e/attachment-0001.htm>


More information about the openstack-discuss mailing list