AttributeError: obiekt 'module' nie ma atrybutu
Mam dwa moduły Pythona:
a.py
import b
def hello():
print "hello"
print "a.py"
print hello()
print b.hi()
b.py
import a
def hi():
print "hi"
Kiedy uciekama.py
, Dostaję:
AttributeError: 'module' object has no attribute 'hi'
Co oznacza błąd? Jak to naprawić?