Skip to content
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

Pycups not really installed? #54

Open
threed-factory-store opened this issue Jul 5, 2023 · 0 comments
Open

Pycups not really installed? #54

threed-factory-store opened this issue Jul 5, 2023 · 0 comments

Comments

@threed-factory-store
Copy link

threed-factory-store commented Jul 5, 2023

Ubuntu Desktop 23.04

Edit: I do have libcups2-dev installed.

Edit 2:
For anyone else who needs to print from Python on Linux, and really, doesn't everyone?, check out https://github.com/phin1x/python-ipp

pip install pycups

gives me:
Requirement already satisfied: pycups in /usr/lib/python3/dist-packages (2.0.1)

And pip show pycups returns:
Name: pycups
Version: 2.0.1
Summary: Python bindings for libcups
Home-page: https://github.com/zdohnal/pycups
Author: Zdenek Dohnal
Author-email: zdohnal@redhat.com
License: GPLv2+
Location: /usr/lib/python3/dist-packages
Requires:
Required-by:

So... everything is OK, right?
But if I try to import either cups or pycups, I get:
ModuleNotFoundError: No module named 'cups'

My sys.path is:
['/home/walt/Documents/AnyCameraGrip/OpenScad',
'/home/walt/Nextcloud/Walt/Documents/AnyCameraGrip/OpenScad',
'/usr/lib/python3/dist-packages',
'/usr/local/lib/python310.zip',
'/usr/local/lib/python3.10',
'/usr/local/lib/python3.10/lib-dynload',
'/home/walt/.local/lib/python3.10/site-packages',
'/usr/local/lib/python3.10/site-packages']

$ ls /usr/lib/python3/dist-packages/cups returns:
/usr/lib/python3/dist-packages/cups.cpython-311-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/cupsext.cpython-311-x86_64-linux-gnu.so
/usr/lib/python3/dist-packages/cupshelpers-1.0-py3.10.egg-info
/usr/lib/python3/dist-packages/pycups-2.0.1.egg-info

Any ideas why I can't import cups or pycups?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant