{"action":"created","issue":{"url":"https://api.github.com/repos/mps-youtube/pafy/issues/207","repository_url":"https://api.github.com/repos/mps-youtube/pafy","labels_url":"https://api.github.com/repos/mps-youtube/pafy/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/mps-youtube/pafy/issues/207/comments","events_url":"https://api.github.com/repos/mps-youtube/pafy/issues/207/events","html_url":"https://github.com/mps-youtube/pafy/issues/207","id":316004990,"number":207,"title":"ImportError: No module named pafy","user":{"login":"jcconnell","id":1693299,"avatar_url":"https://avatars0.githubusercontent.com/u/1693299?v=4","gravatar_id":"","url":"https://api.github.com/users/jcconnell","html_url":"https://github.com/jcconnell","followers_url":"https://api.github.com/users/jcconnell/followers","following_url":"https://api.github.com/users/jcconnell/following{/other_user}","gists_url":"https://api.github.com/users/jcconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/jcconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcconnell/subscriptions","organizations_url":"https://api.github.com/users/jcconnell/orgs","repos_url":"https://api.github.com/users/jcconnell/repos","events_url":"https://api.github.com/users/jcconnell/events{/privacy}","received_events_url":"https://api.github.com/users/jcconnell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-19T19:13:59Z","updated_at":"2018-04-19T19:44:42Z","closed_at":null,"author_association":"NONE","body":"Trying to run the ytdl command line tool.\r\n\r\nHow to reproduce the problem on Ubuntu 17.10:\r\n- python3 -m venv .\r\n- source bin/activate\r\n- pip install pafy\r\n```\r\n(env) $ ytdl\r\nTraceback (most recent call last):\r\n  File \"~/auto_tube/bin/ytdl\", line 22, in <module>\r\n    import pafy\r\nImportError: No module named pafy\r\n```\r\n\r\nExpected result:\r\n- Being able to run ytdl\r\n\r\nNotes:\r\n- If I launch a python interpreter, either with python or python3, I can import pafy without any issues.\r\n- I experienced the same issue while testing on OSX"},"comment":{"url":"https://api.github.com/repos/mps-youtube/pafy/issues/comments/382857990","html_url":"https://github.com/mps-youtube/pafy/issues/207#issuecomment-382857990","issue_url":"https://api.github.com/repos/mps-youtube/pafy/issues/207","id":382857990,"user":{"login":"jcconnell","id":1693299,"avatar_url":"https://avatars0.githubusercontent.com/u/1693299?v=4","gravatar_id":"","url":"https://api.github.com/users/jcconnell","html_url":"https://github.com/jcconnell","followers_url":"https://api.github.com/users/jcconnell/followers","following_url":"https://api.github.com/users/jcconnell/following{/other_user}","gists_url":"https://api.github.com/users/jcconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/jcconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcconnell/subscriptions","organizations_url":"https://api.github.com/users/jcconnell/orgs","repos_url":"https://api.github.com/users/jcconnell/repos","events_url":"https://api.github.com/users/jcconnell/events{/privacy}","received_events_url":"https://api.github.com/users/jcconnell/received_events","type":"User","site_admin":false},"created_at":"2018-04-19T19:44:42Z","updated_at":"2018-04-19T19:44:42Z","author_association":"NONE","body":"Thanks for those tips. The first one solved my problem. \r\n\r\nIn case someone else lands on this page in their search, the second option reported this error:\r\n``python3: can't open file 'ytdl': [Errno 2] No such file or directory``\r\nI didn't try to third or fourth options.\r\n\r\nI have looked at youtube-dl. My end goal is to automatically download the audio (no video, capped internet connection and trying to avoid wasting bandwidth) from a few YouTube channels as they are released. I know that youtube-dl is capable of solving this problem for video files, but according to their docs, it seems that audio must be extracted from the video files in post-processing. pafy on the other hand is capable of downloading the audio only. I know it's unrelated to this thread, but do you know if youtube-dl is capable of downloading audio only?"}}
{"actor":{"display_login":"jcconnell"}}