Importing & Running Matplotlib Via Cgi
I'm having some dramas with matplotlib and CGI, despite a night spent searching for solutions. In brief, I'm running Python2.7 with matplotlib through a Bluhost server. I have want
Solution 1:
OK, so it seems the problem has been solved. There were two issues: 1) The paths to the packages weren't properly specified in the PYTHONPATH belonging to the CGI-version of Python, and 2) The CGI ran a different version of python(p2.6), hence there were some incompatibilities with the various packages. I used "python2.6" when installing the numpy & matplotlib modules to ensure they were compatible with p2.6, then temporarily add a link to the package location when I call my script using CGI. Not ideal, but good enough for starters. Thanks for your help!
Post a Comment for "Importing & Running Matplotlib Via Cgi"