Trying to get CadQuery installed --- suggestions?

276 views
Skip to first unread message

WillAdams

unread,
Feb 12, 2021, 1:02:30 PM2/12/21
to CadQuery
Okay, just failed at installing CadQuery and CQ-editor on Mac OS X Big Sur --- will try again later, but in the meanwhile was wondering what the prospects were for installing on a Raspberry Pi 4 running Raspbian (the 32-bit version which I'm using since that's what Carbide Motion wants).

Is that feasible? 

What are the commands to use? 

Is there one or more .deb files? If so, where are they and what are their names?

William


Jeremy Wright

unread,
Feb 12, 2021, 9:19:11 PM2/12/21
to CadQuery
> wondering what the prospects were for installing on a Raspberry Pi 4 running Raspbian (the 32-bit version which I'm using since that's what Carbide Motion wants).

I don't know that anyone has tried it and I expect there will be major challenges since the RPi boards have ARM processors.

> Is there one or more .deb files?

There are no .deb files for CadQuery or CQ-editor. The only options right now are to use Anaconda and the binary builds.

WillAdams

unread,
Feb 13, 2021, 8:21:10 AM2/13/21
to CadQuery
Thanks. Darn, was hoping it would be an expedient shortcut.

Managed to get FreeCAD installed, so guess I'll experiment with that for a bit.

William

WillAdams

unread,
Feb 13, 2021, 11:12:01 AM2/13/21
to CadQuery
Okay, tried again on the MacBook.


installing cadquery using the command from: https://cadquery.readthedocs.io/en/latest/installation.html

conda install -c cadquery -c conda-forge cadquery=master

and that worked fine --- got the SVG code using the test command.

Installing CQ-editor didn't go as well, with a number of conflicts and command not found when trying to launch cq-editor --- see the attached file.

William
cqeditorerrors.txt

WillAdams

unread,
Feb 13, 2021, 11:38:57 AM2/13/21
to CadQuery
When trying to run the pre-compiled version the error is:

Warning: QApplication was created before pyqtgraph was imported; there may be problems
to avoid bugs, call QApplication.setGraphicsSystem("raster") before the QApplication is created).
Namespace(filename=None)

William

Ami Fischman

unread,
Feb 13, 2021, 4:28:09 PM2/13/21
to CadQuery
I went through a similar journey recently: can't run it on rpi4, conda on os/x is a pain, and cq-editor in docker in os/x displaying to XQuartz misses GL and so is slow & glitchy.

If you're not wedded to using CQ-Editor and are willing to use jupyter-cadquery instead, https://github.com/bernhard-42/jupyter-cadquery#b-using-a-docker-image describes how you can do so using docker.
This has worked out well for me: native chrome on OS/X loading the jupyter webapp from inside the docker container. 

Adam Urbanczyk

unread,
Feb 14, 2021, 9:19:37 AM2/14/21
to CadQuery
Take  look at this issue: https://github.com/CadQuery/CQ-editor/issues/209 Some users had success setting QT_MAC_WANTS_LAYER=1 before launching the app. It is an upstream Qt issue AFAICT.

What is NOK with conda and Mac? Just install Miniconda locally to a folder and go from there. Also be aware that jupyter-cadquery is not a CQ project - the docker image might be outdated wrt the current CQ version (2.1), you might want to check with Bernhard.

Regarding RPi, you'd need to compile OCCT and OCP for RPi yourself.

Ami Fischman

unread,
Feb 14, 2021, 2:31:06 PM2/14/21
to Adam Urbanczyk, CadQuery
Indeed QT_MAC_WANTS_LAYER=1 makes a conda-installed CQ-editor work.
I think I gave up on conda earlier in my CQ journey because it took so long to decide what it needed to do. Today I was more patient (and timed it) and it took ~8m, which seems excessive to me (not a conda user normally, so IDK if this is typical, though the internet suggests that conda-is-slow is not a unique observation :)).

Indeed jupyter-cadquery is ~1mo out of date (filed https://github.com/bernhard-42/jupyter-cadquery/issues/35 to update it to CQ 2.1).
That said, it's an intuitive UI for me (I spend a lot of my day in notebooks) and the ergonomics are nice (scratch cells, keyboard bindings make sense to my fingers, etc).
 
Building OCCT on rpi seems like a significant undertaking; AFAICT from glancing through the build instructions it seems like ARM is only a supported target for Android & iOS but not Linux.
The latency of execution/rendering on my OS/X machine makes me not relish the thought of moving that computation to the punier RPi.

Cheers,
-a

--
cadquery home: https://github.com/CadQuery/cadquery
post issues at https://github.com/CadQuery/cadquery/issues
run it at home at : https://github.com/CadQuery/CQ-editor
---
You received this message because you are subscribed to the Google Groups "CadQuery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cadquery+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cadquery/40dbe9cd-6803-45ef-ad6f-d8e07638bb32n%40googlegroups.com.

Jeremy Wright

unread,
Feb 15, 2021, 7:21:16 AM2/15/21
to CadQuery
 Will "QT_MAC_WANTS_LAYER=1" work without breaking previous versions of MacOS? If so, I can add it to the launch script for the binary development packages before CQ-editor is launched.

Adam Urbanczyk

unread,
Feb 15, 2021, 10:44:03 AM2/15/21
to CadQuery
No clue, can anyone with a mac check this?

Jeremy Wright

unread,
Feb 15, 2021, 12:10:35 PM2/15/21
to CadQuery
The latest stable release now includes packages for each OS. The CQ-editor.sh start script includes an export line at the top that should handle this environment variable for the user. It does not seem to break anything on the Catalina system I was able to test on.

WillAdams

unread,
Feb 16, 2021, 7:53:54 PM2/16/21
to CadQuery
Just to let folks know, the new version worked for me in Big Sur (once I clicked through and allowed each executable to be run).

Thanks!

William
Reply all
Reply to author
Forward
0 new messages