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) </ ... 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 >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: July 28 2007,11:01 QUOTE

in /etc/bashrc, the global system file

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 28 2007,12:19 QUOTE

Thanks - should've thought of looking there :)

I'm getting close to being able to post an hplip extension (cups-1.2.11, hplip-2.7.6) - I was thinking to post the extension in several parts, does this make sense:

1. hplip.tar.gz - the main programs (cups, espgs, hplip), libs, foomatic, fonts, etc
2. python.uci - v2.3.6 with the latest security updates
3. hplip_etc.dsl - conf files to be loaded once to /etc then added to backup
4. hplip_ppd.tar.gz - ppds to be loaded once then appropriate printer(s) added to backup
5. site-packages.tar.gz -files shared by hplip & python

The locations of the files would be /opt/hplip, /opt/python & /opt/site-packages - once tested, hplip & site-packages could also be uci extensions.
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: July 28 2007,13:10 QUOTE

Hello Juanito:
Do you think my 'MyDSL->Testing->python2.5.uci' could do the job?
It is using an idea similar to yours - mine is using '/opt/py25/site-packages' instead of '/opt/site-packages'. Reason is because some python packages want to have '/opt/py25/include' or /opt/py25/share'. Anyway, that is the technical issue. The non-technical issue is that I thought '/opt/site-packages' might conflict with other python uci's - maybe people will want to make uci's for python 2.3 or 2.4.
I am saying this because I think you will run into the same problem.
If this post seems very rude to you, please forgive me. I do not mean to say that you 'should not' make another python extension. Only, to avoid confusion, I would like to suggest - maybe name it 'python2.3.uci'?
Thank you very much.
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: July 28 2007,15:05 QUOTE

Quote
Do you think my 'MyDSL->Testing->python2.5.uci' could do the job?
I'm not sure, it might - in fact, I started to work on compiling hplip before you posted your extension (I originally used Roberts extension). Then, because like you, I needed /site-packages outside the uci I re-compiled Python-2.3. In the end I actually needed /extensions outside the uci as well (for the scanning PIL files) but but I put these in /site-packages.

I believe hplip would compile different *.py files against Python-2.5 and I also believe the location of Python might be hardcoded in hplip.

As you say, having the extension use /opt/python2.3 and /opt/python2.3_site-packages or similar would probably make more sense - I'm not sure I can face recompiling things at the moment though... :(
Back to top
Profile PM 
Juanito Offline





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

Quote
in /etc/bashrc, the global system file
I tried changing the path statement and adding the file to my backup - after reboot, even though the modified file is present, the path has not changed. I guess this means the the path is set before the backup is restored?

Quote
Do you think my 'MyDSL->Testing->python2.5.uci' could do the job?
I tested your extension with hplip - some of the hp functions worked and some didn't, but all of them complained about the changed version of python. I guess I could recompile hplip against your extension but perhaps some other DSL users have a use for the latest python-2.3, so I'll take the easy way out. I will however change /opt/python to /opt/python-2.3 and /opt/site-packages to /opt/py-2.3/site-packages so the different versions don't tread on each others feet - how does that sound?
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) </ ... 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