straw-devel
[Top][All Lists]
Advanced

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

Re: [Straw-devel] Straw 0.21.2 fails on startup


From: Jonathon Jongsma
Subject: Re: [Straw-devel] Straw 0.21.2 fails on startup
Date: Tue, 25 Nov 2003 21:03:56 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031014 Thunderbird/0.3

I've had this same problem as well. After doing a little investigating, i discovered that gconf (along with a few other modules) were installed in /usr/local/lib/python-2.2/site-packages/ and for some reason Python couldn't find them there. Being a complete python novice, I didn't know exactly how to tell python where to find them. Here's the output of my sys.path:

['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2', '/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages', '/usr/lib/python2.2/site-packages/gtk-2.0']

As a quick fix, i simply make some symlinks from the modules in /usr/local/lib/ to the corresponding locations is /usr/lib/ until i didn't get errors anymore. Is there an easy way to permanently change the places python looks for modules so that it always looks in /usr/local/lib/ ? Is this even desireable? Should i just physically copy the files from /usr/local/lib/ to /usr/lib/?

Note that I'm using 0.21.1 on Fedora Core 1. I just noticed now that Straw 0.21.2 came out. Will this fix my issue?
By the way, thanks for the wonderful program,
jonathon



Jan Alonzo wrote:

On Wed, 2003-11-26 at 11:46, J. Gardner Biggs wrote:
address@hidden jgbiggs]$ straw
Traceback (most recent call last):
 File "/usr/local/bin/straw", line 30, in ?
   import straw
 File "src/lib/__init__.py", line 18, in ?
 File "src/lib/Config.py", line 8, in ?
ImportError: No module named gconf

gconf module installed as part of gnome-python-2.0.0 to /usr/local

distribution RedHat 9.0 with Gnome-2.4.1 installed to /usr/local


any ideas?

can you import pygtk and gconf inside the python interpreter?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]