blenderpy
blenderpy copied to clipboard
2.91a ImportError: DLL load failed
Describe the bug I followed the instructions to install 2.91a with the whl file in Windows, but when I import bpy I get an error:
ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
To Reproduce Steps to reproduce the behavior:
- Go to https://github.com/TylerGubala/blenderpy/releases/tag/v2.91a0
- Download the windows whl and follow installation instructions
- Run a Python script with
import bpyin it - See error
Expected behavior Magically everything works great
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10
- Python 3.7.7 (Conda)
(myenv) C:\test>pip install C:\Users\l\Downloads\bpy-2.91a0-cp37-cp37m-win_amd64.whl && bpy_post_install
Processing c:\users\l\downloads\bpy-2.91a0-cp37-cp37m-win_amd64.whl
Requirement already satisfied: numpy in c:\users\l\.conda\envs\myenv\lib\site-packages (from bpy==2.91a0) (1.19.1)
Installing collected packages: bpy
Attempting uninstall: bpy
Found existing installation: bpy 2.82.1
Uninstalling bpy-2.82.1:
Successfully uninstalled bpy-2.82.1
Successfully installed bpy-2.91a0
Found Blender scripts directory at c:\users\l\.conda\envs\myenv\2.82
c:\users\l\.conda\envs\myenv\2.82 already direct child of c:\users\l\.conda\envs\myenv
Configuration complete, enjoy using Blender as a Python module!
(myenv) C:\test>python.exe renderit.py
Traceback (most recent call last):
File "renderit.py", line 3, in <module>
import bpy
ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
(myenv) C:\test>python --version
Python 3.7.7
(myenv) C:\test>
Additional context I have actually done successful builds of blender (2.8x) on this Windows PC in the past. Although I am not sure how my conda environment "myenv" would find the prerequisites/libraries it might be looking for? So really this issue is probably my fault. I have followed instructions called "Install your Windows library dependencies (see the Blender wiki, install all dependencies that have lib in the name for your given platform)" but how would my conda environment find them? So I probably missed some critical step obvious to everyone but me.
Hi, I've started looking into this but have yet to look into it deeper; it's definately a legitimate issue.
Been a little busy lately but this is a very high priorty issue when I get some time.
On Wed, Nov 18, 2020, 8:08 PM lex3001 [email protected] wrote:
Describe the bug I followed the instructions to install 2.91a with the whl file in Windows, but when I import bpy I get an error:
ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
To Reproduce Steps to reproduce the behavior:
- Go to https://github.com/TylerGubala/blenderpy/releases/tag/v2.91a0
- Download the windows whl and follow installation instructions
- Run a Python script with import bpy in it
- See error
Expected behavior Magically everything works great
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Windows 10
- Python 3.7.7 (Conda)
(myenv) C:\test>pip install C:\Users\l\Downloads\bpy-2.91a0-cp37-cp37m-win_amd64.whl && bpy_post_install Processing c:\users\l\downloads\bpy-2.91a0-cp37-cp37m-win_amd64.whl Requirement already satisfied: numpy in c:\users\l.conda\envs\myenv\lib\site-packages (from bpy==2.91a0) (1.19.1) Installing collected packages: bpy Attempting uninstall: bpy Found existing installation: bpy 2.82.1 Uninstalling bpy-2.82.1: Successfully uninstalled bpy-2.82.1 Successfully installed bpy-2.91a0 Found Blender scripts directory at c:\users\l.conda\envs\myenv\2.82 c:\users\l.conda\envs\myenv\2.82 already direct child of c:\users\l.conda\envs\myenv Configuration complete, enjoy using Blender as a Python module!
(myenv) C:\test>python.exe renderit.py Traceback (most recent call last): File "renderit.py", line 3, in
import bpy ImportError: DLL load failed: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (myenv) C:\test>python --version Python 3.7.7
(myenv) C:\test>
Additional context I have actually done successful builds of blender (2.8x) on this Windows PC in the past. Although I am not sure how my conda environment "myenv" would find the prerequisites/libraries it might be looking for? So really this issue is probably my fault. I have followed instructions called "Install your Windows library dependencies (see the Blender wiki, install all dependencies that have lib in the name for your given platform)" but how would my conda environment find them? So I probably missed some critical step obvious to everyone but me.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TylerGubala/blenderpy/issues/63, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLEYR677C7T4EQ4XKO3BETSQRVZTANCNFSM4T2XTS7A .
Sorry about the ping, but wanted to see if there's any motion.
Hi, the work that earns me money has been tremendously busy lately, so there has been virtually no motion.
Thank you for your patience.
On Tue, Dec 8, 2020, 1:51 PM K. S. Ernest (iFire) Lee < [email protected]> wrote:
Sorry about the ping, but wanted to see if there's any motion.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/TylerGubala/blenderpy/issues/63#issuecomment-740843361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFLEYR3APMGMK6WGBHVMXLTSTZYTTANCNFSM4T2XTS7A .
Hello i have the same problem here.

Hope i can find a solution here soon. Thank you !
Yes, I have the same issue
Still getting this error, using Windows 10 & Python 3.7
Yes, I have the same issue
Yes, I have the same issue ,How did you solve it