tested again and it works ok for me with mingw/cmake. You should have... * C:\Python32\2.56\scripts * C:\Python32\Lib\site-packages\bpy.pyd
Execute... C:\Python32\python.exe ... try import bpy, print(bpy.data) Important its version 3.2 and that ./2.56/ is in the subdirectory of python.exe. On Thu, Mar 24, 2011 at 9:27 AM, Paolo Basso <pa.ba...@gmail.com> wrote: > Something wrong still happens... > > I compile the source using cmake and MinGW and everything seems to work in > the right way. I get the bpy.pyd file and successfully copy it together with > the other folders in the python32 directory (as explained in the wiki page). > However when I run the python 32 interpreter and try to import the bpy > module I get the same error message as before (ImportError: DLL load failed: > %1 is not a Win32 valid application). > > I tried to compile the source also with visual studio 10 but, among the > others, I got the following error message: > > C:\temp_blender\bin\Debug\bpy.pyd : fatal error LNK1169: one or more symbols > defined more then once > > > Am I doing something wrong?? > > Cheers, > > P > > > 2011/3/24 Campbell Barton <ideasma...@gmail.com> > >> Added support for windows r35735 >> >> Updated wiki. >> http://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule >> >> On windows the function needed exporting, defining Py_ENABLE_SHARED does >> this. >> >> On Wed, Mar 23, 2011 at 6:45 PM, Paolo Basso <pa.ba...@gmail.com> wrote: >> > I tried also this way but I get the following error message (translated >> from >> > italian): >> > >> > ImportError: DLL load failed: %1 is not a Win32 valid application. >> > >> > It is possible that the dll has to be compiled with the same compiler as >> > python (visual studio)? >> > I compiled using mgwin. >> > >> > http://docs.python.org/py3k/extending/windows.html >> > 4.3. Using DLLs in Practice >> > >> > Thanks, >> > >> > P >> > >> > 2011/3/23 Mitchell Stokes <moguri...@gmail.com> >> > >> >> On Windows, C Extension modules for Python have the extension .pyd >> >> instead. So, try renaming the module from bpy.dll to bpy.pyd. >> >> >> >> Cheers, >> >> Mitchell >> >> _______________________________________________ >> >> Bf-committers mailing list >> >> Bf-committers@blender.org >> >> http://lists.blender.org/mailman/listinfo/bf-committers >> >> >> > _______________________________________________ >> > Bf-committers mailing list >> > Bf-committers@blender.org >> > http://lists.blender.org/mailman/listinfo/bf-committers >> > >> >> >> >> -- >> - Campbell >> _______________________________________________ >> Bf-committers mailing list >> Bf-committers@blender.org >> http://lists.blender.org/mailman/listinfo/bf-committers >> > _______________________________________________ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers > -- - Campbell _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers