CQ-editor: (1) print(..., flush=True) NO OUTPUT, (2) makeThreePointArc(...) invalid decimal literal;

3 views
Skip to first unread message

Steve Petrie

unread,
Dec 31, 2025, 9:08:20 PM (2 days ago) 12/31/25
to CadQuery - Mailing List, Steve Petrie

Greeting To CadQuery Mailing List,

While running a python CQ script using CQ-editor Render:

(1) output from python print(..., flush=True) statements appears neither in the CQ-editor Log viewer window nor in the command shell window, and

(2) a makeThreePointArc(...) method call produces an inexplicable invalid deimal literal error.

* * *
* * *

See attachment bwy_ 3.1 test makeTangentArc.py

This python script bwy_ 3.1 test makeTangentArc.py is a small one I am using to analyze use of two CQ arc creation methods:

cq.Edge.makeThreePointArc(v1, v2, v2)

cq.Edge.makeTangentArc(v1, v2, v3)

My purpose here is to use these two arc forms in combination with:

cq.Edge.makeLine(v1, v2)

to ultimately generate a 3D CQ solid for a shaped concrete slab. being the actual track on which bicycle wheels will roll along, while traveling on an Elevated Bicycle Expressway (bikeway).

I have already used CQ-editor to complete the design of the structure that will support the track slab above a motor roadway.

See attachment bwy_BikewayLoXEndSection.png a screenshot of a CQ-editor window with this bikeway supporting structure Rendered.

* * *
* * *

I have already tried using an export PYTHONUNBUFFERED=True in the command shell, before starting CQ-editor with run.,sh

I attach screenshots of both the CQ-editor window and the command shell window, after CQ-editor has loaded and started to Render the script  3.1 test makeTangentArc.py

CQ-editor window: Screenshot from 2025-12-31 20-36-32.png

command shell window: Screenshot from 2025-12-31 20-40-07.png

CQ-editor has terminated script execution, on an error later in the script, after print(..., flush=True) statements have executed. But no print output appears in either the CQ-editor Log viewer window or the command shell window.

* * *
* * *

The error SyntxError: invalid decimal literal (<cq_editor string>, line 17)  reported by CQ-editor also puzzles me, because I can see no reason why the vectors: v1_3pa, v2_3pa,-or v2_3pa should be problematic.

* * *
* * *

Running CQ-editor 0.6.dev0 on a PC with Debian GNU/Linux 12 (bookworm) with Gnome desktop on linux kernel 6.1.0-29-amd64

I chose this CQ-editor version because I prefer to avoid the complexities of conda or pip

Steve Petrie

Etobicoke (Toronto), Ontario, Canada

ape...@asptrie.net

bwy_BikewayLoXEndSection.png
Screenshot from 2025-12-31 20-36-32.png
Screenshot from 2025-12-31 20-40-07.png
bwy_ 3.1 test makeTangentArc.py

Adam Urbanczyk

unread,
Jan 1, 2026, 3:05:22 PM (yesterday) Jan 1
to CadQuery
This has nothing to do with CQ or CQ-editor. 3parc is not a valid python variable name, cf. SyntaxError. Your file is simply malformed.
Reply all
Reply to author
Forward
0 new messages