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

Manual install fails: pbr.version.SemanticVersion #153

Open
IgnacioHeredia opened this issue Apr 26, 2024 · 1 comment
Open

Manual install fails: pbr.version.SemanticVersion #153

IgnacioHeredia opened this issue Apr 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@IgnacioHeredia
Copy link
Collaborator

IgnacioHeredia commented Apr 26, 2024

Manual installation is failing. Installation from PyPi works though.

pip install -e .   
Obtaining file:///home/iheredia/ignacio/projects/deephdc/deepaas
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      ERROR:root:Error parsing
      Traceback (most recent call last):
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/core.py", line 105, in pbr
          attrs = util.cfg_to_args(path, dist.script_args)
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/util.py", line 272, in cfg_to_args
          pbr.hooks.setup_hook(config)
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook
          metadata_config.run()
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/hooks/base.py", line 27, in run
          self.hook()
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/hooks/metadata.py", line 25, in hook
          self.config['version'] = packaging.get_version(
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/packaging.py", line 857, in get_version
          version = _get_version_from_git(pre_version)
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/packaging.py", line 800, in _get_version_from_git
          result = _get_version_from_git_target(git_dir, target_version)
        File "/home/iheredia/anaconda3/lib/python3.8/site-packages/pbr/packaging.py", line 759, in _get_version_from_git_target
          raise ValueError(
      ValueError: git history requires a target version of pbr.version.SemanticVersion(2.3.2), but target version is pbr.version.SemanticVersion(2.0.0)
      error in setup command: Error parsing /home/iheredia/ignacio/projects/deephdc/deepaas/setup.cfg: ValueError: git history requires a target version of pbr.version.SemanticVersion(2.3.2), but target version is pbr.version.SemanticVersion(2.0.0)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

It looks there is a mismatch in versions (ref, ref), due to Release Please not GPG signing the tags (issue).

Temporary fix: revert to last signed tag and install from there:

git checkout tags/2.2.0
pip install -e .
git checkout master
@IgnacioHeredia IgnacioHeredia added the bug Something isn't working label Apr 26, 2024
@IgnacioHeredia IgnacioHeredia changed the title Manual install fails pip install -e . Manual install fails: pbr.version.SemanticVersion Apr 26, 2024
@IgnacioHeredia IgnacioHeredia changed the title Manual install fails: pbr.version.SemanticVersion Manual install fails: pbr.version.SemanticVersion Apr 26, 2024
@IgnacioHeredia
Copy link
Collaborator Author

Maybe when can modify the release please script to sign the releases with a "disposable" private key (ie. create key pair for an ai4os-bot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant