Python as a Module MSVC2010 - Win64

Hi All,

I am trying to get Blender as a python module according to the instructions here: http://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule . After install bpy.pyd in site-packages and the scripts/modules I am failing to import bpy. Here is the log in the python console. I am happy to hack any bits of code which will let me load the module.

Python 3.2.3 (default, Apr 11 2012, 07:12:16) [MSC v.1500 64 bit (AMD64)] on win
32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import bpy
BLF_lang_init: ‘locale’ data path for translations not found, continuing
[OpenColorIO Info]: Color management disabled. (Specify the $OCIO environment va
riable to enable.)
bpy: couldnt find ‘scripts/modules’, blender probably wont start.
ImportError: No module named bpy_types
ImportError: No module named bpy_types
pyrna_srna_ExternalType: failed to find ‘bpy_types’ module
ImportError: No module named bpy_types
ImportError: No module named bpy_types
pyrna_srna_ExternalType: failed to find ‘bpy_types’ module

Cheers,

whatnick.

Copy folder 2.6x in your output directory to where python.exe located.

Hi,

I just read your post. I am having trouble generating the bpy.pyd module using cmake and mingw with the blender source. Is it possible for you to zip and send the bpy.pyd and the other dlls to me.

Thanks.