Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (8) </ 1 2 3 [4] 5 6 7 8 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Trying to get CUPS to work, With extension or hplip< Next Oldest | Next Newest >
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 03 2007,01:02 QUOTE

Since you are required to have a empty directory, make sure you that you create your extension manually (that includes that empty dir) and that you do _not_ run the declobber script at all.  Then converting it should be fine.

If it still doesn't work, then check if that tmp directory exists after loading the unc.  If it's not there, maybe there's a bug?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 03 2007,03:34 QUOTE

In fact to avoid the declobber problem, I did the following:
Code Sample
# mkdir /var/spool/cups/temp
# touch /var/spool/cups/tmp/placeholder
and then put the file placeholder in the extension.

I was wondering if it was the cpu overhead of using a unc that caused the problem, although even the dsl version stops working after 30mins or so...
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 03 2007,04:04 QUOTE

I think you meant "mkdir /var/spool/cups/tmp"?

Can you manually write to .../tmp after the unc in loaded?  I seem to remember some problems with dirs...

For now (for the unc) you could just write a post mydsl-load script that does "mkdir -p /var/spool/cups/tmp" (and take out any other dirs related to that in the extension)

What do you mean by it "stops working" after a while... any errors/messages, or does it just abruptly stop working?  Maybe try removing the temp dir and trying again?

I think we should clear up the doubts on what to do when one does need a empty directory in an extension, because if placing an empty "placeholder" file in it will become standard, perhaps adding it to the declobber script can account for empty directories.  But this may be out of the topic's scope.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 23 2007,05:39 QUOTE

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.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 23 2007,17:07 QUOTE

Quote
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.
might be started by another user or in another login environment... an "easier" way to fix this could be to put a symlink to python in /opt/bin (or /usr/bin if not in DSL 3.3+) instead of modifying PATH
Back to top
Profile PM 
37 replies since June 09 2007,13:14 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (8) </ 1 2 3 [4] 5 6 7 8 >/
reply to topic new topic new poll
Quick Reply: Trying to get CUPS to work

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code