Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730762 - dev-python/pyroute2-0.5.12 : version is not correct (0.0.0)
Summary: dev-python/pyroute2-0.5.12 : version is not correct (0.0.0)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL: https://github.com/svinota/pyroute2/i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-04 20:58 UTC by bdouxx
Modified: 2020-07-06 21:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bdouxx 2020-07-04 20:58:24 UTC
hi

After installation of dev-python/pyroute2-0.5.12
There is a problem in the calculated version (0.0.0)


ls -d1 /usr/lib/python3.7/site-packages/pyroute2*
/usr/lib/python3.7/site-packages/pyroute2
/usr/lib/python3.7/site-packages/pyroute2-0.0.0-py3.7.egg-info


cat /usr/lib/python3.7/site-packages/pyroute2/config/version.py
__version__ = ""



It's a problem for pulseaudio-dlna
pkg_resources.ContextualVersionConflict: (pyroute2 0.0.0 (/usr/lib/python3.7/site-packages), Requirement.parse('pyroute2>=0.3.5'), {'pulseaudio-dlna'})





Reproducible: Always
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2020-07-06 03:48:07 UTC
I agree that it's not correct, but is it hurting anything?

      version=config.get('setup', 'release'),
config = configparser.ConfigParser()
config.read('setup.ini')

cat setup.ini
[setup]
version=0.5
release=
setuplib=setuptools

so, it's failing because upstream is not setting the release on their pypi releases.
Comment 2 bdouxx 2020-07-06 21:07:58 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #1)
> I agree that it's not correct, but is it hurting anything?
> 


Yes, pulseaudio-dlna can't start due to incorrect minimal version: 

```
pulseaudio-dlna 
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pyroute2 0.0.0 (/usr/lib/python3.7/site-packages), Requirement.parse('pyroute2>=0.3.5'), {'pulseaudio-dlna'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/pulseaudio-dlna", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pyroute2>=0.3.5' distribution was not found and is required by pulseaudio-dlna
```
Comment 3 Larry the Git Cow gentoo-dev 2020-07-06 21:43:25 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=625b2c77b51540d5633d38a81e3e612e849dedb6

commit 625b2c77b51540d5633d38a81e3e612e849dedb6
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2020-07-06 21:41:34 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2020-07-06 21:43:19 +0000

    dev-python/pyroute2: fix install metadata
    
    Closes: https://bugs.gentoo.org/730762
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.23
    RepoMan-Options: --force
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 .../pyroute2/{pyroute2-0.5.12.ebuild => pyroute2-0.5.12-r1.ebuild}   | 5 +++++
 1 file changed, 5 insertions(+)