{"action":"closed","issue":{"url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/14","labels_url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/14/comments","events_url":"https://api.github.com/repos/mikepurvis/ros-install-osx/issues/14/events","html_url":"https://github.com/mikepurvis/ros-install-osx/issues/14","id":111323752,"number":14,"title":"numpy brew vs pip","user":{"login":"hawesie","id":927289,"avatar_url":"https://avatars.githubusercontent.com/u/927289?v=3","gravatar_id":"","url":"https://api.github.com/users/hawesie","html_url":"https://github.com/hawesie","followers_url":"https://api.github.com/users/hawesie/followers","following_url":"https://api.github.com/users/hawesie/following{/other_user}","gists_url":"https://api.github.com/users/hawesie/gists{/gist_id}","starred_url":"https://api.github.com/users/hawesie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hawesie/subscriptions","organizations_url":"https://api.github.com/users/hawesie/orgs","repos_url":"https://api.github.com/users/hawesie/repos","events_url":"https://api.github.com/users/hawesie/events{/privacy}","received_events_url":"https://api.github.com/users/hawesie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-14T04:58:07Z","updated_at":"2015-10-23T14:24:27Z","closed_at":"2015-10-23T14:24:27Z","body":"I'm installing on El Capitan with a fresh pip and brew installs. There appears to be a problem where `numpy` is installed both by brew and pip. This results in an error when rosdep runs:\r\n\r\n```\r\n~/indigo_desktop_full_ws ~\r\nexecuting command [pip install -U matplotlib]\r\nCollecting matplotlib\r\n  Using cached matplotlib-1.4.3-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl\r\nCollecting numpy>=1.6 (from matplotlib)\r\n  Using cached numpy-1.10.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl\r\nRequirement already up-to-date: pytz in /usr/local/lib/python2.7/site-packages (from matplotlib)\r\nCollecting pyparsing!=2.0.0,>=1.5.6 (from matplotlib)\r\n  Using cached pyparsing-2.0.3-py2.py3-none-any.whl\r\nRequirement already up-to-date: python-dateutil in /usr/local/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already up-to-date: nose>=0.11.1 in /usr/local/Cellar/numpy/1.10.0/libexec/nose/lib/python2.7/site-packages (from matplotlib)\r\nRequirement already up-to-date: six>=1.4 in /usr/local/lib/python2.7/site-packages (from matplotlib)\r\nCollecting mock (from matplotlib)\r\n  Using cached mock-1.3.0-py2.py3-none-any.whl\r\nCollecting funcsigs (from mock->matplotlib)\r\n  Using cached funcsigs-0.4-py2.py3-none-any.whl\r\nCollecting pbr>=0.11 (from mock->matplotlib)\r\n  Using cached pbr-1.8.1-py2.py3-none-any.whl\r\nInstalling collected packages: numpy, pyparsing, funcsigs, pbr, mock, matplotlib\r\n  Found existing installation: numpy 1.10.0\r\n    DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.\r\n    Uninstalling numpy-1.10.0:\r\n      Successfully uninstalled numpy-1.10.0\r\n  Rolling back uninstall of numpy\r\nException:\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/basecommand.py\", line 211, in main\r\n    status = self.run(options, args)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/commands/install.py\", line 311, in run\r\n    root=options.root_path,\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/req/req_set.py\", line 646, in install\r\n    **kwargs\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/req/req_install.py\", line 803, in install\r\n    self.move_wheel_files(self.source_dir, root=root)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/req/req_install.py\", line 998, in move_wheel_files\r\n    isolated=self.isolated,\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/wheel.py\", line 339, in move_wheel_files\r\n    clobber(source, lib_dir, True)\r\n  File \"/usr/local/lib/python2.7/site-packages/pip/wheel.py\", line 317, in clobber\r\n    shutil.copyfile(srcfile, destfile)\r\n  File \"/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 83, in copyfile\r\n    with open(dst, 'wb') as fdst:\r\nIOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/site-packages/numpy/__config__.py'\r\nERROR: the following rosdeps failed to install\r\n  pip: command [pip install -U matplotlib] failed\r\n```\r\n\r\nHomebrew numpy is an opencv dependency for one of the selected options.\r\n\r\n```\r\nbanks:~ nah$ brew info opencv\r\nhomebrew/science/opencv: stable 2.4.12, HEAD\r\nOpen source computer vision library\r\nhttp://opencv.org/\r\n/usr/local/Cellar/opencv/2.4.12 (225 files, 36M) *\r\n  Built from source with: --with-qt --with-tbb\r\nFrom: https://github.com/Homebrew/homebrew-science/blob/master/opencv.rb\r\n==> Dependencies\r\nBuild: cmake ✔, pkg-config ✔\r\nRequired: jpeg ✔, libpng ✔, libtiff ✔\r\nRecommended: eigen ✔, openexr ✔, homebrew/python/numpy ✔\r\n```\r\n\r\nThe solution (assuming we need to opencv optional parts) appears to be changing\r\n\r\n```\r\nbrew install opencv --with-qt --with-eigen --with-tbb\r\n```\r\n\r\nto\r\n```\r\n  pip install numpy\r\n  brew install opencv --with-qt --with-eigen --with-tbb --without-numpy\r\n```\r\n\r\nI'll open a PR if I get through the install without related errors.\r\n"}}