python library installed into site-packages instead of into dist-packages

Bug #1843988 reported by Ernst Kloppenburg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
New
Low
Unassigned

Bug Description

The lirc package comes with python libraries and it installs the libraries into
   /usr/lib/x86_64-linux-gnu/python3.6/site-packages
This results in the libraries not being found by system python.

From what I read in https://wiki.debian.org/Python
they should instead be installed into
   /usr/lib/python3/dist-packages

Release: 18.04

Package: lirc
Version: 0.10.0-2

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: lirc 0.10.0-2
ProcVersionSignature: Ubuntu 4.15.0-62.69-generic 4.15.18
Uname: Linux 4.15.0-62-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: KDE
Date: Sat Sep 14 12:41:30 2019
InstallationDate: Installed on 2014-08-28 (1842 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
SourcePackage: lirc
UpgradeStatus: Upgraded to bionic on 2018-08-14 (395 days ago)

Revision history for this message
Ernst Kloppenburg (ernst-kloppenburg) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, does it create any user visible issue to you?

Changed in lirc (Ubuntu):
importance: Undecided → Low
Revision history for this message
Ernst Kloppenburg (ernst-kloppenburg) wrote :

yes, it does.

I actually had the problem on a raspberry pi running Raspbian 10. There I had to add the following to my script so that the library would be found:

sys.path.append('/usr/lib/arm-linux-gnueabihf/python3.7/site-packages/')

(after having analyzed the problem I then sent the bug report from my desktop computer)

Revision history for this message
Alec Leamas (leamas-alec) wrote :

Sorry for late reply.

The python module contains binary. architecture-dependent code and can for that reason not be installed in /usr/lib/python3/ due to overall multi-arch requirements.

That said, the official Debian documents I find are not explicit on how to install these kind of modules. Sending a message to debian-devel in an attempt to get this sorted out.

Revision history for this message
Alec Leamas (leamas-alec) wrote :

You are indeed right. Python libraries are not multilib, and should live in /usr/lib/python3/site-packages. Will fix, but the process starts at the Debian side.

Revision history for this message
Ernst Kloppenburg (ernst-kloppenburg) wrote :

@Alec I guess in your last comment 'site-packages' should be replaced by 'dist-packages', right?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.