-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named cups #9
Comments
ran |
Because it's somewhat obsecure I'll add this in here, on CentOS machines to add the needed package run "yum install system-config-printer-libs" |
I have CentOs 8 and have "yum install system-config-printer-libs" installed but still gives ImportError: No module named cups, Is their other depends I'm missing |
Well figured out the above problem by Doing in CentOs 8 " pip2 install cups" and " pip3 install cups" now I have : File "./airprint-generate.py", line 261, in |
I ran the apt-get command but it says "unable to locate package". |
nvm, i solved it. i just need to hunt down for the deb online since its there's no ubuntu 20.04 version available. |
@branx86 the package name in |
Nothing helped! Same issue with Debian Buster 10 |
|
I am running Centos 7.9.2009. I have also come to the 'setPasswordCB' error.
Anyone has had any luck? |
because the stupid python language has no dependency check or whatsoever. just random bunch of libraries everywhere not compatible with each other or version... update 2021 : the project was updated to python3 so you need to use python3 , second install cups package.. it's not called cups but pycups.. so use pip3 install pycups ... both stupid import cups library has 2 meanings with 2 packages.. ! |
ensure you have only pycups installed. |
It does not appear like the cups-pdf or python-cups dependencies are presently available |
I have the same issue, but after the first tips the error message changed.
Otherwise I tried the containerised method, but no file will be created:
|
Any idea how to fix it? |
I would recommend ignoring package managers like apt-get and yum. Just use those to install Python 3 unless you want to compile it yourself. Then do:
Which person thought it was a good idea to name the module "cups" and the package "pycups", while there is also a package called "cups" referring to something else? I ran into #9 (comment) and solved it by reading #9 (comment). Thanks everybody. |
btw, in 2024 you don't need this repository for cups airprint anymore. when you share a printer a cups printer it is airprint ready automatically |
If for some reason you still need this script to generate an avahi service description for your printer and you are running into this problem, I solved it as follows on Rocky Linux 9.4:
This worked for me. All of the above got me to the point where I knew I needed to install pycups into a venv but it wouldn't build/install with just |
import cups, os, optparse, re, urlparse
ImportError: No module named cups
I get this when I run this. I am running a RPi and it may be an issue with how the RPi package unpacked.
The text was updated successfully, but these errors were encountered: