On Fri, March 21, 2008 8:28 am, Dave Zoltok said: > Hi everyone. > > I am having an absolute nightmare of a time trying to get Pyrobot > working correctly on my Mac running OSX 10.5.2. After spending 12 > hours hunting down and installing dependencies, something is finally > happening. I have Player 2.0.5 and Stage 2.0.4 set up (I think) and > Pyrobot 5.0.0 under the default OSX Python installation. When I try > running "python bin/pyrobot", I first get:
Of course, you don't need player/stage to use pyrobot. It has its own simulator included. > sh: taskset: command not found > PYROBOT WARNING: can't find 'taskset' > Using PYROBOT on posix with default CPUs in '/Users/zoltok/Programming/ > pyrobot'... > > And I cannot figure out where to get the taskset libraries from. I don't think I'd worry about that... I think that that may just be a Linux thing. That was added because having multi-cores could have different pieces of pyrobot running on different cores, and Tkinter (the Python GUI) would act funny occasionally. The taskset controls this on Linux. > Second, if I try loading Tutorial.py, I get the following. > > Attempting to import 'Tutorial'... > Loaded '/Users/zoltok/Programming/pyrobot/plugins/worlds/Pyrobot/ > Tutorial.pyc'! > Traceback (most recent call last): > File "/Users/zoltok/Programming/pyrobot/plugins/simulators/ > PyrobotSimulator", line 83, in <module> > gui = INIT(worldFile) > File "/Users/zoltok/Programming/pyrobot/plugins/simulators/ > PyrobotSimulator", line 26, in INIT > retval = userspace.INIT() > File "/Users/zoltok/Programming/pyrobot/plugins/worlds/Pyrobot/ > Tutorial.py", line 15, in INIT > sim.addBox(0, 4, 1, 5, "blue", wallcolor="blue") > TypeError: addBox() takes exactly 5 non-keyword arguments (6 given) Looks like you have a world file from one version, and pyrobot from another. You are running the Python simulator (pyrobot simulator) so this should be easy to track down. I'll take a look. > No window comes up displaying the world. If I try loading another > world (say Braitenburg.py) and loading a robot, I get a traceback > ending in "ImportError: cannot import name colorMap". Again, it looks like a mismatch between versions. I'll check the pyrobot-5 files to make sure they include the right pieces... > The only clue I have is that both of these errors are related to > colors, and it took me forever to find rgb.txt on my system and link > it to where pyrobot was looking. I have a feeling that out of the > dozens of libraries and dependencies I had to install just to get to > this point, one of them is the wrong version. Compiling Player and > Stage alone required both Fink and MacPorts. I'm at my wit's end here. rgb.txt is only needed for stage. -Doug > Any help would be appreciated. > > Dave > _______________________________________________ > Pyro-users mailing list > [email protected] > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users > -- Douglas S. Blank Associate Professor, Bryn Mawr College http://cs.brynmawr.edu/~dblank/ Office: 610 526 6501 _______________________________________________ Pyro-users mailing list [email protected] http://emergent.brynmawr.edu/mailman/listinfo/pyro-users
