I had exactly the same problem on ubuntu, I dug inside the make proses and I think the -e was passed as an arg to the echo or cat command not sure which, it was a while back, instead of using it as an argument it appended to the beginning of the string. Simply removing it solves the ./pyrobot: line 1: -e: command not found, problem, I had another issue with the version of python shipped with ubuntu, but that was fixed in an updated. I will try to see If I can get my original setup think it still is on a drive somewhere.
What I did do later to ease the process was to use the pyro Live CD. works great for simulations. just pop into multiple pc's and start different simulations without configuring anything, a real life saver for me! http://pyrorobotics.org/?page=PyroLiveCD On Thu, Jun 12, 2008 at 6:54 PM, George Hall <[EMAIL PROTECTED]> wrote: > I am currently using Pyro on Ubuntu 6.10 Edgy, as well as on Ubuntu 8.04 > LTS. So far, Pyro behaves even better on 8.04 than on 6.10. > I'll comment more in-line below. > >> Date: Wed, 11 Jun 2008 21:33:41 -0400 (EDT) >> From: "Douglas S. Blank" <[EMAIL PROTECTED]> >> Subject: Re: [Pyro-users] Installing Pyro under Ubuntu 8.04 -- so >> close >> To: "Susan Fox" <[EMAIL PROTECTED]> >> Cc: [email protected] >> >> > Hi, there, >> > >> > I've been working my way through an installation of Pyrobot under Ubuntu >> > 8.04, and have been drawing a lot on postings from 2007 on the subject. >> > Like Matt Studley, I have had an issue with the configure program putting >> > a >> > -e at the beginning of a couple of files (pyrobot itself, and version.py). >> > Removing the -e by hand is a suitable workaround. I have two big issues >> > remaining: >> >> Susan, >> >> If you let us know what files you changed, we can document that, and/or >> fix it. > > I have the same issue Susan does with the -e. After pyrobot compiles, > if you attempt to run pyrobot, this happens: > > ./pyrobot: line 1: -e: command not found > ./pyrobot: line 8: > Pyrobot - Python Robotics > (c) 2005, PyroRobotics.org. Licensed under the GNU GPL. > > THIS FILE IS AUTOMATICALLY GENERATED > : command not found > > The first line of bin/pyrobot looks like: > -e #!/usr/bin/python2.5 > > removing the -e, making the line look like: > #!/usr/bin/python2.5 > > fixes the problem. > > Also, the -e shows up at the beginning of the system/version.py as well, > and needs to be removed for pyrobot to work. > > I don't know enough python or configure to figure out where the -e comes > from originally, but I can confirm what happens and how to workaround > it. > >> >> > -- First of all, I get an error when I try to compile the camera code, the >> > c++ stuff. It seems to have troubles finding the Python.h header, though >> > I >> > have given it the correct include path. I'm not sure if this is due to >> > some >> > incompatibility between debian and fedora or what. I *really* need the >> > camera functions, so any advice on that front would be especially welcome. >> >> I think the configuration of Pyro uses "locate" to find Python.h. We'll >> need more information to track down this issue. Can you find Python.h? You >> might have to install a python-dev package. >> >> Anyone have Pyro running under debian or ubuntu? > > I was able to compile Pyro, including the camera code, on Ubuntu 8.04. > I use aptitude to install the following packages: > subversion swig python-numpy python-imaging python-imaging-tk python-tk > tix libjpeg62-dev libgtk2.0-dev libtool autoconf g++ util-linux > python-setuptools > > For Player/Stage, I am using the Ubuntu packages for these. They are > named oddly, but seem to work fine: > aptitude install robot-player robot-player-dev stage > The binaries all have robot- prepended to the name, but a few symbolic > links fix that. > > I then get pyrobot from subversion into some folder: > svn co http://svn.cs.brynmawr.edu/pyrobot/trunk pyrobot > > Then I run the configure.py, and use the defaults for 1, 2, and 3. > 4 is /usr/include/X11. I also tell it to build everything except the > Aibo and splits because I don't plan on using those. > > Additionally, I needed to make a link in the python2.5 site-packages > folder to where pyrobot is installed: > ln -s $Pyro_Location /usr/lib/python2.5/site-packages/pyrobot > > Previously, with pyrobot from cvs on Ubuntu 6.10 with my own compiled > version of Player/Stage, none of the image processing would compile at > all. Now, it all seems to work fine. I have not tried compiling > Player/Stage myself this time, since I am happy with the Ubuntu > packages. > > I recalled seeing a note (possibly on this list) about newer versions of > Player/Stage not working well with pyrobot, so I didn't bother > investigating using the latest-and-greatest Player. > > I hope that helps! > > George Hall > Loyola College Computer Science Department > [EMAIL PROTECTED] > >> >> > -- Second of all, I can run the Pyrobot simulator and everything works >> > fine. I can use the Stage simulator and it starts up fine, but when I try >> > to use the PlayerRobot to talk to Stage, I get a message from the >> > simulator >> > saying it is accepting the connection, and then I get the following error, >> > repeated until I kill the program: >> > playerc warning : warning : no socket to write to >> > playerc error : failed to get response >> > >> > I have downloaded current versions of player and stage, and just >> > downloaded >> > pyrobot from the subversion server today. >> >> Stage and Player have been under a very large scale reorganization for a >> while. If you really need stage, please let us know, and we'll take a look >> at what it will take to bring Pyro up to date with it. Of course, you can >> use Pyro with the Python simulator, and with some real robots without >> Player. >> >> -Doug >> >> > Thanks for your help, >> > >> > Susan >> > >> > -- >> > Susan Fox Math/CS Department >> > 651-696-6553 Macalester College >> > [EMAIL PROTECTED] >> > http://www.macalester.edu/~fox >> > _______________________________________________ >> > Pyro-users mailing list >> > [email protected] >> > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users >> > >> >> >> >> ------------------------------ >> >> _______________________________________________ >> Pyro-users mailing list >> [email protected] >> http://emergent.brynmawr.edu/mailman/listinfo/pyro-users >> >> >> End of Pyro-users Digest, Vol 52, Issue 1 >> ***************************************** > _______________________________________________ > Pyro-users mailing list > [email protected] > http://emergent.brynmawr.edu/mailman/listinfo/pyro-users > -- Johan Buys _______________________________________________ Pyro-users mailing list [email protected] http://emergent.brynmawr.edu/mailman/listinfo/pyro-users
