Re: Orca Installation problem



Thanks for checking this out. Looks like Orca's working well for you with no parameters passed to configure because /usr/local/lib/ python2.4/site-packages is in Python's sys.path on Ubuntu Dapper. The presence of /usr/local in sys.path on Fedora Core 4, Solaris, or the Mac doesn't seem to be the case, though. Hopefully my word here is as good as my fingers typing "import sys; print sys.path" and looking at the output - there's no magic guru stuff I'm doing. :-)

I'm working on the Orca web page right now and will capture this discussion there.

Thanks!

Will

On Mar 29, 2006, at 6:10 PM, Luke Yelavich wrote:

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
_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list




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