<div dir="ltr">Thanks for reporting the issue.<div><br></div><div>This is due to the new git owner check [1]. I suggested to skip the check as following:</div><div><br></div><div># git config --global --add safe.directory /var/lib/zun/zun</div><div><br></div><div>Then, re-running your command should work. I submitted a patch to fix the installation guide [2].</div><div><br></div><div>[1] <a href="https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9">setup_git_directory(): add an owner check for the top-level directory · git/git@8959555 · GitHub</a></div><div>[2] <a href="https://review.opendev.org/c/openstack/zun/+/867086">Disable git owner check for zun (I5dd1e405) · Gerrit Code Review (opendev.org)</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 6, 2022 at 2:19 AM 无数的星球 <<a href="mailto:2292613444@qq.com">2292613444@qq.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>system:ubuntu:20.04</div><div>use<font style="display:inline;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal">Documentation:<a href="https://docs.openstack.org/zun/zed/install/controller-install.html" target="_blank">https://docs.openstack.org/zun/zed/install/controller-install.html</a></font></div><div><font style="display:inline;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal"><br></font></div><div>root@controller:/var/lib/zun/zun# python3 setup.py install</div><div>ERROR:root:Error parsing</div><div>Traceback (most recent call last):</div><div>  File "/usr/lib/python3/dist-packages/pbr/core.py", line 96, in pbr</div><div>    attrs = util.cfg_to_args(path, dist.script_args)</div><div>  File "/usr/lib/python3/dist-packages/pbr/util.py", line 271, in cfg_to_args</div><div>    pbr.hooks.setup_hook(config)</div><div>  File "/usr/lib/python3/dist-packages/pbr/hooks/__init__.py", line 25, in setup_hook</div><div>    metadata_config.run()</div><div>  File "/usr/lib/python3/dist-packages/pbr/hooks/base.py", line 27, in run</div><div>    self.hook()</div><div>  File "/usr/lib/python3/dist-packages/pbr/hooks/metadata.py", line 25, in hook</div><div>    self.config['version'] = packaging.get_version(</div><div>  File "/usr/lib/python3/dist-packages/pbr/packaging.py", line 874, in get_version</div><div>    raise Exception("Versioning for this project requires either an sdist"</div><div>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.</div><div>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.</div><div>root@controller:/var/lib/zun/zun#</div></div><div><br></div><div><br></div><div><font style="display:inline;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal">cryed:</font></div><font style="display:inline;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal"><div style="display:block;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal">pip3 install --upgrade distribute</div><div style="display:block;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal">pip3 install --upgrade tensorflow_gpu</div><div style="display:block;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal"><br></div><div style="display:block;font-size:14px;font-family:Verdana;color:rgb(0,0,0);background-color:rgba(0,0,0,0);font-weight:400;font-style:normal"><br></div></font><div></div><div><span style="font-family:"Source Code Pro","DejaVu Sans Mono","Ubuntu Mono","Anonymous Pro","Droid Sans Mono",Menlo,Monaco,Consolas,Inconsolata,Courier,monospace,"PingFang SC","Microsoft YaHei",sans-serif;white-space:pre-wrap;background-color:rgb(243,244,245)"><br></span></div><div><br></div></blockquote></div>