ZamaaN
ZamaaN

Reputation: 63

Python3 ImportError. can't solved by any previous way

Trying to import other classes from another folder. Getting import error again and again... ImportError: attempted relative import with no known parent package How can I get rid of it?? I have init.py in "modules" folder, but that's also not helping........

Upvotes: 0

Views: 111

Answers (1)

codotron
codotron

Reputation: 51

Instead of writing

from .modules import

Try

from modules import

Also add __init__.py in main folder as well

Upvotes: 1

Related Questions