Package: python3.9
Version: 3.9.7-4
Severity: normal

Hello,

In sys.path:

>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', 
'/usr/lib/python3.9/lib-dynload', 
'/home/samy/.local/lib/python3.9/site-packages', 
'/usr/local/lib/python3.9/dist-packages', '/usr/lib/python3/dist-packages', 
'/usr/lib/python3.9/dist-packages']

We can see /usr/local/lib/python3.9/dist-packages, but AIUI,
'dist-packages' is meant only for distribution-provided python packages,
which /usr/local is definitely not about. And indeed, when installing
some python library with the usual python3 setup.py build / install
process (e.g. from upstream speech-dispatcher source), the python
modules are going to /usr/local/lib/python3.9/site-packages, and not
dist-packages.

And thus the just-installed python modules are not getting found, and
people are confused since they did run python3 setup.py properly.


So it seems that sys.path should be fixed into:

>>> sys.path
['', '/usr/lib/python39.zip', '/usr/lib/python3.9', 
'/usr/lib/python3.9/lib-dynload', 
'/home/samy/.local/lib/python3.9/site-packages', 
'/usr/local/lib/python3.9/site-packages', '/usr/lib/python3/dist-packages', 
'/usr/lib/python3.9/dist-packages']

?

Samuel

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 
'proposed-updates-debug'), (500, 'proposed-updates'), (500, 
'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 
'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3.9 depends on:
ii  libpython3.9-stdlib  3.9.7-4
ii  media-types          4.0.0
ii  mime-support         3.66
ii  python3.9-minimal    3.9.7-4

python3.9 recommends no packages.

Versions of packages python3.9 suggests:
ii  binutils        2.37-7
pn  python3.9-doc   <none>
ii  python3.9-venv  3.9.7-4

-- no debconf information

-- 
Samuel
       La  fonction  memfrob() crypte les n premiers octets de la
       zone de mémoire  s  en  effectuant  un  OU-exclusif  entre
       chaque  octet  et le nombre 42.
(extrait de la page de man de memfrob -- Manuel du programmeur Linux)

Reply via email to