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

ImportError #106

Open
BogdanARZ opened this issue Feb 28, 2023 · 1 comment
Open

ImportError #106

BogdanARZ opened this issue Feb 28, 2023 · 1 comment

Comments

@BogdanARZ
Copy link

Hello guys , i've been trying to solve this error for hours , but i keep gettin' it , can someone come up with a solution?

The error : Traceback (most recent call last):
File "C:\Users\Bogdan\Desktop\TapoP100-main\PyP100\PyP100.py", line 10, in
from . import tp_link_cipher
ImportError: attempted relative import with no known parent package

@Belvenix
Copy link

It's most likely you are running the file from the incorrect directory which is PyP100\PyP100.py. It's saying that it does not know any parent package which is correct because the PyP100.py file is the one you are most likely running as "main.py". To fix this you should write either main.py in folder above or try to use this like a library which is simply (in your outside script) call from PyP100 import PyP100 which is what you probably want to do.

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