You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

python curses missing module

I can't import the python curses module. curse.textpad is missing



>>> import curses

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "curses.py", line 4, in <module>

import curses.textpad

ImportError: No module named textpad

MacBook Pro, OS X Yosemite (10.10.5)

Posted on Mar 31, 2017 7:25 PM

Reply
3 replies

Mar 31, 2017 7:49 PM in response to koocies

The following import statements work fine on the following Python versions that I have installed on El Capitan 10.11.6, and macOS Sierra 10.12.4:


  • Default OS X Python : 2.7.10
  • Python 2.7.13
  • Python 3.6.1


Using idle, and idle3 respectively, or in executable Python code:

import curses

import curses.textpad


Example code that I have tested in all three of the above Python releases as a standalone python script. Just start typing and the textpad will reveal itself. Control-C to quit.

python curses missing module

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.