On 04/24/10 10:14, [email protected] wrote:
> Hi
>
> I encountered this problem when running cmake on kdeadmin-4.4.2:-
>
>
> -------------------------------------------------------------------------
> --
> -- -- 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)
>    * system-config-printer>
> <http://cyberelk.net/tim/software/system-config-printer/>
>     system-config-printer was not found.  Some of its modules
> (cupshelpers.py, config.py, smburi.py and debug.py) are required by
>   system-config-printer-kde.
>
>
> -------------------------------------------------------------------------
> --
>
> But these are installed:-
>
>   #######  for pycups  (installed is version 1.9.49) - a recent version
>
>   root [ /usr/lib/python2.6/site-packages ]#
>   root [ /usr/lib/python2.6/site-packages ]#
>   root [ /usr/lib/python2.6/site-packages ]# ls  cups*
>   cups-1.0-py2.6.egg-info  cups.so
>   root [ /usr/lib/python2.6/site-packages ]#
>
>    #### for system config printer  (installed is version 1.2.1- ) -the
> latest
>   available
>
>   [ /usr/share/system-config-printer ]# ls -l
>   total 924
>   -rw-r--r-- 1 root root  19177 Apr 17 21:29 applet.glade
>   -rwxr-xr-x 1 root root  11891 Apr 17 21:29 applet.py
>   -rw-r--r-- 1 root root   8756 Apr 17 21:29 authconn.py
>   -rw-r--r-- 1 root root   1766 Apr 17 21:29 config.py
>   -rw-r--r-- 1 root root   6427 Apr 17 21:29 contextmenu.py
>   -rw-r--r-- 1 root root  25074 Apr 17 21:29 cupshelpers.py
>   -rw-r--r-- 1 root root   1703 Apr 17 21:29 debug.py
>   -rw-r--r-- 1 root root   3374 Apr 17 21:29 errordialogs.py
>   -rw-r--r-- 1 root root   1651 Apr 17 21:29 gtk_label_autowrap.py
>   -rw-r--r-- 1 root root   8046 Apr 17 21:29 gtk_treeviewtooltips.py
>   drwxr-xr-x 2 root root   4096 Apr 17 21:29 icons
>   -rw-r--r-- 1 root root  39096 Apr 17 21:29 jobviewer.py
>   -rw-r--r-- 1 root root  21724 Apr 17 21:29 monitor.py
>   -rwxr-xr-x 1 root root   9259 Apr 17 21:29 my-default-printer.py
>   -rw-r--r-- 1 root root  14601 Apr 17 21:29 openprinting.py
>   -rw-r--r-- 1 root root  12898 Apr 17 21:29 options.py
>   -rw-r--r-- 1 root root   7424 Apr 17 21:29 optionwidgets.py
>   -rwxr-xr-x 1 root root  31054 Apr 17 21:29 ppds.py
>   -rw-r--r-- 1 root root   3678 Apr 17 21:29 probe_printer.py
>   -rwxr-xr-x 1 root root  13780 Apr 17 21:29 pysmb.py
>   -rw-r--r-- 1 root root   3027 Apr 17 21:29 smburi.py
>   -rw-r--r-- 1 root root   5064 Apr 17 21:29 statereason.py
>   -rw-r--r-- 1 root root 443717 Apr 17 21:29 system-config-printer.glade
>   -rwxr-xr-x 1 root root 189264 Apr 17 21:29 system-config-printer.py
>   drwxr-xr-x 2 root root   4096 Apr 17 21:29 troubleshoot
>   root [ /usr/share/system-config-printer ]#
>
> Any ideas here, tried changing .py files etc
>
This is strange.  Probably can't be much help since I can't reproduce 
the problem.

I have that version of PyCups installed and using the KDE-4.4 SVN BRANCH 
I get:

-- Found PythonInterp: /usr/bin/python2.6
-- Found Python executable: /usr/bin/python2.6
-- Found Python version: 2.6.4
-- Found Python library: /usr/lib/libpython2.6.so
-- Found SIP version: 4.10
-- Found PyQt4 version: 4.7
-- Found PyKDE4 version 4.4.2 /usr/share/sip/PyKDE4
-- Found PyCups

Does your CMake output list the previous Python packages as found?

The actual finding is done by a Python script: "FindPyCups.py" in:

.../kdeadmin/system-config-printer-kde/cmake-modules

I would try running that manually.  Change to that directory and:

        python FindPyCups.py

If I read it correctly, it prints: "Groovy" to standard output if it is 
found.  If not, the easiest way to check to see that PyCups is installed 
correctly is to install it again.

-- 
James Tyrer

Linux (mostly) From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to