pycups icon indicating copy to clipboard operation
pycups copied to clipboard

Pycups not really installed?

Open threed-factory-store opened this issue 2 years ago • 0 comments

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: [email protected] 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?

threed-factory-store avatar Jul 05 '23 21:07 threed-factory-store