On 5/4/05, Mike Gauthier <umgaut03@...> wrote:
> This is wierd can anyone tell whats going on? When I do a locate as root=
> gazebo.py it shows this
> # locate gazebo.py
> but when I'm not root it can't find any gazebo.py. Therefore I get this =
> when I go to compile gazebo.
> python ./setup.py build
> running build
> running build_py
> warning: build_py: file gazebo.py (for module gazebo) not found
As you may know, the locate command checks permissions before it
reports the locations of files. Something is preventing your user,
mike, from having access to gazebo.py. I think
libgazebo/bindings/python/gazebo.py this is the file it needs, so
check the permissions leading up to that file. Did you maybe untar the
PSG_2005 or gazebo-0.5.1 tarballs as a user other than mike? A
chown -R mike:mike .
might resolve your problem. You likely will need to be root to do this.
> and I think this error is also related when I try and run wxGazebo
> $ wxgazebo /usr/local/share/gazebo/worlds/simplesolids.world
> Python bindings for libgazebo not found; please re-install Gazebo
> with bindings enabled, or else fix you PYTHONPATH
Well, you may need to fix your PYTHONPATH. On the redhat systems I've
been working with I solved this by adding a /etc/profile.d/gazebo.sh
file that contains this:
You can of course accomplish the same thing by adding the PYTHONPATH=3D
line to your ~/.bash_profile or ~/.bashrc file, as appropriate for
your distro. Make sure it points to the correct location of gazebo.py
on your system.
I hope that helps.