marla06 Posted September 16, 2013 Posted September 16, 2013 Hello, I'm setting up my django website (http://weatherstation.heliohost.org/sitemc/charts/), but I have the problem numpy and matplotlib does not seem to be installed by default.As matplotlib is quite a big library (about 90Mo) installing it manually might be quite difficult.Any idea how to do that ? Thanks
Ice IT Support Posted September 17, 2013 Posted September 17, 2013 Looks like it requires shell access to install, which we don't provide for our users. Also, I'm not seeing alternative installation methods in the documentation.
Ice IT Support Posted September 17, 2013 Posted September 17, 2013 This support request is being escalated to our root admin.
Ice IT Support Posted September 17, 2013 Posted September 17, 2013 Please post the following information:Your cPanel username Your main domain The server that you are on
marla06 Posted September 17, 2013 Author Posted September 17, 2013 The server I use is stevie.The cpanel user name is marla06.The main domain is http://weatherstation.heliohost.org.Thanks a lot for the support ! Best regards
Krydos Posted September 19, 2013 Posted September 19, 2013 Which version of python are you using? #!/usr/local/bin/python2.7 Python version 2.7.1 #!/usr/local/bin/python3.2 Python version 3.2
marla06 Posted September 19, 2013 Author Posted September 19, 2013 I'm using Python version 2.7.1As I did not specified any python version, I suppose it is the default.If I want to choose a version, I suppose the line " #!/usr/local/bin/python?.? " should be at the top of my dispatch.wsgi file ?If it is more convenient for you I can use Python version 3.2 too. Cheers
marla06 Posted September 27, 2013 Author Posted September 27, 2013 Hello, Have you any news about the matplotlib installation ? Cordially
Krydos Posted September 29, 2013 Posted September 29, 2013 The following were installed: freetype 2.5.0.1 libpng 1.6.6 pyparsing 2.0.1 numpy 1.7.1 matplotlib 1.3.0 There may have been some other things installed too that I forgot to list. It seemed like every dependency had multiple uninstalled dependencies of its own. root@stevie [/home/krydos/src/matplotlib-1.3.0]# /usr/local/bin/python2.7 Python 2.7.1 (r271:86832, May 15 2011, 21:32:40) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib >>> print matplotlib.__version__ 1.3.0 It appears to be working. Apologies for the delay in getting all this set up. I've been quite busy, and as you might imagine it wasn't a particularly simple thing to install. 1
marla06 Posted October 1, 2013 Author Posted October 1, 2013 Apparently it only partially works. I don't have anymore the "no module present" error while I do an "import matplotlib", but get"libpng16.so.16: cannot open shared object file: No such file or directory" instead. Maybe a problem with access rights ? A minimalistic test case of what I'm trying to do (It works locally) is: from matplotlib.pyplot import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas import django fig=Figure() ax=fig.add_subplot(111) canvas=FigureCanvas(fig) response=django.http.HttpResponse(content_type='image/png') canvas.print_png(response)
marla06 Posted October 8, 2013 Author Posted October 8, 2013 Hi, Any news ? It seems we are not far from getting it to work Cheers
Ice IT Support Posted October 14, 2013 Posted October 14, 2013 Please be patient. We are volunteers who help out at HelioHost on our own time.
marla06 Posted October 16, 2013 Author Posted October 16, 2013 Sorry, I was just wondering if I had to go for an other option. Glad you still looking at it.Thanks !
Krydos Posted October 21, 2013 Posted October 21, 2013 I'm unable to reproduce the "libpng16.so.16: cannot open shared object file: No such file or directory" error. Can you post a link to the script that causes the error? Also I'll let you in on a secret, it might seem a bit counter intuitive, but I always try to work on the topics that are the oldest first. So, when you "bump" a post it actually moves it to the bottom of my todo list each time.
Recommended Posts