This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shreyanavigyan
Recipients brett.cannon, eric.snow, ncoghlan, ned.deily, ronaldoussoren, serhiy.storchaka, shreyanavigyan
Date 2021-04-05.07:53:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617609209.59.0.66840482118.issue43728@roundup.psfhosted.org>
In-reply-to
Content
The curses module is not supported on all platforms is very clear. But beginners may seem to think that their python was not installed properly and then they would go around looking for answer. To make it clear I was thinking of how about changing just the message and if required then the type (maybe CursesNotFoundError exception class derived from ModuleNotFoundError class) so that the error message became a little bit informational. The message could be like "_curses library not installed. Install a supported curses library to use the curses module" or something like that? 

The exception right now looks like this :-

ModuleNotFoundError: No module named '_curses'

What about something like this :-

CursesNotFoundError: "_curses library not installed. Install a supported curses library to use the curses module."

N.B.: The curses library still can be used on Windows by using the UniCurses library or Christoph Gohlke's unofficial curses or some other third party library.
History
Date User Action Args
2021-04-05 07:53:29shreyanavigyansetrecipients: + shreyanavigyan, brett.cannon, ronaldoussoren, ncoghlan, ned.deily, eric.snow, serhiy.storchaka
2021-04-05 07:53:29shreyanavigyansetmessageid: <1617609209.59.0.66840482118.issue43728@roundup.psfhosted.org>
2021-04-05 07:53:29shreyanavigyanlinkissue43728 messages
2021-04-05 07:53:29shreyanavigyancreate