On Sun, Mar 13, 2011 at 9:59 PM, S.Sudarshan <span dir="ltr"><<a href="mailto:sudarshan85@gmail.com">sudarshan85@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>Thanks for your replies.</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


<span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">I also had some trouble with yaml on my Mac. I solved it by installing py26-yaml:<div><br></div><div>sudo port install py26-yaml</div>

<div><br></div><div>I'm using python2.6 on OS X 10.6.</div><div><br></div><div>Hope this helps!</div><div><br></div><div>Gonçalo Cabrita</div><div>ISR University of Coimbra</div><div>Portugal</div></span></blockquote>


<div><br></div></div><div>I installed py26-yaml and tried easy_install again..no luck same error.</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


<span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">These problems are usually related to confusion between the version of<br></span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">python that ships with Mac OS and the one that is installed by<br>


</span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">Macports.  For example, you might be installing yaml for one, and<br></span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">running the other, which subsequently can't find it.  So, I would<br>


</span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">double-check to make sure you're installing yaml in the Macports<br></span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">version of python 2.6 and running the same version. Try "sudo<br>


</span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">python_select python26" if you haven't already, and try re-running<br></span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">easy_install.  Also, /opt/local/bin should appear in your path before<br>


</span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">/usr/bin.  Make sure you get /opt/local/bin/python when you run 'which<br></span><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">python' at a terminal.</span></blockquote>


<div><br></div></div><div>"which python" gives me /usr/bin/python and not "/opt/local/bin". How can I make it so that it looks at /opt/local/bin?</div></blockquote><div><br></div><div>sudo port install python_select (<a href="http://python_select.darwinports.com">python_select.darwinports.com</a> for docs but it looks down right now)</div>
<div><br></div><div>As far as easy_install... If I recall correctly there are multiple easy_installs (e.g. easy_install25, easy_install26, etc or something along those lines) that you could run, each that installs for a different version of Python.</div>
<div><br></div><div>Easiest test for whether or not yaml will import would be something along the lines of "/usr/bin/env python" and then try to "import yaml" in the interpreter that pops up. "/usr/bin/env python" is the shebang line all ROS python scripts should be using and should get you to whichever Python ROS will actually be using.</div>
<div><br></div><div>Hope that helps.</div><div><br></div><div>- Eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>Thanks,</div>
<div>S. </div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex">


 </blockquote>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>