OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Setting The Environment For Pygtk On Oz Gpe 3.5.4
hatchetman
post May 15 2006, 12:07 PM
Post #1





Group: Members
Posts: 60
Joined: 3-November 04
Member No.: 5,332



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.
CODE
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 setup.py build, and it succeeds. When I try to straw I get:
CODE
matt@tosa:/media/cf/Downloads/straw-0.26/src$ ./straw
Traceback (most recent call last):
 File "./straw", line 150, in ?
   main()
 File "./straw", line 137, in main
   run(options)
 File "./straw", line 107, in run
   from straw import Application, Config
ImportError: No module named straw

and on line 107 you see:
CODE
   if ENV_IN_SOURCE:
       from lib import Application, Config
   else:
       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?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
nilch
post May 18 2006, 06:53 AM
Post #2





Group: Members
Posts: 668
Joined: 3-December 03
From: US
Member No.: 1,034



Hi,

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
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th December 2014 - 04:59 PM