Crabime
Crabime

Reputation: 684

osx _curses.error: setupterm: could not find terminfo database

I'm using python curses and developing under PyCharm. but whatever a simple curses program, it always gives me such an exception. what i had tried were:

Upvotes: 0

Views: 3863

Answers (1)

Vladimír Gozora
Vladimír Gozora

Reputation: 11

Complete "Hail Mary pass" from my site as I don't code in Python nor use OSX, but recently I've run into (maybe) similar problem when I linked my program against source compiled ncurses. Most probably due my fault during compilation, ncurses did not look for terminal database in "standard" locations. I've discovered this using strace on problematic binary.

A quick and dirty workaround for my problem was (assuming TERM=xterm-256color) to create separate terminfo database in my home directory and link system database into it:

mkdir ~/.terminfo
ln -s /lib/terminfo/x ~/.terminfo

Upvotes: 0

Related Questions