Python library issues in CGI script using Apache Server in WAMP
I setup Python 2.5 and a few libraries (such as MySQLdb) on a Windows 7 PC. After failing to setup IIS for the CGI script I decided to use WAMP.

A few days later I realized I needed matplotlib as well. After installation of the module and upon adding the

        import matplotlib

line the CGI script immediately failed. It works fine when I run the script using IDLE, which proves the module is installed correctly. And I verified that the Python version and path are identical between the Apache-run script and locally using IDLE with 

        print sys.version
        print sys.path

I even tried to be creative and wrote a small module within the same folder as the CGI script which would use the matplotlib functions I needed. However, importing that new module failed as well in the Apache-run CGI script (but worked locally). None of the other posts I found deal with Windows OS (small wonder) and it seems most of the people had directory/path issues. I know I don't have those issues because I can successfully use MySQLdb which is in the same directory as matplotlib. I even added C:\Python25\Libs\site-packages folder to the Apache conf file as a Directory but it didn't help. I am leaning toward an Apache issue but I am new to web servers. Any thoughts?  
Python library issues in CGI script using Apache Server in WAMP
===

I setup Python 2.5 and a few libraries (such as MySQLdb) on a Windows 7 PC. After failing to setup IIS for the CGI script I decided to use WAMP.

A few days later I realized I needed matplotlib as well. After installation of the module and upon adding the

        import matplotlib

line the CGI script immediately failed. It works fine when I run the script using IDLE, which proves the module is installed correctly. And I verified that the Python version and path are identical between the Apache-run script and locally using IDLE with 

        print sys.version
        print sys.path

I even tried to be creative and wrote a small module within the same folder as the CGI script which would use the matplotlib functions I needed. However, importing that new module failed as well in the Apache-run CGI script (but worked locally). None of the other posts I found deal with Windows OS (small wonder) and it seems most of the people had directory/path issues. I know I don't have those issues because I can successfully use MySQLdb which is in the same directory as matplotlib. I even added C:\Python25\Libs\site-packages folder to the Apache conf file as a Directory but it didn't help. I am leaning toward an Apache issue but I am new to web servers. Any thoughts?  