{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/homebrew-mpv/issues/83","labels_url":"https://api.github.com/repos/mpv-player/homebrew-mpv/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/homebrew-mpv/issues/83/comments","events_url":"https://api.github.com/repos/mpv-player/homebrew-mpv/issues/83/events","html_url":"https://github.com/mpv-player/homebrew-mpv/issues/83","id":108252518,"number":83,"title":"\"ImportError: No module named 'docutils'\" for upgrade to 0.11.0","user":{"login":"alexbepple","id":159355,"avatar_url":"https://avatars.githubusercontent.com/u/159355?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbepple","html_url":"https://github.com/alexbepple","followers_url":"https://api.github.com/users/alexbepple/followers","following_url":"https://api.github.com/users/alexbepple/following{/other_user}","gists_url":"https://api.github.com/users/alexbepple/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbepple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbepple/subscriptions","organizations_url":"https://api.github.com/users/alexbepple/orgs","repos_url":"https://api.github.com/users/alexbepple/repos","events_url":"https://api.github.com/users/alexbepple/events{/privacy}","received_events_url":"https://api.github.com/users/alexbepple/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T02:54:43Z","updated_at":"2015-09-25T09:46:11Z","closed_at":null,"body":"Unfortunately the upgrade fails.\r\n\r\n```\r\n==> Downloading https://github.com/mpv-player/mpv/archive/v0.11.0.tar.gz\r\n==> Downloading from https://codeload.github.com/mpv-player/mpv/tar.gz/v0.11.0\r\n######################################################################## 100.0%\r\n==> Downloading https://pypi.python.org/packages/source/d/docutils/docutils-0.12\r\n######################################################################## 100.0%\r\n==> python3 setup.py install --prefix=/usr/local/Cellar/mpv/0.11.0/libexec\r\n==> Downloading https://waf.io/waf-1.8.12\r\n######################################################################## 100.0%\r\n==> python3 waf configure --prefix=/usr/local/Cellar/mpv/0.11.0 --enable-zsh-com\r\n==> python3 waf install\r\nLast 15 lines from /Users/ab/Library/Logs/Homebrew/mpv/03.python3:\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/applications/mpv.desktop (from etc/mpv.desktop)\r\n+ install /usr/local/Cellar/mpv/0.11.0/etc/mpv/encoding-profiles.conf (from etc/encoding-profiles.conf)\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/icons/hicolor/16x16/apps/mpv.png (from etc/mpv-icon-8bit-16x16.png)\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/icons/hicolor/32x32/apps/mpv.png (from etc/mpv-icon-8bit-32x32.png)\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/icons/hicolor/64x64/apps/mpv.png (from etc/mpv-icon-8bit-64x64.png)\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/mpv/0.11.0/libexec/bin/rst2man.py\", line 21, in <module>\r\n    from docutils.core import publish_cmdline, default_description\r\nImportError: No module named 'docutils'\r\n\r\nWaf: Leaving directory `/private/tmp/mpv20150925-12100-y1o9ob/mpv-0.11.0/build'\r\nBuild failed\r\n -> task in 'rst2man' failed (exit status 1):\r\n\t{task 4410960976: rst2man mpv.rst -> mpv.1}\r\n' /usr/local/Cellar/mpv/0.11.0/libexec/bin/rst2man.py ../DOCS/man/mpv.rst DOCS/man/mpv.1 '\r\n```\r\n\r\nJust in case I ran it again and got the same result:\r\n```\r\n==> Upgrading 1 outdated package, with result:\r\nmpv-player/mpv/mpv 0.11.0\r\n==> Upgrading mpv-player/mpv/mpv\r\n==> Downloading https://github.com/mpv-player/mpv/archive/v0.11.0.tar.gz\r\nAlready downloaded: /Library/Caches/Homebrew/mpv-0.11.0.tar.gz\r\n==> Downloading https://pypi.python.org/packages/source/d/docutils/docutils-0.12\r\nAlready downloaded: /Library/Caches/Homebrew/mpv--docutils-0.12.tar.gz\r\n==> python3 setup.py install --prefix=/usr/local/Cellar/mpv/0.11.0/libexec\r\n==> Downloading https://waf.io/waf-1.8.12\r\nAlready downloaded: /Library/Caches/Homebrew/mpv--waf-1.8.12\r\n==> python3 waf configure --prefix=/usr/local/Cellar/mpv/0.11.0 --enable-zsh-com\r\n==> python3 waf install\r\nLast 15 lines from /Users/ab/Library/Logs/Homebrew/mpv/03.python3:\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/applications/mpv.desktop (from etc/mpv.desktop)\r\n+ install /usr/local/Cellar/mpv/0.11.0/etc/mpv/encoding-profiles.conf (from etc/encoding-profiles.conf)\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/icons/hicolor/32x32/apps/mpv.png (from etc/mpv-icon-8bit-32x32.png)\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/icons/hicolor/16x16/apps/mpv.png (from etc/mpv-icon-8bit-16x16.png)\r\n+ install /usr/local/Cellar/mpv/0.11.0/share/icons/hicolor/64x64/apps/mpv.png (from etc/mpv-icon-8bit-64x64.png)\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/mpv/0.11.0/libexec/bin/rst2man.py\", line 21, in <module>\r\n    from docutils.core import publish_cmdline, default_description\r\nImportError: No module named 'docutils'\r\n\r\nWaf: Leaving directory `/private/tmp/mpv20150925-12929-10sr687/mpv-0.11.0/build'\r\nBuild failed\r\n -> task in 'rst2man' failed (exit status 1):\r\n\t{task 4362103832: rst2man mpv.rst -> mpv.1}\r\n' /usr/local/Cellar/mpv/0.11.0/libexec/bin/rst2man.py ../DOCS/man/mpv.rst DOCS/man/mpv.1 '\r\n```\r\n\r\nNot sure which other details are needed. Here are some.\r\n\r\n```\r\n> brew --version\r\n0.9.5 (git revision 3d798; last commit 2015-09-25)\r\n\r\n> python3 --version\r\nPython 3.4.2\r\n\r\n> sw_vers -productVersion\r\n10.10.5\r\n```"},"comment":{"url":"https://api.github.com/repos/mpv-player/homebrew-mpv/issues/comments/143173958","html_url":"https://github.com/mpv-player/homebrew-mpv/issues/83#issuecomment-143173958","issue_url":"https://api.github.com/repos/mpv-player/homebrew-mpv/issues/83","id":143173958,"user":{"login":"Argon-","id":540920,"avatar_url":"https://avatars.githubusercontent.com/u/540920?v=3","gravatar_id":"","url":"https://api.github.com/users/Argon-","html_url":"https://github.com/Argon-","followers_url":"https://api.github.com/users/Argon-/followers","following_url":"https://api.github.com/users/Argon-/following{/other_user}","gists_url":"https://api.github.com/users/Argon-/gists{/gist_id}","starred_url":"https://api.github.com/users/Argon-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Argon-/subscriptions","organizations_url":"https://api.github.com/users/Argon-/orgs","repos_url":"https://api.github.com/users/Argon-/repos","events_url":"https://api.github.com/users/Argon-/events{/privacy}","received_events_url":"https://api.github.com/users/Argon-/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T09:46:11Z","updated_at":"2015-09-25T09:46:11Z","body":"That's a problem various people (including me) have encountered. IIRC the formula is building docutils but putting it into `/usr/local/lib/python3.5/site-packages` instead of `/usr/local/lib/python3.4/site-packages`. As for why this happens... I have no idea.\r\n\r\nTwo solutions: the python3 homebrew formula has currently version `3.5`. Once you upgrade your python3 it will look for packages in `...python3.5/site-packages` and it'll work.\r\nOtherwise, use `pip3 install docutils` to install it manually into the correct `site-packages` directory for your current python3 version."}}