module 'npyscreen' has no attribute 'wrapper_basic'

178 Views Asked by At

When I try to use a function of the npyscreen module it returns the error that the attribute can not be found. I do not understand why. Does anyone have an idea what is going wrong?

import npyscreen

def simple_function(*args):
    print("nothing")

if (__name__ == "__main__"):
    npyscreen.wrapper_basic(simple_function)

Error message:

AttributeError: module 'npyscreen' has no attribute 'wrapper_basic'

1

There are 1 best solutions below

0
SirMario On BEST ANSWER

I named my python file npyscreen.py which is the same as the module its name. FIXED by renaming it!