Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
122 Views

curses missing on python 3.7

I was trying to run a script using ncurses on a conda installed intel python 3.7.7, and I kept receiving error messages :

import curses

ModuleNotFoundError: No module named '_curses'

I installed libncurses-dev, conda curses package without any luck.

After digging, it looks like all 3.7.* packages distributed on https://anaconda.org/intel/python (at least) are lacking _curses.cpython-37m-x86_64-linux-gnu.so (and _curses_panel.cpython-37m-x86_64-linux-gnu.so .. and maybe more, but I was only looking for curses), which should be in folder /lib/python3.7/lib-dynload/ in the package and provided by default by the distribution. 

3.6.3 used to provide it ( _curses.cpython-36m-x86_64-linux-gnu.so in /lib/python3.6/lib-dynload/ ).

I checked on https://anaconda.org/conda-forge/python and they provide it with 3.7 and 3.8 python flavors, so it looks like it should still be provided as well on Intel's one.

I can confirm that manually stealing the file from conda-forge version has "import curses" working normally, but this is not sustainable in our worklfow.

0 Kudos
2 Replies
Highlighted
Moderator
109 Views

Hi Degommea.


Thanks for reaching out to us. We are forwarding this case to SME, will get back to you at the earliest.


Thanks,

Adweidh.


0 Kudos
Highlighted
Moderator
79 Views

Hi Degommea.


We escalated this issue back to engineer team.

If engineer team confirms the issue, the proper fix may come into later release of intel distribution for python.




0 Kudos