clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

ModuleNotFoundError: No module named 'cupshelpers' #3179

Closed K1ngfish3r closed 2 months ago

K1ngfish3r commented 2 months ago

Related to https://github.com/clearlinux/distribution/issues/2534

i@clr~ $ python
Python 3.12.5 (main, Aug  7 2024, 09:50:29) [GCC 14.2.1 20240805 releases/gcc-14.2.0-32-geccf707e5c] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cupshelpers
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'cupshelpers'
>>> exit()

the answer is to move the cupshelpers folders up one as per the related issue. Afterwards, printer is detected quite flawlessly. Here I take fix from src.fedora into autospec

Autospec Notes - for-review.txt

build_prepend - taken from system-config-printer.spec

sed -i 's/setup.py install --prefix=$(DESTDIR)$(prefix)/setup.py install --root $(DESTDIR) --prefix=$(prefix)/' Makefile*
K1ngfish3r commented 2 months ago

patched in 42330