Help - Search - Members - Calendar
Full Version: Setting The Environment For Pygtk On Oz Gpe 3.5.4
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > Python
I've installed OZ GPE image 3.5.4, build 2006-03-14. I've installed all the relevent python packages for the program I am trying to run.
matt@tosa:/media/cf/Downloads/straw-0.26/src$ ipkg list_installed | grep python
libpython2.4-1.0 - 2.4.2-ml4 -
python-codecs - 2.4.2-ml2 -
python-core - 2.4.2-ml2 -
python-crypt - 2.4.2-ml1 -
python-datetime - 2.4.2-ml1 -
python-distutils - 2.4.2-ml2 -
python-io - 2.4.2-ml2 -
python-lang - 2.4.2-ml1 -
python-logging - 2.4.2-ml1 -
python-math - 2.4.2-ml1 -
python-mime - 2.4.2-ml2 -
python-netclient - 2.4.2-ml2 -
python-pygtk2 - 2.6.2-r2 -
python-pysqlite2 - 2.0.2-ml0 -
python-pyxml - 0.8.3-r0 -
python-re - 2.4.2-ml2 -
python-shell - 2.4.2-ml1 -
python-stringold - 2.4.2-ml2 -
python-textutils - 2.4.2-ml1 -
python-xml - 2.4.2-ml1 -

I have tried several python gtk programs with no success. The one I most desire is straw, an RSS reader. I can run python build, and it succeeds. When I try to straw I get:
matt@tosa:/media/cf/Downloads/straw-0.26/src$ ./straw
Traceback (most recent call last):
 File "./straw", line 150, in ?
 File "./straw", line 137, in main
 File "./straw", line 107, in run
   from straw import Application, Config
ImportError: No module named straw

and on line 107 you see:
       from lib import Application, Config
       from straw import Application, Config

Now I'm pretty certain my immediate problem is that my evironment paths are all wrong. To get this far I had to set PYTHONHOME=/usr/ and I sometimes need to sys.path.append("/folder/"); to add libraries to the search path. This all seems very hackish, and I'm hoping theirs a more appropriate way to fix things so that the imports work.

Can someone help me get my environment set up correctly, and does anyone have any success stories with other PyGTK applications?

I haven't used Starw, but I do not think Straw is part of the standard python modules (which comes with Python for Zaurus).

So are you sure you have Straw installed ?
If not, that explains the error obviously

from straw import Application, Config
ImportError: No module named straw
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.