-
Notifications
You must be signed in to change notification settings - Fork 18
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
Need a tutorial for running and transpiling youtube-dl #133
Comments
I really should rewrite the outdated readme, but mainly is to install on the virtualenv and then
You can see internals using the
When it got worked, can keep the binary with the flag
Btw, thanks for asking. Let me know if it worked or not, ok? |
I stuck on the first step. $ git clone --depth 1 https://github.com/rg3/youtube-dl /tmp/youtube-dl
$ cd /tmp/youtube-dl
$ # Remove from __future__ import division
$ find . -type f -exec sed -i -e 's/,\s*division//g' {} \;
$ find . -type f -exec sed -i -e 's/division\s*,//g' {} \;
$ python2 youtube_dl/__main__.py # Looks good.
Usage: __main__.py [OPTIONS] URL [URL...]
__main__.py: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
$ grumpy run youtube_dl/__main__.py # Not good.
../tmpIYBaGy__pycache__/gopath/src/__python__/main.go:60:2: no Go files in /usr/lib/python2.7/ctypes/macholib/__pycache__/dyld.grumpy-022.pyc/gopath/src/__python__/ctypes/macholib
../tmpIYBaGy__pycache__/gopath/src/__python__/main.go:69:2: no Go files in /usr/lib/python2.7/distutils/__pycache__/errors.grumpy-022.pyc/gopath/src/__python__/distutils
../tmpIYBaGy__pycache__/gopath/src/__python__/main.go:186:2: no Go files in /usr/lib/python2.7/xml/parsers/__pycache__/expat.grumpy-022.pyc/gopath/src/__python__/xml
../tmpIYBaGy__pycache__/gopath/src/__python__/main.go:187:2: no Go files in /usr/lib/python2.7/xml/etree/__pycache__/ElementTree.grumpy-022.pyc/gopath/src/__python__/xml/etree
../tmpIYBaGy__pycache__/gopath/src/__python__/main.go:190:2: no Go files in /usr/lib/python2.7/xml/parsers/__pycache__/expat.grumpy-022.pyc/gopath/src/__python__/xml/parsers |
Yeah. Grumpy does not support C-based modules right now (and probable never be). It runs pure-python only code. The The alternatives are to reimplement the interfaces in pure-python or Go-based modules. Just to say, I would imagine that Cython-based WOULD be possible to be supported, if it does not interfaces with the CPython C-API, but nobody started this effort. |
For example, my own pet task on this project right now is to reimplement The expected outcome is to be able to run |
Thanks, I guess this is why annie comes out :) |
Would you document a tutorial for running and transpiling a complete project like youtube-dl.
The dependencies of youtube-dl are only Python and Python-setuptools.
It would be amazing if there is a tutorial for compiling youtube-dl to a static binary.
The text was updated successfully, but these errors were encountered: