You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not a bug report, feature request, or plugin issue/request.
I have read the contribution guidelines.
Description
The main streamlink.streams() function works when used in a script, but breaks when it is compiled using pyinstaller.
My main guess is that the load_plugins function in src/streamlink/session.py which looks over the plugins using pkgutil simply doesn't see the plugins as they're not included in the executable.
I do not know if the issue comes from the code of the project or a lack of pyinstaller configuration on my end. If there's some additional pyinstaller configuration I need to make streamlink compatible with pyinstaller, please let me know (and preferably add the information into the docs for others to know)
Expected / Actual behavior
Expected: The code runs without issue and the list of streams is retreived on both cases.
Actual behaviour: The code throws a NoPluginError on attempting to get the streams of any URL in the case of the executable created with pyinstaller.
running python main.py gives you a list of stream types.
running pyinstaller and then the resulting executable prints the message on catching the exception.
You can porting a project containing streamlink with PyInstaller in the following way:
create spec file
pyi-makespec --onefile --console "main.py"
edit spec file
Open "main.spec" file and edit it as follows.
My streamlink is version 2.4.0, but it also conflicts with the iso639 package, so I added it.
Issue
Description
The main
streamlink.streams()
function works when used in a script, but breaks when it is compiled using pyinstaller.My main guess is that the
load_plugins
function insrc/streamlink/session.py
which looks over the plugins using pkgutil simply doesn't see the plugins as they're not included in the executable.I do not know if the issue comes from the code of the project or a lack of pyinstaller configuration on my end. If there's some additional pyinstaller configuration I need to make streamlink compatible with pyinstaller, please let me know (and preferably add the information into the docs for others to know)
Expected / Actual behavior
Expected: The code runs without issue and the list of streams is retreived on both cases.
Actual behaviour: The code throws a NoPluginError on attempting to get the streams of any URL in the case of the executable created with pyinstaller.
Reproduction steps / Explicit stream URLs to test
Here is my test script
main.py
:running
python main.py
gives you a list of stream types.running pyinstaller and then the resulting executable prints the message on catching the exception.
pyinstaller is called by:
The text was updated successfully, but these errors were encountered: