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

[Documentation] Package ytmusicapi with pyinstaller #315

Closed
acantepie opened this issue Nov 11, 2022 · 1 comment
Closed

[Documentation] Package ytmusicapi with pyinstaller #315

acantepie opened this issue Nov 11, 2022 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@acantepie
Copy link

acantepie commented Nov 11, 2022

Hi,

If you want to package ytmusicapi with pyinstaller,
you have to manually include locales directory on your build with option --add-data :

pyinstaller foo.py [...] --add-data "venv/lib/python3.10/site-packages/ytmusicapi/locales:ytmusicapi/locales

Else your build with throw this error

Traceback (most recent call last):
  File "ytmusicapi/ytmusic.py", line 105, in __init__
StopIteration
[95748] Failed to execute script 'youtube-dl' due to unhandled exception!

It should be usefull to add a section (or a FAQ) for this on documentation.

@sigma67
Copy link
Owner

sigma67 commented Nov 14, 2022

Others have suggested to use collect-all option, that seems simpler? But I agree with adding a FAQ section.

#250 (comment)

@sigma67 sigma67 added the documentation Improvements or additions to documentation label Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants