In dev-python/pycups-1.9.50 a new method, getPPD3, is introduced. This method only exists in >=net-print/cups-1.4. If an earlier version of net-print/cups is installed, pycups will build successfully, but fail when executed with the following messages: Python 2.6.5 (release26-maint, May 2 2010, 15:34:30) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import cups Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/lib64/python2.6/site-packages/cups.so: undefined symbol: cupsGetPPD3 The solution is to RDEPEND on >=net-print/cups-1.4.
This bug will also lead to the following messages when kde-base/system-config-printer-kde is built: ----------------------------------------------------------------------------- -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. ----------------------------------------------------------------------------- * PyCups <http://cyberelk.net/tim/software/pycups/> PyCups was not found. It is needed by system-config-printer-kde to run. (Use -DINSTALL_SYSTEM_CONFIG_PRINTER=TRUE to install anyway) Note: There is no problem with kde-base/system-config-printer-kde, but the error message above is caused by the ImportError being reported as PyCups missing (even though it IS installed). Perhaps this should be considered a bug in its own right, since the error message is misleading. A better error message would specifically diagnose that <net-print/cups-1.4 is installed and the installed >=dev-python/pycups-1.9.50 requires >=net-print/cups-1.4. This probably should be sent upstream for correction.
Thanks for reporting this dependency problem -- assigning to pycups maintainers
Indeed, this function was added before tagging 1.9.50. I didn't know it's introduced with cups 1.4 (it's nowhere mentioned in pycups commit log). Fixed with 1.9.51, thanks for reporting!