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

Can't launch CQ-editor nor cadquery on Raspberry pi #435

Open
nadirion opened this issue May 5, 2024 · 2 comments
Open

Can't launch CQ-editor nor cadquery on Raspberry pi #435

nadirion opened this issue May 5, 2024 · 2 comments

Comments

@nadirion
Copy link

nadirion commented May 5, 2024

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.

@jmwright
Copy link
Member

jmwright commented May 6, 2024

How did you install CQ-editor? I don't think the Raspberry Pi is officially supported.

@nadirion
Copy link
Author

nadirion commented May 6, 2024

I followed instructions on https://cadquery.readthedocs.io/en/latest/installation.html

Install to ~/mambaforge

curl -L -o mambaforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash mambaforge.sh -b -p $HOME/mambaforge

Activate

source $HOME/mambaforge/bin/activate

Then:

conda create -n cq
conda activate cq
mamba install cadquery

When that didn't work, tried:

mamba install -c cadquery -c conda-forge cq-editor=master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants