Package: python3
Version: 3.6.7-1~18.04
Severity: important

Dear Maintainer,

after installing a python package (radiotray) from source with pip3 (sudo pip3
install .) The package is not listed by pip3 (pip3 list), nor can it be
imported.

When checking manually the files a located under: /usr/lib/python3.6/site-
packages/radiotray
But this path is missing in the sys.path of python3:

python3 -m site
sys.path = [
    '/home/mat',
    '/usr/lib/python36.zip',
    '/usr/lib/python3.6',
    '/usr/lib/python3.6/lib-dynload',
    '/home/mat/.local/lib/python3.6/site-packages',
    '/usr/local/lib/python3.6/dist-packages',
    '/usr/lib/python3/dist-packages',
]
USER_BASE: '/home/mat/.local' (exists)
USER_SITE: '/home/mat/.local/lib/python3.6/site-packages' (exists)
ENABLE_USER_SITE: True

I am aware of the circumstance that debian place the python module installed as
deb package under dist-packages, but this should not prohibit the usage of pip3
for system wide python modules.

A similar bug issue is: https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=765022
Sadly this issue was archived without solving the problem.

So please add the site-packages directory under /usr to the sys.path of
python3.
Propably the following patch need to be adapted to fix this issue:
https://salsa.debian.org/cpython-
team/python3/-/blob/master/debian/patches/sysconfig-debian-schemes.diff

After adding the site-packages directory to the sys.path it should be possible
to use pip3 for install modules system wide.

Cheers Matthias



-- System Information:
Debian Release: buster/sid
  APT prefers bionic-updates
  APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 
'bionic'), (100, 'bionic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-101-generic (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3 depends on:
ii  libpython3-stdlib  3.6.7-1~18.04
ii  python3-minimal    3.6.7-1~18.04
ii  python3.6          3.6.9-1~18.04ubuntu1

python3 recommends no packages.

Versions of packages python3 suggests:
pn  python3-doc   <none>
pn  python3-tk    <none>
pn  python3-venv  <none>

-- no debconf information

Reply via email to