Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_curses.error: setupterm: could not find terminal on CI systems #81

Open
tedivm opened this issue Apr 23, 2018 · 1 comment
Open

_curses.error: setupterm: could not find terminal on CI systems #81

tedivm opened this issue Apr 23, 2018 · 1 comment

Comments

@tedivm
Copy link
Contributor

tedivm commented Apr 23, 2018

When running this command-

amicleaner -f --full-report --mapping-key tags --mapping-values Name Branch --keep-previous 2

on CircleCI the result is-

Traceback (most recent call last):
  File "/usr/local/bin/amicleaner", line 7, in <module>
    from amicleaner.cli import main
  File "/usr/local/lib/python3.6/site-packages/amicleaner/cli.py", line 13, in <module>
    from .resources.config import MAPPING_KEY, MAPPING_VALUES
  File "/usr/local/lib/python3.6/site-packages/amicleaner/resources/config.py", line 9, in <module>
    TERM = Terminal()
  File "/usr/local/lib/python3.6/site-packages/blessings/__init__.py", line 105, in __init__
    self._init_descriptor)
_curses.error: setupterm: could not find terminal
@tedivm
Copy link
Contributor Author

tedivm commented Apr 24, 2018

The solution to this is to set the environmental variable TERM to xterm-

export TERM=xterm && amiclean

It may be worth updating the readme for people who encounter this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant