-
Notifications
You must be signed in to change notification settings - Fork 81
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
AttributeError: module 'Arcus' has no attribute 'SocketListener' on windows #50
Comments
Calling on @awhiemstra also... I have no clue about this. |
I've seen this when mixing wrong (old) versions of Arcus with newer Cura versions. Where older Arcus was wrongly in my path. |
thanks for the replies! @Ghostkeeper @daid @daid Is there something i can do to build Cura smoothly with Arcus? or the newer version Arcus is a must? and where i can get the newer version Arcus? thanks! |
The newer version of Arcus is here in this repo, but if you installed an older version in your python installation, then the newer version does not properly override this. |
@daid is there something wrong about what i do ? install Arcus means what operations? thanks! |
You only need the .pyd file. The other files are leftovers that should have been removed a long time ago. I just removed them. The .pyd should be placed somewhere where your Python can find it, either by setting PYTHONPATH or by manually copying the file. |
i copy the .pyd file to the python folder ..\Lib\site-packages, and set PYTHONPATH to ..\Lib\site-packages, |
Make sure there is no "Arcus" directory in any of the PYTHONPATH directories. Python will try and load that directory before loading the .pyd file and then fail because the old Python implementation does not match the newer API. |
Arcus is not in any of the PYTHONPATH directories, just copy the .pyd file to the python folder. I put the UM and Arcus folder in the cura project, if not, the compile will not find module Arcus and UM. but still can't avoid the error "AttributeError: module 'Arcus' has no attribute 'SocketListener'". |
In that case, it is finding the Arcus folder in the Cura folder. You need to remove that one and make sure the only Arcus thing Python can find is Arcus.pyd. |
i remove the Arcus folder, but the UM can't find it. SingalSocket.py in the UM folder errors: |
The "DLL load failed" is the relevant message here. For some reason, the .pyd fails to load. Please post the entire stack trace. |
"C:\Python 3.5\python.exe" "C:\Program Files (x86)\JetBrains\PyCharm 2016.3\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 7256 --file D:/XProject/Cura/20170102/CuraMaster/cura_app.py Connected to pydev debugger (build 163.8233.8) Process finished with exit code 1 |
@awhiemstra is there some idea about entire stack? i can't still find some solution about this issue. |
The module is not in the .pyd file or something? 😕 |
@Ghostkeeper thanks! if there is a fool-style way for the cura to link Arcus, the third party developer don't need to care the setting or install, it will be better. |
We need arcus file. Dont delete it |
@Ghostkeeper @daid @fabianrodrigo
i'am also encountering the issue "No attribute SocketListener".
and
commands:
get:
somethingsomething/python3.5/lib/site-packages/Arcus/init.py
the big trouble for me is: i don't know how to build the libArcus on the windows, so the file Arcus.pyd can't be generated out. when i follows the build guidelines about Arcus on the webpage, also guideline about protobuf, they are no effective when i try to compile or install, every compile path is full of errors.
Could you point me out more detailed compile or install procedures? many thanks!
The text was updated successfully, but these errors were encountered: