Skip to content Skip to sidebar Skip to footer

Module 'a' Has No Attribute Func()

I have 2 modules: a: import another_module def func(): b: import a x=a.func() This is showing error: module 'a' has no attribute 'func'. What i am doing wrong in

Solution 1:

Make sure your module is names 'a.py', and it is in the same folder as b, otherwise, in the place where all the other modules are stored.


Post a Comment for "Module 'a' Has No Attribute Func()"