+ 2
Module 'curses' has no attribute 'scrinit' #Python
I am trying to make something about curses module but i keep getting this kind of error= """ Traceback (most recent call last): File "C:\Users\user\Desktop\yazılım\python\çalıĆmalar python\asdfff.py", line 4, in <module> s = curses.initscr() File "F:\python\lib\curses\__init__.py", line 30, in initscr fd=_sys.__stdout__.fileno()) AttributeError: 'NoneType' object has no attribute 'fileno' """ Can you help me?
1 Answer
+ 1
it will be much better if you have shared snippet of the code
base on your post, there are 2 errors in the code, on line 4 and 30.
AttributeError : none type occurs when you try to manipulate a function or variable which returns none