Menu

#1389 Unresolved import when importing package from own init

open
Editor (491)
5
2011-09-14
2011-09-14
Joel Parker
No

I have this project:

mylib [project]
src [folder]
mylib [package]
__init__.py
mymod.py

In __init__.py I have:
import mylib.mymod

This generates a code analyzer error:

Unresolved import: mylib
mylib Found at: mylib.__init__
import mylib.mymod

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.