-
Notifications
You must be signed in to change notification settings - Fork 216
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
File "ytmusicapi\ytmusic.py", line 102, in __init__ not found #250
Comments
I've never used pyinstaller, but I think you need to tell it to also include the package data of the dependency. ytmusicapi can't find the Perhaps this is also related to #223, you may try using resource_listdir like here in your fork of ytmusicapi |
Thank you for the swift reply pal! I am afraid that unfortunatelly it did not quite work as it raised another issue now, this time about the supported languages. What I did with the solution that you suggested was to swap the original code to this one
and of course imported the pkg_resources.. Now when I run it through the pyinstaller, once its done it yells the following error:
which line 10 is
I thank you ever so much for taking the time and I appreciate the effort to help pal! If there is no solution to it I will try to find another way to make it run not from the editor. Again, many thanks! I did the screenshot purely because the formating in the preview looked awful. The red underlining are the things I've changed. |
I'm having this same issue. Any fix? |
HI, I've used your wonderful api to create a player. The api works absolutely flawlessly, however when I tried to create an executable using pyinstaller and upon completion of the pyinstaller, when I run the exe file I get the following message:
`
Failed to execute script 'main' due to unhandled exception: [WinError3] The system cannot find the path specified: 'C:\Users\User\AppData\Local\Temp\_MEI39042\ytmusicapi\locales'
Traceback (most recent call last):
File "main.py", line 10, in
File "ytmusicapi\ytmusic.py", line 102, in init
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\User\AppData\Local\Temp\_MEI39042\ytmusicapi\locales'
`
Any ideas on why would that happen or where can I get the installed files? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: