Greetings To CadQuery Mailing List,
I have encountered what seems to me to be an inconsistency in CQ-editor operation:
(1) When CQ-editor Renders my python CQ app script, the script executes deep into the script, stopping when CQ-editor correctly reports an IndexError: list index out of range. This is well past execution of earlier from bwy_CONSTANTS_A_um import ... statements.
(2) When I use CQ-editor Debug to single-step into the same python CQ app script, the Debug process halts much earlier at the first:
from bwy_CONSTANTS_A_um import ... statement with an error:
"ModuleNotFoundError: No module named 'bwy_CONSTANTS_A_um'".
And shows detail as: <cq_editor_string> 10 from bwy_CONSTANTS_A_um import ...
* * *
* * *
The different behaviours of CQ-editor Render and CQ-editor Debug, seem inconsistent to me.
Both the main python CQ app script: bwy_TrackSlab.py and the subordinate CQ app script bwy_CONSTANTS_A_um.py are located in the same folder.
* * *
* * *
I attach the following four (4) files:
(1) main python CQ app script: bwy_TrackSlab.py
(2) subordinate CQ app script: bwy_CONSTANTS_A_um.py
(3) screenshot of CQ-editor window with IndexError: list index out of range:
Screenshot from 2026-01-08 17-38-46.png
(4) screenshot of CQ-editor window with ModuleNotFoundError: No module named 'bwy_CONSTANTS_A_um:
Screenshot from 2026-01-08 17-40-37.png
* * *
* * *
Meanwhile I continue testing the python CQ app scripts, using log( ... ) statements.
Steve Petrie
Etobicoke (Toronto), Ontario, Canada
An addendum to my previous email:
Using CQ-editor version 0.6.dev0
Steve Petrie
Eobicoke (Toronto), Ontario, Canada
Please pause my most recent report [cadquery] CQ-editor: Inconsistent Operation: Render VS Debug;
It seems that I need to learn how to use python's __init__.py file to enable python import statements to work correctly.
Steve Petrie
Etobicoke (Toronto), Ontasio, Canada