aisk / pick

create curses based interactive selection list in the terminal
MIT License
722 stars 62 forks source link

No module named '_curses' #15

Closed drewmharp closed 6 years ago

drewmharp commented 7 years ago

When I try to import ("from pick import pick") I get an error that reads: "ModuleNotFoundError: No module named '_curses' "

I just started programming, so maybe its an error on my part, but I'm not sure.

wong2 commented 7 years ago

@drewmharp are you using Windows?

drewmharp commented 7 years ago

@wong2 Yes.

ChadTaljaardt commented 6 years ago

@wong2 I'm getting this error too.

wong2 commented 6 years ago

@ChadTaljaardt Try to install curses for Windows with:

pip install http://www.lfd.uci.edu/~gohlke/pythonlibs/xugyqnq9/curses-2.2-cp27-none-win32.whl

ChadTaljaardt commented 6 years ago

@wong2 Thanks for your prompt response!

This is what i get when i paste that command

curses-2.2-cp27-none-win32.whl is not a supported wheel on this platform.

Also this might be related: https://stackoverflow.com/questions/35850362/importerror-no-module-named-curses-when-trying-to-import-blessings

wong2 commented 6 years ago

@ChadTaljaardt You could try install other wheels here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#curses find the one for your platform or python version

ChadTaljaardt commented 6 years ago

@wong2 i came across this website before and have tried to install a few different versions but for literally every single one there i get the same issue.

wong2 commented 6 years ago

@ChadTaljaardt 😢 What's your platform?

ChadTaljaardt commented 6 years ago

@wong2 Okay i got it working, i downloaded every single version and just tried each of the one by one.

this one worked for me!

curses-2.2+utf8-cp36-cp36m-win32.whl

Thanks for your help and this is a great package!

wong2 commented 6 years ago

@ChadTaljaardt Great! I'll try to figure out how to include that unofficial curses package as dependency in pick on Windows

ChadTaljaardt commented 6 years ago

@wong That's a great idea!

@drewmharp Did this fix work for you as well?

wong2 commented 6 years ago

Added a note in README: https://github.com/wong2/pick/commit/0e8bdb540dd4f2a428d5a05d16d449b28af7e881

librien commented 5 years ago

I know this is closed, but in case anyone else finds it, you should now be able to do pip install windows-curses.