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: "Exception: Versioning requires sdist tarball..." #4

Open
Stooovie opened this issue Sep 19, 2019 · 1 comment
Open

Comments

@Stooovie
Copy link

Hi, I'm getting this on running the setup.py command in a Home Assistant Docker container:


ERROR:root:Error parsing
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pbr/core.py", line 96, in pbr
attrs = util.cfg_to_args(path, dist.script_args)
File "/usr/local/lib/python3.7/site-packages/pbr/util.py", line 270, in cfg_to_args
pbr.hooks.setup_hook(config)
File "/usr/local/lib/python3.7/site-packages/pbr/hooks/init.py", line 25, in setup_hook
metadata_config.run()
File "/usr/local/lib/python3.7/site-packages/pbr/hooks/base.py", line 27, in run
self.hook()
File "/usr/local/lib/python3.7/site-packages/pbr/hooks/metadata.py", line 26, in hook
self.config['name'], self.config.get('version', None))
File "/usr/local/lib/python3.7/site-packages/pbr/packaging.py", line 874, in get_version
name=package_name))
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possiblethat there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name cometblue was given, but was not able to be found.
error in setup command: Error parsing /config/cometblue-master/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 cometblue was given, but was not able to be found.

Any tips? Thanks!

@uliluckas
Copy link

uliluckas commented Mar 2, 2022

You are probably no longer interested in the response :-) But still for documentation purposes...

You need to have the .git directory as it is created when you do

git clone https://github.com/xrucka/cometblue.git

It's used by setup.py to get version information.
You probably downloaded a zip instead of cloning. That would explain why you are missing the .git directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants