ColdGrub1384 / LibTerm

iOS sandboxed terminal with Python, Lua and Clang
https://libterm.app
MIT License
630 stars 115 forks source link

Python module youtube-dL does not work #44

Open VincentCCandela opened 4 years ago

VincentCCandela commented 4 years ago

Youtube-dL does not work because if it is run with arguments, then you always get sigabrt signal. Perhaps this problem occurs because of the presence of c code. If so, could you implement this module into the app?

dullbananas commented 4 years ago

It's not possible to run C extensions in LibTerm

dirkf commented 1 year ago

youtube-dl does run, and doesn't need any C (more than was in the Python build).

The portable installation isn't as portable as necessary because it has this

#!/usr/bin/env python

and that fails to work because, presumably, of how LibTerm runs python (ie, there isn't actually a python or python3 binary on the PATH).

Instead, use python youtube-dl args...

Other issues suggest that python -m pip youtube-dl should work but I don't know if that provides a runnable youtube-dl command.

dirkf commented 1 year ago

Obvs I meant python -m pip install youtube-dl and that does work. You don't get a youtube-dl command, but python -m pip list shows the youtube_dl module, and python -m youtube_dl runs youtube-dl.

This would also apply s/youtube(-|_)dl/yt\1dlp/g.