So, I just soft linked rosinstall and roslocate to /opt/local/bin and ran rostinstall. However, these are not included into the PATH variable by defualt. Now, heres the tricky part, using this command installs rosinstall at /opt/localLibrary/Frameworks/amework/Versions2.6/bin/rosinstall and /opt/localLibrary/Frameworks/amework/Versions2.6/bin/roslocate. Then I used easy_install-2.6 to install rosinstall. So what I ended up doing is removing the soft links in /usr/bin for the original python installation. Making sure that the Macports bin path appears before /usr/bin doesnt fix this problem.
INSTALL YAML FOR PYTHON MAC PIP MAC OS
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. Once we have the YAML parser imported, we can load a YAML file and parse it. Note that you don’t import ‘pyyaml’, but simply ‘yaml’: import yaml Reading and parsing a YAML file with Python. To use PyYAML in your scripts, import the module as follows. The 0.17 series will still be tested on Python 3.5, but the 0.18 will not. The 0.16.13 release was the last that was tested to be working on Python 2.7. Now, there are also multiple versions of easy_install the default one catering to python version 2.5. On some systems you need to use pip3: pip3 install pyyaml. ruamel.yaml is a YAML 1.2 loader/dumper package for Python. opt/localLibrary/Frameworks/amework/Versions2.6/ Now Macports installs its own version of python (2.6 for ROS) which is located at Soft links for python, python-config, python2.5 etc for execs located in the above folder are available at /usr/bin. System/Library/Frameworks/amework/Versions/2.5/
INSTALL YAML FOR PYTHON MAC PIP MAC OS X
Basically, the problem with the pyyaml installation is, Mac OS X comes with a Python installation (2.5) which is located at Step 2: Once we have downloaded the get-pip.py file, open our cmd, navigate to the folder where our downloaded get-pip.py file is present, and run the following command. numpy (>1.11) matplotlib (>2.0) python-yaml (pyyaml) python-h5py (h5py) For the CP2K interface, the following package will be needed to. Prepare the following Python libraries: Python (>3.6) and its header files. Windows users should use conda (conda-forge channel) packages as well. Just letting everyone know in case someone else has a similar problem. In case we do not have PIP installed in our system, follow the below steps to install it: Step 1: Click here and download the file named get-pip.py. Mac OS X users may use conda (conda-forge channel) packages.