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

Not working on Windows 10 (Anaconda Python distribution) #20

Open
AllanLRH opened this issue Jan 26, 2018 · 3 comments
Open

Not working on Windows 10 (Anaconda Python distribution) #20

AllanLRH opened this issue Jan 26, 2018 · 3 comments

Comments

@AllanLRH
Copy link

AllanLRH commented Jan 26, 2018

Use of another library than curses would fix it, see paragraph 5: https://docs.python.org/3.3/howto/curses.html

C:\Users\Adam Huxley>unimatrix -n -s 96 -l o
Traceback (most recent call last):
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\Scripts\unimatrix-script.py", line 11, in <module>
    load_entry_point('unimatrix==0.1.dev64+gcd04928', 'console_scripts', 'unimatrix')()
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 565, in load_entry_point
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2598, in load_entry_point
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2258, in load
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\lib\site-packages\setuptools-27.2.0-py3.6.egg\pkg_resources\__init__.py", line 2264, in resolve
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\lib\site-packages\unimatrix.py", line 28, in <module>
    import curses
  File "C:\Users\Adam Huxley\Anaconda3\envs\py36\lib\curses\__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'
@will8211
Copy link
Owner

Looks like you'll need to download a wheel and install the python curses package.

Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/
And download either
curses‑2.2‑cp36‑cp36m‑win32.whl
curses‑2.2‑cp36‑cp36m‑win_amd64.whl
Depending on if you're running python 32 or 64 bit
Run a console, CD to the directory with the whl package, and run
py3 -m pip install [package name]
py3 might be a different command on your system, whatever you use to run python3

@will8211
Copy link
Owner

actually, after writing this, I realise that curses might not even work in Windows... Let me know if it works. Maybe in cygwin?

@jerry2605
Copy link

confirmed, after installed. It works in win10.

How can I let it run in Jypyter notebook or iPython?

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

3 participants