Johan,

This looks to be a compile problem in:

/usr/lib/python2.5/site-packages/pyrobot/camera/blob/

Looks like it could be a SWIG or Player/SWIG issue. I'll try to take a look soon, but could be a week. Let us know if you find anything.

-Doug

Johan Buys wrote:
Hi again, I managed to copy the output I get upon running NNfindBlob.pyc

I am running python 2.5 pyrobot 5(cvs) player 2.0.4 stage 2.0.3.
Numeric and all of those were installed as per instruction, but I
think it has something to do with numeric not working?

I used a simple test brain to see if player stage pyro is messing
about but that all works, I'm busy doinga project were I need blob
detection and learinig with a NN/GA. any help would be very much
appreciated. Here is the output I got upon trying to load the brain
NNfindBlob.pyc I get simmilar errors upon trying to run some other
brains too, another error I get is step() takes exactly 3 arguments (1
given) upon trying to run NNBrain.pyc. ouput pated below.

Attempting to import 'NNFindBlob'...
Loaded '/usr/lib/python2.5/site-packages/pyrobot/plugins/brains/NNFindBlob.pyc'!
Conx using seed: 1195607080.42
Attempting to import 'BlobCamera'...
Exception in Tkinter callback
Traceback (most recent call last):
  File "lib-tk/Tkinter.py", line 1406, in __call__
    return self.func(*args)
  File "./gui/TK.py", line 206, in loadBrain
  File "./gui/__init__.py", line 483, in loadBrain
    self.engine.loadBrain(f)
  File "./engine/__init__.py", line 208, in loadBrain
    self.brain = system.loadINIT(file, self)
  File "./system/__init__.py", line 103, in loadINIT
    retval = userspace.INIT(engine)
  File "./plugins/brains/NNFindBlob.py", line 91, in INIT
    return NNBrain('NNBrain', engine)
  File "./brain/__init__.py", line 66, in __init__
    self.setup(**kwargs)
  File "./plugins/brains/NNFindBlob.py", line 36, in setup
    self.robot.startDevice("BlobCamera")
  File "./robot/__init__.py", line 246, in startDevice
    dev = self.startDevices(item, **args)
  File "./robot/__init__.py", line 290, in startDevices
    file, self), **args)
  File "./system/__init__.py", line 86, in loadINIT
    exec("import " + module + " as userspace")
  File "<string>", line 1, in <module>
  File "./plugins/devices/BlobCamera.py", line 1, in <module>
    from pyrobot.camera.blob import BlobCamera
  File "./camera/blob/__init__.py", line 2, in <module>
    from pyrobot.camera.blob.blob import Blob
  File "./camera/blob/blob.py", line 7, in <module>
ImportError: /usr/lib/python2.5/site-packages/pyrobot/camera/blob/_blob.so:
undefined symbol: _Py_RefTotal


Attempting to import 'CamWorld'...
Loaded 
'/usr/lib/python2.5/site-packages/pyrobot/plugins/worlds/Pyrobot/CamWorld.pyc'!
Simulator starting listener on port 60000 ...
Attempting to import 'NNBrain'...
Conx, version 1.240 (regular speed)
Loaded '/usr/lib/python2.5/site-packages/pyrobot/plugins/brains/NNBrain.pyc'!
Conx using seed: 1195594362.03
Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.py", line 460, in __bootstrap
    self.run()
  File "./brain/__init__.py", line 152, in run
    self.step()
TypeError: step() takes exactly 3 arguments (1 given)



_______________________________________________
Pyro-users mailing list
Pyro-users@pyrorobotics.org
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users

Reply via email to