Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

ImportError no module named _curses #2

Closed
pawamoy opened this issue Dec 16, 2017 · 3 comments
Closed

ImportError no module named _curses #2

pawamoy opened this issue Dec 16, 2017 · 3 comments

Comments

@pawamoy
Copy link

pawamoy commented Dec 16, 2017

When running retox I get this error:

Traceback (most recent call last):
  File "/home/pawamoy/Data/isolated/virtualenvs/py35/bin/retox", line 7, in <module>
    from retox.__main__ import main
  File "/home/pawamoy/Data/isolated/virtualenvs/py35/lib/python3.5/site-packages/retox/__main__.py", line 11, in <module>
    from asciimatics.screen import Screen
  File "/home/pawamoy/Data/isolated/virtualenvs/py35/lib/python3.5/site-packages/asciimatics/screen.py", line 1918, in <module>
    import curses
  File "/usr/local/lib/python3.5/curses/__init__.py", line 13, in <module>
    from _curses import *
ImportError: No module named '_curses'

Am I missing a dependency here? I already have libncurses5-dev installed. I'm on Debian Jessie by the way.

@pawamoy
Copy link
Author

pawamoy commented Dec 16, 2017

It might be that I built Python without support for curses back then. I'll try to rebuild it and see what happens.

@pawamoy
Copy link
Author

pawamoy commented Dec 16, 2017

Alright, it's working now. So the solution is to install libncurses5-dev and rebuild Python.

@pawamoy pawamoy closed this as completed Dec 16, 2017
@tonybaloney
Copy link
Owner

Thanks for the heads up. I’ll add it to the documentation

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

No branches or pull requests

2 participants