Bug#893936: gitlab: pkg_resources.DistributionNotFound: The 'python-gitlab==1.3.0' distribution was not found

2018-03-26 Thread Paul Wise
On Mon, 2018-03-26 at 23:14 -0400, Jeremy Bicha wrote:

> So you just want this package to Depend on python3-gitlab (>= 1:1.3.0) ?

That doesn't correspond to what the code requires:

$ grep __requires__ /usr/bin/gitlab
__requires__ = 'python-gitlab==1.3.0'

This would be the correct dependency:

Depends: python3-gitlab (= 1:1.3.0-1)

Or this for slightly more flexibility:

Depends: python3-gitlab (>= 1:1.3.0~), python3-gitlab (<< 1:1.3.1~)

Alternatively the upstream requirements could be relaxed.

> I mean users should install updates and shouldn't keep the older
> version around, which makes me think you might be overstating the
> severity of this bug, but ok…

Agreed for the first part. The severity is valid if you take into
account the upstream version requirements and future releases.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Bug#893936: gitlab: pkg_resources.DistributionNotFound: The 'python-gitlab==1.3.0' distribution was not found

2018-03-26 Thread Jeremy Bicha
So you just want this package to Depend on python3-gitlab (>= 1:1.3.0) ?

I mean users should install updates and shouldn't keep the older
version around, which makes me think you might be overstating the
severity of this bug, but ok…

Thanks,
Jeremy Bicha



Bug#893936: gitlab: pkg_resources.DistributionNotFound: The 'python-gitlab==1.3.0' distribution was not found and is required by the application

2018-03-23 Thread Paul Wise
Package: gitlab-cli
Version: 1:1.3.0-1
Severity: serious
File: /usr/bin/gitlab
Usertags: crash

The dependencies of gitlab-cli need to be more specific about which
version of python3-gitlab is to be installed. gitlab-cli requires the
same version of python3-gitlab as the version of gitlab-cli:

$ gitlab
Traceback (most recent call last):
  File "/usr/bin/gitlab", line 6, in 
from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3195, 
in 
@_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3179, 
in _call_aside
f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3208, 
in _initialize_master_working_set
working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 681, in 
_build_master
ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 999, in 
require
needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 885, in 
resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-gitlab==1.3.0' distribution was 
not found and is required by the application

$ apt-cache show gitlab-cli | grep python3-gitlab
Depends: python3, python3-gitlab

$ apt policy python3-gitlab
python3-gitlab:
  Installed: 7.5.0-1
  Candidate: 7.5.0-1
  Version table:
 1:1.3.0-1 800
800 https://deb.debian.org/debian unstable/main amd64 Packages
 *** 7.5.0-1 900
900 https://deb.debian.org/debian testing/main amd64 Packages
800 https://deb.debian.org/debian unstable/main amd64 Packages
100 /var/lib/dpkg/status

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), 
LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gitlab-cli depends on:
ii  python3 3.6.4-1
ii  python3-gitlab  7.5.0-1

gitlab-cli recommends no packages.

gitlab-cli suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part