ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I finally fixed it. Just letting everyone know in case someone else has a similar problem. Basically, the problem with the pyyaml installation is, Mac OS X comes with a Python installation (2.5) which is located at /System/Library/Frameworks/Python.framework/Versions/2.5/

Soft links for python, python-config, python2.5 etc for execs located in the above folder are available at /usr/bin.

Now Macports installs its own version of python (2.6 for ROS) which is located at /opt/localLibrary/Frameworks/Python.framework/Versions2.6/

Now, there are also multiple versions of easy_install the default one catering to python version 2.5. So if we do sudo easy_install -U rosinstall, rosinstall gets installed at /usr/local/bin and when launched references the original python version that came with Mac OS X. Making sure that the Macports bin path appears before /usr/bin doesnt fix this problem. So what I ended up doing is removing the soft links in /usr/bin for the original python installation. Then I used easy_install-2.6 to install rosinstall. Now, heres the tricky part, using this command installs rosinstall at /opt/localLibrary/Frameworks/Python.framework/Versions2.6/bin/rosinstall and /opt/localLibrary/Frameworks/Python.framework/Versions2.6/bin/roslocate. However, these are not included into the PATH variable by defualt. So, I just soft linked rosinstall and roslocate to /opt/local/bin and ran rostinstall. And everything works now! (well it seems to be installing).

I finally fixed it. Just letting everyone know in case someone else has a similar problem. Basically, the problem with the pyyaml installation is, Mac OS X comes with a Python installation (2.5) which is located at /System/Library/Frameworks/Python.framework/Versions/2.5/

Soft links for python, python-config, python2.5 etc for execs located in the above folder are available at /usr/bin.

Now Macports installs its own version of python (2.6 for ROS) which is located at /opt/localLibrary/Frameworks/Python.framework/Versions2.6/

Now, there are also multiple versions of easy_install the default one catering to python version 2.5. So if we do sudo easy_install -U rosinstall, rosinstall gets installed at /usr/local/bin and when launched references the original python version that came with Mac OS X. Making sure that the Macports bin path appears before /usr/bin doesnt fix this problem. So what I ended up doing is removing the soft links in /usr/bin for the original python installation. Then I used easy_install-2.6 to install rosinstall. Now, heres the tricky part, using this command installs rosinstall at /opt/localLibrary/Frameworks/Python.framework/Versions2.6/bin/rosinstall and /opt/localLibrary/Frameworks/Python.framework/Versions2.6/bin/roslocate. However, these are not included into the PATH variable by defualt. So, I just soft linked rosinstall and roslocate to /opt/local/bin and ran rostinstall. And everything works now! (well it seems to be installing).

From the mailing list archives