-
Notifications
You must be signed in to change notification settings - Fork 120
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
Can't launch CQ-editor nor cadquery on Raspberry pi #435
Comments
How did you install CQ-editor? I don't think the Raspberry Pi is officially supported. |
I followed instructions on https://cadquery.readthedocs.io/en/latest/installation.html Install to ~/mambaforgecurl -L -o mambaforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh" Activatesource $HOME/mambaforge/bin/activate Then: conda create -n cq When that didn't work, tried: mamba install -c cadquery -c conda-forge cq-editor=master |
I think as you say - you have 2 issues. I have the "graphics" issue with crostini (Linux on ChromeOS on an x86 machine) and don't know how to fix it but I've also had the ezdxf issue on ARM Linux in a VM on a Mac and have managed to solve it. "Not sure if this might help in macOS and I can't quite provide step by step instructions but I got cadquery running in a Linux VM on Apple silicon (having followed the instructions to install via conda) after getting dependency issues in python (think the report when trying a basic setup - import cadquery - was related to zoom from ezdxf). |
Thank you, Mark, I'll try your solution and will let you know.
As for installing on Raspberry, installation through conda automatically
does it for aarch64 architecture. Follow these commands
under Addind Cq-Editor to an Existing Environment here:
https://cadquery.readthedocs.io/en/latest/installation.html#adding-a-nicer-gui-via-cq-editor
Nadir.
сб, 6 июл. 2024 г. в 23:23, Mark Stonton ***@***.***>:
… I think as you say - you have 2 issues. I have the "graphics" issue with
crostini (Linux on ChromeOS on an x86 machine) and don't know how to fix it
but I've also had the ezdxf issue on ARM Linux in a VM on a Mac and have
managed to solve it.
I've posted the following as stonto1 here
https://www.reddit.com/r/cadquery/comments/1duyjiv/installing_cadquery_on_apple_silicon/
"Not sure if this might help in macOS and I can't quite provide step by
step instructions but I got cadquery running in a Linux VM on Apple silicon
(having followed the instructions to install via conda) after getting
dependency issues in python (think the report when trying a basic setup -
import cadquery - was related to zoom from ezdxf).
What I think this issue was is that the version of ezdxf for ARM stored on
conda (anaconda.org/conda-forge/ezdxf) was v0.14.2 vs 1.1.0 for x86. (The
icons on this page still show the old version being the one for macOS so
hopefully this is still a fix...)
I went to github.com/mozman/ezdxf and downloaded the source zip (under
the green code icon). I think I grabbed the latest but there is a selection
box to the left where you can choose stable.
Back in python you can use pip install (in the conda "environment" where
cadquery is installed) to install source by pointing it to the unzipped
source download. This updates the ezdxf package to the later version which
was all that was broken in my case.
I did this in a Linux VM but it's quite possible it's the same issue in
macOS. apologies for the sketchy instructions but I did this a while ago
and meant to revisit but haven't as yet. Maybe if this works for you, you
could post a more precise set of instructions"
I have a question to pass back - where did you find an ARM version of
CQ-editor to install on the Raspi?
—
Reply to this email directly, view it on GitHub
<#435 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BE2QIHJYEZC2G4QNXNXS3XTZLBG4RAVCNFSM6AAAAABHH3URW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRHE2TGNRWGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello, smart people,
I have an issue, when I launch cq-editor or import cadquery in python I get same error:
(base) pi@raspberrypi:~ $ cq-editor
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
Traceback (most recent call last):
File "/home/pi/mambaforge/bin/cq-editor", line 6, in
from cq_editor.main import main
File "/home/pi/mambaforge/lib/python3.10/site-packages/cq_editor/main.py", line 12, in
from .main_window import MainWindow
File "/home/pi/mambaforge/lib/python3.10/site-packages/cq_editor/main_window.py", line 5, in
import cadquery as cq
File "/home/pi/mambaforge/lib/python3.10/site-packages/cadquery/init.py", line 22, in
from .occ_impl import exporters
File "/home/pi/mambaforge/lib/python3.10/site-packages/cadquery/occ_impl/exporters/init.py", line 18, in
from .dxf import exportDXF, DxfDocument
File "/home/pi/mambaforge/lib/python3.10/site-packages/cadquery/occ_impl/exporters/dxf.py", line 6, in
from ezdxf import units , zoom
ImportError: cannot import name 'zoom' from 'ezdxf' (/home/pi/mambaforge/lib/python3.10/site-packages/ezdxf/init.py)
Does anyone know, what can I do? I believe "wayland" issue and ezdxf issue are separate, but I could be wrong. Thanks.
The text was updated successfully, but these errors were encountered: