Hi Mr. Douglas
I still have problems trying to run these programs. From the example of the GA
. GAFindBlobNNProgram.py, I'm using the pyro CD live version pyrobot-4.8.5.iso
Please, someone had the same problem and how did you solve it?. I think the
problem is about the PYTHONPATH directories. I tried in many orders, firt this
one, second this other one,etc.. I think first python look for __init__.py and
I need the correct __init__.py, right?.
The programs are in the current directory.
the details:
[EMAIL PROTECTED] python GAFindBlobNNProgram.py
Traceback (most recent call last):
File "GAFindBlobNNProgram.py", line 105, in ?
ga = chaseGA(10,'tty')
File "GAFindBlobNNProgram.py", line 24, in __init__
worldfile = "chase.world")
File "/usr/lib/python2.3/site-packages/pyrobot/engine/__init__.py", line 51, in
__init__
self.loadSimulator(self.simfile, self.worldfile)
File "/usr/lib/python2.3/site-packages/pyrobot/engine/__init__.py", line 146,
in loadSimulator
if self.config.get("pyrobot", "gui") .lower() == 'tty':
AttributeError: 'NoneType' object has no attribute 'lower'
The configuration of the sys.path is :
[EMAIL PROTECTED] python
Python 2.3.5 (#2, May 4 2005, 08:51:39)
[GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/local/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages', '/usr/lib/python2.3/site-packages/Numeric',
'/usr/lib/python2.3/site-packages/PIL',
'/usr/lib/python2.3/site-packages/wx-2.5.5-gtk2-ansi']
I used the variables PYTHONPATH and PYROBOT
[EMAIL PROTECTED] echo $PYROBOT
/usr/lib/python2.3/site-packages/pyrobot/plugins/simulators
[EMAIL PROTECTED] echo $PYTHONPATH
/usr/lib/python2.3/site-packages/pyrobot/engine/:/usr/lib/python2.3/site-packages/pyrobot/plugins/
:/usr/lib/python2.3/site-packages/pyrobot/engine/:/usr/lib/python2.3/site-packages/pyrobot/brain/:
/usr/lib/python2.3/site-packages/pyrobot/system/:/usr/lib/python2.3/site-packages/pyrobot/simulators/:
/usr/lib/python2.3/site-packages/pyrobot/gui:/usr/lib/python2.3/site-packages/pyrobot/plugins/:
/usr/lib/python2.3/site-packages/pyrobot/robot/
Thanks a lot!.
Wester
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com _______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users