Hi Mika, I had a similar issue on Ubuntu 12.04. I was able to fix it by first uninstalling matplotlib, installing tk and tk-dev libraries, and then installing matplotlib using pip again (as outlined here: http://stackoverflow.com/questions/15708226/python3-3-matplotlib-cannot-import-name-tkagg ).
Hope this helps. //Vanja On Tue, Jul 22, 2014 at 6:07 AM, Mika Schiller <[email protected]> wrote: > Thanks, but it didn't work. There seems to be something screwy with > matlab. The fact that I can't import it in the python shell means that it's > been improperly installed or perhaps is an out of date version. I tried > sudo pip install matplotlib --upgrade and it said that I need the freetype > package to complete the operation. So I've got to do some digging around. > > > On Mon, Jul 21, 2014 at 12:37 AM, Matthew Taylor <[email protected]> wrote: > >> Use the --plot option: >> >> > ./run.py --plot >> >> See >> https://github.com/numenta/nupic/tree/master/examples/opf/clients/hotgym/prediction/one_gym#running >> >> Regards, >> --------- >> Matt Taylor >> OS Community Flag-Bearer >> Numenta >> >> >> On Sun, Jul 20, 2014 at 9:29 PM, Mika Schiller <[email protected]> >> wrote: >> > Hi, >> > >> > I'm trying to get "run.py" to ouput predictions in matlab, but nothing >> > happens. Instead, the predictions get outputed to a file. I checked the >> > runIoThroughNupic() function in run.py to make sure that there are no >> > errors. I'be attached a screenshot of both that and the "if >> __name__...." >> > part of the file so that you can see. >> > >> > I figured maybe matplotlib wasn't installed, so I fired up python and >> did >> > "import matplotlib" and got an error saying it wasn't installed. So I >> went >> > ahead and did a pip install matplotlib, but it said it was already >> installed >> > at >> > >> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python >> > and I checked the file and sure enough it's there. So I'm not sure why >> I'm >> > unable to import it. I'm assuming that "nupic_output.py" is also unable >> to >> > import matplotlib and that's probably why it's not working. Any idea >> what >> > might be going on here? >> > >> > Thnx! >> > >> > Mika >> > >> > _______________________________________________ >> > nupic mailing list >> > [email protected] >> > http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org >> > >> >> _______________________________________________ >> nupic mailing list >> [email protected] >> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org >> > > > _______________________________________________ > nupic mailing list > [email protected] > http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org > >
_______________________________________________ nupic mailing list [email protected] http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
