Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833199 - app-admin/system-config-printer-1.5.15: ModuleNotFoundError: No module named 'cupshelpers'
Summary: app-admin/system-config-printer-1.5.15: ModuleNotFoundError: No module named ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
: 834710 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-02-12 18:07 UTC by Marco Genasci
Modified: 2022-03-16 15:26 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2022-02-12 18:07:46 UTC
$ system-config-printer         
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 76, in <module>
    import cupshelpers
ModuleNotFoundError: No module named 'cupshelpers'

The cupshelpers-1.0-py3.9.egg is copied in the file system but not installed 

$ equery f system-config-printer | grep cupshelpers
/etc/cupshelpers
/etc/cupshelpers/preferreddrivers.xml
/usr/lib/python3.9/site-packages/cupshelpers-1.0-py3.9.egg

Extracting this file the program work as it should.

Reproducible: Always
Comment 1 Andreas Sturmlechner gentoo-dev 2022-03-06 17:09:55 UTC
Please test 1.5.16.
Comment 2 Marco Genasci 2022-03-06 17:41:22 UTC
(In reply to Andreas Sturmlechner from comment #1)
> Please test 1.5.16.

Nothing same error. Adding python_domodule cupshelpers in src_install function the program works fine.

src_install() {
    default
    python_domodule cupshelpers
    python_fix_shebang "${ED}"
    python_optimize
}
Comment 3 Andreas Sturmlechner gentoo-dev 2022-03-07 08:26:22 UTC
*** Bug 834710 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2022-03-16 15:15:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdcd8b9b3b92d100f27da8433aec0b09bfbc4e5a

commit bdcd8b9b3b92d100f27da8433aec0b09bfbc4e5a
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2022-03-16 15:14:38 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2022-03-16 15:14:57 +0000

    app-admin/system-config-printer: install cupshelpers module
    
    Closes: https://bugs.gentoo.org/833199
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 ...inter-1.5.16.ebuild => system-config-printer-1.5.16-r1.ebuild} | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Comment 5 Larry the Git Cow gentoo-dev 2022-03-16 15:26:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=720e7ae0b7707eab37d1d7270de750a500052965

commit 720e7ae0b7707eab37d1d7270de750a500052965
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-03-16 15:26:05 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-03-16 15:26:16 +0000

    app-admin/system-config-printer: Drop broken 1.5.15
    
    Bug: https://bugs.gentoo.org/833199
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 app-admin/system-config-printer/Manifest           |  1 -
 .../system-config-printer-1.5.15.ebuild            | 76 ----------------------
 2 files changed, 77 deletions(-)