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

Cannot compile version 2.1.85 in CentOS7 #266

Open
fmunteanu opened this issue Aug 1, 2017 · 0 comments
Open

Cannot compile version 2.1.85 in CentOS7 #266

fmunteanu opened this issue Aug 1, 2017 · 0 comments

Comments

@fmunteanu
Copy link

fmunteanu commented Aug 1, 2017

Hi,

My goal is to create a RPM and run a simple yum install aminator command. I'm using python-pbr-3.1.1-1.el7 and when I compile, I get this error:

+ cd aminator-2.1.85.dev
+ /usr/bin/python setup.py build
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/lib/python2.7/site-packages/pbr/util.py", line 249, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/usr/lib/python2.7/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/usr/lib/python2.7/site-packages/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/usr/lib/python2.7/site-packages/pbr/hooks/metadata.py", line 26, in hook
    self.config['name'], self.config.get('version', None))
  File "/usr/lib/python2.7/site-packages/pbr/packaging.py", line 755, 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 possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name aminator was given, but was not able to be found.
error in setup command: Error parsing /home/vagrant/rpm/BUILD/aminator-2.1.85.dev/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 aminator was given, but was not able to be found.

Can you please me know how I could bypass this error? I want to use a real release tarball and package everything into a src.rpm file, not latest cloned git repository.

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

1 participant