Joined: Sep. 2005
||Posted: July 23 2007,05:39
I'm back working on this again using later versions of cups/hplip and compiling all of the various dependencies (jpeg, openssl, net-snmp, etc) from scratch.
In contrast to my last attempts, cups now seems to work and carry on working (by "stops working" in the above, I meant that the cpu utilisation goes to 100% when trying to print and nothing prints) but hplip will not work.
Since hplip requires python in order to compile and run, I used Roberts python.uci extension (which loads to /opt/python) then symlinked the headers to /usr/include and added /opt/python/bin to the path - ./configure picked up the location of python (I checked the Makefile to confirm this) and the compile completed to /opt/hplip without errors.
When I try to use the various hplip functions (cups will print, but I need hplip for fax and scanning) like hp-probe, hp-levels, etc which are symlinks to *.py files I get the error "/usr/bin/env python: no such file or directory". Note that "env python" starts python without errors.
Using Google brought up all sorts of discussions about changing "#!/usr/bin/env python" in the first line of *.py files but I don't think this is the problem. Both /opt/python/bin and /opt/hplip/bin are in the path - does this need to be set globally in DSL maybe? I'm guessing that python cannot find the *.py files in /opt/hplip/share/hplip but if I cd to that directory it doesn't help.
Any suggestions would be welcome.