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
I installed ytmusicapi into my Python environment with pip and can import it. I created the oauth.json file successfully and am getting an error instantiating YTMusic.
(ytmusicapi) C:\Users\david\eclipse-workspace\YouTube_Music\src>python
Python 3.11.8 (main, Mar 22 2024, 13:25:41) [MSC v.1938 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pathlib import Path
>>> print(Path('oauth.json').exists())
True
>>> import ytmusicapi
>>> ytmusicapi.__version__
'1.8.2'
>>> from ytmusicapi import YTMusic
>>> ytmusic = YTMusic("oauth.json")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\david\AppData\Local\ESRI\conda\envs\ytmusicapi\Lib\site-packages\ytmusicapi\ytmusic.py", line 164, in __init__
self.lang = gettext.translation("base", localedir=locale_dir, languages=[language])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\david\AppData\Local\ESRI\conda\envs\ytmusicapi\Lib\gettext.py", line 528, in translation
raise FileNotFoundError(ENOENT,
FileNotFoundError: [Errno 2] No translation file found for domain: 'base'
I started looking at discussion #422 and then followed the links in there. Those are getting the same error, but in the context of packaging ytmusicapi in with other apps. I don't see a connection to me running it at the command line, and the solutions proposed don't seem relevant.
Anyone have an idea about this? Is this the correct place to ask, or should I create an issue? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed
ytmusicapi
into my Python environment with pip and can import it. I created the oauth.json file successfully and am getting an error instantiatingYTMusic
.I started looking at discussion #422 and then followed the links in there. Those are getting the same error, but in the context of packaging ytmusicapi in with other apps. I don't see a connection to me running it at the command line, and the solutions proposed don't seem relevant.
Anyone have an idea about this? Is this the correct place to ask, or should I create an issue? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions