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
You need to install the package from pypi through: pip install ytermplayer
if you're trying to run without installing the package, just change all the relative import statements as follows from .music_api import YoutubePlayer to from music_api import YoutubePlayer
remove the "." before every import statement in all the files. That should do it.
Let me know if that helps.
duck@duck:~/Downloads/yTermPlayer/yTermPlayer$ python main.py
Traceback (most recent call last):
File "main.py", line 11, in
from .music_api import YoutubePlayer
ValueError: Attempted relative import in non-package
Could you help me to solve it?
The text was updated successfully, but these errors were encountered: