{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/4082","repository_url":"https://api.github.com/repos/Homebrew/homebrew-science","labels_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/4082/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/4082/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/4082/events","html_url":"https://github.com/Homebrew/homebrew-science/issues/4082","id":172344061,"number":4082,"title":"opencv3 fails to create '/usr/local/opt/opencv3/python3.5' folder with 'without numpy' and 'with python3' options","user":{"login":"lendenmc","id":7858484,"avatar_url":"https://avatars.githubusercontent.com/u/7858484?v=3","gravatar_id":"","url":"https://api.github.com/users/lendenmc","html_url":"https://github.com/lendenmc","followers_url":"https://api.github.com/users/lendenmc/followers","following_url":"https://api.github.com/users/lendenmc/following{/other_user}","gists_url":"https://api.github.com/users/lendenmc/gists{/gist_id}","starred_url":"https://api.github.com/users/lendenmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lendenmc/subscriptions","organizations_url":"https://api.github.com/users/lendenmc/orgs","repos_url":"https://api.github.com/users/lendenmc/repos","events_url":"https://api.github.com/users/lendenmc/events{/privacy}","received_events_url":"https://api.github.com/users/lendenmc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-21T22:03:48Z","updated_at":"2016-08-30T04:56:49Z","closed_at":"2016-08-30T04:56:49Z","body":"### Indicate troubleshooting steps taken\r\n\r\n- [x] Ran `brew update` and retried your prior step?\r\n- [x] Ran `brew doctor`, fixed as many issues as possible and retried your prior step?\r\n- [x] Checked that a similar issue hasn't already been filed?\r\n- [ ] Looked up the software bug tracker if reporting a build error?\r\n- [ ] If you're seeing permission errors tried running `sudo chown -R $(whoami) $(brew --prefix)`?\r\n\r\n### Bug reports / build errors:\r\n- Brief summary of issue:\r\n\r\nWithout numpy support (`--without-numpy`), I observe this strange behavior. \r\nThe `/usr/local/opt/opencv3/python2.7` folder is the only one created even though python3 support was asked as well (`--with-python3`). Why is the `/usr/local/opt/opencv3/python3.5` folder missing ?\r\n\r\nNotice that _I don't have numpy installed while running the brew install, neither for python2 nor for python3_. \r\nNow whenever numpy is aready installed for python3, via pip or homebrew, then both folders will be created.\r\n- Please state the complete command that you issued.\r\n\r\n````\r\n$ brew install opencv3 --with-python3 --without-numpy\r\n[...]\r\n$ ls /usr/local/opt/opencv3/lib/python2.7\r\nsite-packages\r\n$ ls /usr/local/opt/opencv3/lib/python3.5\r\nls: cannot access '/usr/local/opt/opencv3/lib/python3.5': No such file or directory\r\n```\r\nHowever with the following:\r\n````\r\n$ brew install numpy --with--python3 --without-python\r\n$ brew install opencv3 --with-python3 --without-numpy\r\n[...]\r\n$ ls /usr/local/opt/opencv3/lib/python2.7\r\nsite-packages\r\n$ ls /usr/local/opt/opencv3/lib/python3.5\r\nsite-packages\r\n```\r\nWell it seems that numpy is not required to install python2 support for opencv3, whereas it is required for python3 support, which doesn't make sense.\r\n\r\nThis is unfortunate for those who only want to install and use numpy within python3-virtualenvs. The option `--without-numpy` would have made sense in this case."},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/comments/243333045","html_url":"https://github.com/Homebrew/homebrew-science/issues/4082#issuecomment-243333045","issue_url":"https://api.github.com/repos/Homebrew/homebrew-science/issues/4082","id":243333045,"user":{"login":"tdsmith","id":173889,"avatar_url":"https://avatars.githubusercontent.com/u/173889?v=3","gravatar_id":"","url":"https://api.github.com/users/tdsmith","html_url":"https://github.com/tdsmith","followers_url":"https://api.github.com/users/tdsmith/followers","following_url":"https://api.github.com/users/tdsmith/following{/other_user}","gists_url":"https://api.github.com/users/tdsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/tdsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdsmith/subscriptions","organizations_url":"https://api.github.com/users/tdsmith/orgs","repos_url":"https://api.github.com/users/tdsmith/repos","events_url":"https://api.github.com/users/tdsmith/events{/privacy}","received_events_url":"https://api.github.com/users/tdsmith/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T04:56:49Z","updated_at":"2016-08-30T04:56:49Z","body":"You need numpy one way or another; you should install numpy if you want this to work. Sorry!"}}
{"actor":{"display_login":"tdsmith"}}