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: attempted relative import with no known parent package #13

Open
gavinzli opened this issue Dec 18, 2020 · 3 comments
Open

Comments

@gavinzli
Copy link

There is one error shown as below:

Traceback (most recent call last):
File "task/zh_get_info.py", line 10, in
from ..tools.util import *
ImportError: attempted relative import with no known parent package

@dingding951001
Copy link

同问

1 similar comment
@RockieLiu
Copy link

同问

@kenmentlo
Copy link

改为这样就可以了:
from tools import util
from tools import mydb

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

4 participants