Hello everyone,

I use the following C-Code in visual studio 2005 (I start the program with 
"Release" configuration):

#include <Python.h>
#include <iostream>
using namespace std;

void main()
{
        Py_Initialize();
 
        while (1)
        {
                char test[100] = {};
                cout<<">>> ";
                cin.getline(test, 100);
                PyRun_SimpleString(test);
 
        }

        Py_Finalize();
}

for my first tries to embed python in C.
However if I try to import pylab (from pylab import *) I get the following 
error:

>>> from pylab import *
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python26\lib\site-packages\pylab.py", line 1, in <module>
    from matplotlib.pylab import *
  File "C:\Python26\lib\site-packages\matplotlib\pylab.py", line 206, in 
<module>
    from matplotlib import mpl  # pulls in most modules
  File "C:\Python26\lib\site-packages\matplotlib\mpl.py", line 1, in 
<module>
    from matplotlib import artist
  File "C:\Python26\lib\site-packages\matplotlib\artist.py", line 5, in 
<module>
    from transforms import Bbox, IdentityTransform, TransformedBbox, 
TransformedPath
  File "C:\Python26\lib\site-packages\matplotlib\transforms.py", line 34, 
in <module>
    from matplotlib._path import affine_transform
ImportError: DLL load failed: Eine DLL-Initialisierungsroutine ist 
fehlgeschlagen.
>>>

and a separate error message appears (see attached file).


Any ideas?

Markus

<<attachment: pylab_error.JPG>>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to