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

Hello, i having an issues #2

Closed
Lzmog opened this issue May 29, 2019 · 1 comment
Closed

Hello, i having an issues #2

Lzmog opened this issue May 29, 2019 · 1 comment

Comments

@Lzmog
Copy link

Lzmog commented May 29, 2019

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?

@vaibkumr
Copy link
Owner

vaibkumr commented Jun 1, 2019

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.

@vaibkumr vaibkumr closed this as completed Jun 2, 2019
@vaibkumr vaibkumr mentioned this issue Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants