Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On macOS system using Fox.com downloader: ERROR: pycrypto not found. Please install it. #14481

Closed
jschwalbe opened this issue Oct 13, 2017 · 4 comments
Labels

Comments

@jschwalbe
Copy link

@jschwalbe jschwalbe commented Oct 13, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.10.12. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • [ X ] I've verified and I assure that I'm running youtube-dl 2017.10.12

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v https://www.fox.com/watch/44616651c6c3df35f8dcc566722041de/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://www.fox.com/watch/44616651c6c3df35f8dcc566722041de/']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2017.10.12
[debug] Python version 2.7.13 - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.3.3, ffprobe 3.3.3, rtmpdump 2.4
[debug] Proxy map: {}
[FOX] 44616651c6c3df35f8dcc566722041de: Downloading JSON metadata
[FOX] 44616651c6c3df35f8dcc566722041de: Downloading webpage
[uplynk:preplay] 5b38ddc8080e42d19c55fb356c3bc4c5: Downloading JSON metadata
[uplynk:preplay] 5b38ddc8080e42d19c55fb356c3bc4c5: Downloading m3u8 information
[uplynk:preplay] 5b38ddc8080e42d19c55fb356c3bc4c5: Downloading JSON metadata
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'http://content-ause3.uplynk.com/5b38ddc8080e42d19c55fb356c3bc4c5/k.m3u8'
[hlsnative] Downloading m3u8 manifest
ERROR: pycrypto not found. Please install it.
  File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1985, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 795, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 887, in process_ie_result
    new_result, download=download, extra_info=extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 849, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1619, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1892, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1831, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 361, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/hls.py", line 68, in real_download
    self.report_error('pycrypto not found. Please install it.')
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 163, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 612, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 574, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

Description of your issue, suggested solution and other information

It appears that (recently?) Fox.com has started throwing this error for me (ERROR: pycrypto not found. Please install it.) I've made sure that pycrypto is installed (I used both pip and pip3 install pycrypt).

Any ideas on how to make sure youtube-dl knows that it's installed?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Oct 13, 2017

Most likely you have several instances of python installed.

@dstftw dstftw closed this Oct 13, 2017
@dstftw dstftw added the invalid label Oct 13, 2017
@jschwalbe
Copy link
Author

@jschwalbe jschwalbe commented Oct 13, 2017

@dstftw Glad you're confident this is the problem, but can you be of any help in solving my problem?

@jschwalbe
Copy link
Author

@jschwalbe jschwalbe commented Oct 13, 2017

For others (and perhaps my future self -- hello there, self!): I ended up having to run pip2.7 install pycrypto (pip2.7 rather than just pip) because indeed it was installing to the wrong instance. Frustrating.

@mmastrac
Copy link

@mmastrac mmastrac commented May 10, 2019

pip2.7 install pycrypto worked for me to fix ERROR: pycrypto not found. Please install it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.