'Qpython curses library could not find terminal

I am trying to make a curses script on Qpython, but neither do qpy2 or 3 work. On Qpython 2, import curses says 'module not found', and on Qpython 3, it works, but at the first initscr it crashes with the following exception:

Traceback (most recent call last):
  File "/mnt/sdcard/com.hipipal.qpyplus/scripts3/testcurses.py", line 4, in <module>
    win=curses.initscr()
  File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/curses/__init__.py", line 31, in initscr
_curses.error: setupterm: could not find terminal

I am using the example that came with Qpython 3 as a test. If that helps, I'm using a kindle fire HD (the old one) with a sideloaded APK from google play. (no I'm not rooted)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source