Python dependency issue -
i've scripts setup in following way -
a.py (newly added script)
from b import b import c class a(b): def process(self): super().method() c.method1() c.method2()
b.py (existing script in prod)
import c class b(exception): def method(self): c.method1() c.method2()
c.py (existing script in prod)
def method1()... def method2()...
the dir's hold b.py & c.py in path in prod host.
when invoke a.py scheduler, 'module' object has no attribute method()
error. method1() & method2() in b.py don't executed.
a.py in same dir b.py, i'm assuming nothing need updated in path.
i searched here in , found circular dependency issue, few of solutions suggested didn't work in case.
any suggestions on how can fix issue? best way resolve these issues if create more scripts in same dir existing ones.
- what expect
super()
return? it's meant called within method of class, not directly within module. - i'd expect see definition of class or function b in b.py, since it's import in a.py.
Comments
Post a Comment