0
$\begingroup$

I want to access BPY in standard python console on windows 64bit operating system. I searched, and found this link "http://wiki.blender.org/index.php/User%3aIdeasman42/BlenderAsPyModule". I did all the steps. but unable to import BPY in my python IDLE, also version of both are same. It shows error which is :"

>>> import bpy

Traceback (most recent call last): File "<pyshell#1>", line 1, in <module>

import bpy

ImportError: dynamic module does not define init function (initbpy)

please help me. thanks

$\endgroup$
  • $\begingroup$ Which version of Python are you using? $\endgroup$ – dr. Sybren Jan 2 '18 at 9:40
1
$\begingroup$

I also ran into this problem. I think Python3.x is needed or see bullet points below for more information.

Failed: python -c "import bpy; print('hello');"

Worked: python3 -c "import bpy; print('hello');"

  • "get Python3.x-framework from Python.org and install it."
  • "The Python version requirements are the same with building a regular blender binary (if Blender us using Python3.5 then there is NO WAY to use another version - 2.7/3.2/3.4 will all fail)."

Source: https://wiki.blender.org/index.php/User%3aIdeasman42/BlenderAsPyModule

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.