Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Cura from source in Windows running fails: DLL load failed while importing pyArcus #19192

Closed
ggtechd opened this issue Jun 6, 2024 · 8 comments
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.

Comments

@ggtechd
Copy link

ggtechd commented Jun 6, 2024

Cura Version

5.7.0/5.8.0-alpha.0

Operating System

Windows 11

Printer

klipper supported

Reproduction steps

pip install conan==1.60.2
conan config install https://github.com/ultimaker/conan-config.git
conan profile new default --detect --force

cd D:\Cura
git clone https://github.com/Ultimaker/Cura.git
cd D:\Cura\Cura
conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv
.\venv\Scripts\activate.ps1
python cura_app.py

Actual results

PS D:\Cura> python cura_app.py
Error in sys.excepthook:
Traceback (most recent call last):
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\Cura\cura\CuraApplication.py", line 41, in
from UM.Qt.QtApplication import QtApplication # The class we're inheriting from.
File "C:.conan\e63eb3b\1\site-packages\UM\Qt\QtApplication.py", line 21, in
from UM.Backend.Backend import Backend #For typing.
File "C:.conan\e63eb3b\1\site-packages\UM\Backend\Backend.py", line 11, in
from UM.Backend.SignalSocket import SignalSocket
File "C:.conan\e63eb3b\1\site-packages\UM\Backend\SignalSocket.py", line 4, in
import pyArcus as Arcus
ImportError: DLL load failed while importing pyArcus: The specified module could not be found.

Original exception was:
Traceback (most recent call last):
File "D:\Cura\cura_app.py", line 197, in
from cura.CuraApplication import CuraApplication
File "D:\Cura\cura\CuraApplication.py", line 41, in
from UM.Qt.QtApplication import QtApplication # The class we're inheriting from.
File "C:.conan\e63eb3b\1\site-packages\UM\Qt\QtApplication.py", line 21, in
from UM.Backend.Backend import Backend #For typing.
File "C:.conan\e63eb3b\1\site-packages\UM\Backend\Backend.py", line 11, in
from UM.Backend.SignalSocket import SignalSocket
File "C:.conan\e63eb3b\1\site-packages\UM\Backend\SignalSocket.py", line 4, in
import pyArcus as Arcus
ImportError: DLL load failed while importing pyArcus: The specified module could not be found.

PS D:\Cura> echo $env:PYTHONPATH
D:\Cura\venv\Lib\site-packages;;C:.conan\b4d6e58f6d8\1\lib;C:.conan\088d6872bc8\1\lib;C:.conan\9dad6953524\1\lib;C:.conan\55c4e9a6c\1\lib\pyDulcificum;C:.conan\e63eb3b\1\site-packages;C:.conan\e63eb3b\1\plugins
PS D:\Cura>

Expected results

Runned cura application

Add your .zip and screenshots here ⬇️

installed
run
cura_coding.txt

@ggtechd ggtechd added Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior. labels Jun 6, 2024
@ggtechd ggtechd closed this as completed Jun 8, 2024
@zhou123aw
Copy link

Have you solved this problem? I am also in the same situation

@ManuRamesha
Copy link

Has this issue been resolved? The same thing is true for me as well.

@srlihg66
Copy link

Have you solved this problem? I am also in the same situation too

@vjvarada
Copy link

Same problem here, hopefully, there is a solution for this.

@srlihg66
Copy link

这个问题我已经解决 找到文件路径 pyArcus.pyd Arcus.dll 去安装个.exe 去路径里面把这两个文件 放到pyArcus.pyd 路径下 替换原文件 就可以工作了

@vjvarada
Copy link

Thanks for your help, Replacing those files worked. I wonder if there is a way to fix the build process so we don't have to do this with every new build.

@vjvarada
Copy link

Even though Cura stars up, It crashes when loading more than one file. I assume Next2d uses arcus so it throws this error.

Thread 0x0000863c (most recent call first):
  File "C:\.conan\6d1c0b\1\bin\lib\threading.py", line 320 in wait
  File "C:\.conan\6d1c0b\1\bin\lib\threading.py", line 460 in acquire
  File "C:\.conan\de57bd\1\site-packages\UM\JobQueue.py", line 98 in _nextJob
  File "C:\.conan\de57bd\1\site-packages\UM\JobQueue.py", line 124 in run
  File "C:\.conan\6d1c0b\1\bin\lib\threading.py", line 1009 in _bootstrap_inner
  File "C:\.conan\6d1c0b\1\bin\lib\threading.py", line 966 in _bootstrap

Current thread 0x00004d2c (most recent call first):
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura\Arranging\Nest2DArrange.py", line 123 in findNodePlacement
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura\Arranging\Nest2DArrange.py", line 134 in createGroupOperationForArrange
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura\Arranging\Arranger.py", line 25 in arrange
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura\CuraApplication.py", line 2188 in _readMeshFinished
  File "C:\.conan\de57bd\1\site-packages\UM\Signal.py", line 357 in __performEmit
  File "C:\.conan\de57bd\1\site-packages\UM\Signal.py", line 328 in __performEmitIndirect
  File "C:\.conan\de57bd\1\site-packages\UM\Event.py", line 218 in call
  File "C:\.conan\de57bd\1\site-packages\UM\Qt\QtApplication.py", line 506 in event
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura\CuraApplication.py", line 1223 in event
  File "C:\.conan\de57bd\1\site-packages\UM\Qt\QtApplication.py", line 420 in exec
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura\CuraApplication.py", line 953 in run
  File "C:\Users\Vijay\Documents\GitHub\Cura\cura_app.py", line 243 in <module>

@vjvarada
Copy link

found the fix, mentioned here: #19299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This ticket requires input from someone of the Cura team Type: Bug The code does not produce the intended behavior.
Projects
None yet
Development

No branches or pull requests

5 participants