-
Notifications
You must be signed in to change notification settings - Fork 75
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
Docker: Installing matplotlib #957
Comments
Hi, If you try Ubuntu, do not go for the latest version Ubuntu-20-LTS because that uses python 3.9 which we have not yet released a binary build for. IIRC htm.core should just work on ubuntu 18-LTS. HTH |
Hmm thanks. Still stuck. Seems like the code has dependencies on files in nupic.core that aren't around anymore. from nupic.data.inference_shifter import InferenceShifter I can use the numenta/nupic docker to get these classes, but then I get stuck with the urllib3 / mathplotlib docker install. Hmm. I tried pip installing nupic Any idea how I might get both nupic and mathplotlib working together? Or, maybe how was InferenceShifter ported to htm.core? |
Uhh, I probably should have noticed this sooner but nupic.critic requires You could try porting the old There is also this other HTM-community project for encoding audio, but I'm not sure if that repo has a working encoder either. |
Thanks, yeah, that one also looks like it's dependent on the old Nupic, and uses matplotlib too. So I will run into that urllib3 bug again. I'll probably try bash my head against docker/matplotlib/urllib3 for a bit - I see that this bug is supposed to go away for python >= 2.7.9. So maybe I can change the python version in the docker, and get a bit farther. But if that doesn't work, I'll try port nupic.audio or nupic.critic code to htm.core, one of these weekends. I have a pretty shallow understanding of the codebases, at the moment, so it's a bit daunting. |
Hi
I'm trying to run this nupic.critic code
and I started with the official nupic docker, numenta/nupic, but pip wouldn't install anything because of 'SNIMissingWarning', which prevents urllib3 from doing something, blah blah blah, and the internet suggests installing pyOpenSSL but I can't get that to install either.
Ok, so I give up, and now I've found htm.core.
Neither docker install builds, but I modify it to install pip/pip3 correctly, and give it a bash.
So I need matplotlib as a pre-req, and so I try pip/pip3 install it. And it gives this error:
(It's using Python 3.9)
And the build fails. All the advice I've found suggests linking this file elsewhere. But the file doesn't exist. I grepped the /usr/lib folder for it. Not there. Numpy is there. But not this file.
So I'm back to the drawing board. Anyone tried to use the Dockers recently?
Should I maybe just switch the base to an OS like Ubuntu? Or try with Python 3.6/7/8?
I presume all this stuff is happening because Alpine or Python 3.9 is a bit iffy. But I don't know.
Thanks
The text was updated successfully, but these errors were encountered: