razercfg ships python modules in `dist-packages/dist-packages/` directory

Bug #2084502 reported by Mauricio Faria de Oliveira
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
razercfg (Ubuntu)
Fix Released
Undecided
Unassigned
Noble
Fix Committed
Medium
Mauricio Faria de Oliveira

Bug Description

[Impact]

* In Noble, razercfg's python modules are installed
  incorrectly in the `dist-packages/dist-packages/`
  directory (it should be only one `dist-packages/`).

* This prevents usage of pyrazer python modules.

[Test Plan]

* Check `dpkg -L razercfg | grep dist-packages/pyrazer`
  for a single `dist-packages` directory.

* Check `python3 -c import pyrazer` does not fail.

[Regression Potential]

* Changing the install path of python modules might
  cause regressions in loading the modules, but this
  is already a problem now, so not likely to regress.

[Other Info]

* Upstream fix commit:
  https://github.com/bluca/razercfg-debian/commit/c46f39fbe25046c77c7975538b32a19fc7211016

* Already fixed in Oracular:

$ rmadison -a source razercfg | grep oracular
 razercfg | 0.43-3 | oracular/universe | source

razercfg_0.43-3_amd64.deb
-------------------------
...
drwxr-xr-x root/root 0 2024-07-14 14:15 ./usr/lib/python3/dist-packages/
drwxr-xr-x root/root 0 2024-07-14 14:15 ./usr/lib/python3/dist-packages/pyrazer/
-rw-r--r-- root/root 231 2024-07-14 14:15 ./usr/lib/python3/dist-packages/pyrazer/__init__.py
-rw-r--r-- root/root 25543 2024-07-14 14:15 ./usr/lib/python3/dist-packages/pyrazer/main.py
-rw-r--r-- root/root 24869 2024-07-14 14:15 ./usr/lib/python3/dist-packages/pyrazer/ui.py

Changed in razercfg (Ubuntu):
status: New → Fix Released
Changed in razercfg (Ubuntu Noble):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Mauricio Faria de Oliveira (mfo)
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Broken -proposed:

# apt install -t noble-proposed razercfg

# dpkg -s razercfg | grep Version:
Version: 0.42+ds-4ubuntu0.1

# dpkg -L razercfg | grep dist-packages/pyrazer
/usr/lib/python3/dist-packages/dist-packages/pyrazer
/usr/lib/python3/dist-packages/dist-packages/pyrazer/__init__.py
/usr/lib/python3/dist-packages/dist-packages/pyrazer/main.py
/usr/lib/python3/dist-packages/dist-packages/pyrazer/ui.py

# python3 -q -c 'import pyrazer'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pyrazer'

Test package:

# apt install ./razercfg_0.42+ds-4ubuntu0.2_amd64.deb

# dpkg -s razercfg | grep Version:
Version: 0.42+ds-4ubuntu0.2

# dpkg -L razercfg | grep dist-packages/pyrazer
/usr/lib/python3/dist-packages/pyrazer
/usr/lib/python3/dist-packages/pyrazer/__init__.py
/usr/lib/python3/dist-packages/pyrazer/main.py
/usr/lib/python3/dist-packages/pyrazer/ui.py

# python3 -q -c 'import pyrazer'
#

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Uploaded razercfg_0.42+ds-4ubuntu0.2 to Noble.

Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Mauricio, or anyone else affected,

Accepted razercfg into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/razercfg/0.42+ds-4ubuntu0.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in razercfg (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Verification done on noble-proposed:
- Only _one_ 'dist-packages' subdir
- Now, 'import pyrazer' works

$ lxc launch ubuntu:noble razercfg-proposed
$ lxc shell razercfg-proposed

# sed -i '/^Suites: noble / s/$/ noble-proposed/' /etc/apt/sources.list.d/ubuntu.sources
# apt update
# apt install -t noble-proposed razercfg
# dpkg -s razercfg | grep Version:
Version: 0.42+ds-4ubuntu0.2

# dpkg -L razercfg | grep dist-packages/pyrazer
/usr/lib/python3/dist-packages/pyrazer
/usr/lib/python3/dist-packages/pyrazer/__init__.py
/usr/lib/python3/dist-packages/pyrazer/main.py
/usr/lib/python3/dist-packages/pyrazer/ui.py

# python3 -q -c 'import pyrazer'
#

# poweroff
$ lxc delete razercfg-proposed

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
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.