-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Allow usage of yt-dlp from a virtual environment #328
Comments
Yes it's correct. Consider that if you have a virtual environment activated you can enter the Python console and run videomass from there, like this: from videomass import gui_app
gui_app.main() This will allow you to use packages installed in the virtual environment without the need to install them system-wide.
For this kind of thing you use pip. You can install videomass on as many virtual environments as you want independently. That said, the option to externally import python package from the yt_dlp Source is planned and will be implemented on videomass using importlib. This will provide more control overall and I assume will satisfy your request as well. |
What about packaged binaries, like those under Releases? |
Typically, Python binary packages created specifically to be installed using the package manager of Linux distributions (e.g However, this does not mean that you cannot import the modules installed on your virtual environment into the python applications installed on the system and this also applies to Videomass. The situation changes for bundled Python applications such as Videomass portable edition for Windows. I hope i was clear enough. |
It is currently possible to use an executable instead of the library API for downloading videos, under
Preferences
->yt-dlp
->Use executable for downloads instead of API
. From my understanding, even if this option is enabled, the program uses the system-installedyt-dlp
for performing all other kinds of operations. My suggestion is to also add an option underPreferences
->yt-dlp
to allow for the program to use theyt-dlp
library from an external virtual environment. This would give more control to the user and make the program follow current recommendations from the Python Software Foundation, per PEP 668 and the Externally Managed Environments article from the Python Packaging User GuideP.S. this could also prove a great opportunity to use a virtual environment for ALL the packages user by Videomass and thus negate the need to package them together in the binaries
The text was updated successfully, but these errors were encountered: