Re: Orca Installation problem



On Thu, Mar 30, 2006 at 09:30:33AM EST, Willie Walker wrote:
Hi Luke:

The main reason we suggest --prefix=/usr is that sys.path in Python  
doesn't include /usr/local.  Here's output from the python  
interpreter on my FC4 box:

print sys.path
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/ 
python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/ 
python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/ 
python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/ 
gtk-2.0']

Ok, here is my output on a freshly updated Ubuntu Dapper system:
print sys.path
['', '/usr/lib/python24.zip', '/usr/lib/python2.4', 
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', 
'/usr/lib/python2.4/lib-dynload', 
'/usr/local/lib/python2.4/site-packages', 
'/usr/lib/python2.4/site-packages', 
'/usr/lib/python2.4/site-packages/HTMLgen', 
'/usr/lib/python2.4/site-packages/Numeric', 
'/usr/lib/python2.4/site-packages/PIL', 
'/usr/lib/python2.4/site-packages/cairo', 
'/usr/lib/python2.4/site-packages/gst-0.10', 
'/usr/lib/python2.4/site-packages/gtk-2.0', '/usr/lib/site-python']

The only thing in the /usr/local/lib/python2.4/site-packages directory 
is orca, and having just checked another dapper machine, 
/usr/local/lib/python2.4/site-packages is also listed. I'd say the 
Ubuntu guys have made sure that this is the case.

Plus, there are no *.pth files that get us to /usr/local.  As a  
result, I think the python interpreter will have a tough time finding  
the orca package unless you do something such as set the PYTHONPATH  
environment variable or set up a *.pth file.  We probably could work  
around this, though, by modifying Orca's copy of sys.path on startup.

Well, all I can say is that Orca is running with no apparent problems, 
either with the core, or with application specific scripts.

PS - Although http://docs.python.org/tut/node8.html says python on  
Unix typically looks in /usr/local/lib/python, I've not found this to  
be the case.

I'll take your word on that, as I haven't seen how other distros do it.
-- 
Luke Yelavich
GPG key: 0xD06320CE 
         (http://www.themuso.com/themuso-gpg-key.txt)
Email & MSN: themuso themuso com
ICQ: 18444344

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]