Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear runtime behaviour of Python code in CQ-Editor for subsequent runs

See original GitHub issue

I have just installed CQ-Editor master via

conda create -n cqgui -c cadquery -c conda-forge cq-editor=master python=3.7
conda activate cqgui

and added MAssembly on top:

pip install git+

You might remember, MAssembly is a subclass of cq.assembly.Assembly, see here

I now run a little test program more than once:

import cadquery as cq
from cadquery_massembly import MAssembly
import logging
import time

a = MAssembly()"At %s, result %s", int(time.time()),  isinstance(a, cq.Assembly))

Pressing the green “Run” button three times I get:


So from the Log Viewer, the first time CQ-Editor recognises a as being an object of class cq.Assembly. For all subsequent runs not.

What am I doing wrong here?

Btw., this prevents from using MAssembly in CQ-Editor now, since cq.assembly.Assembly.add() will now run into an infinite python recursion.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

bernhard-42commented, Mar 7, 2021

fyi, MAssembly is now working perfectly in CQ-Editor


bernhard-42commented, Mar 7, 2021

yep indeed, it works now. Thanks! Maybe it would be an idea to have the default for this preference changed? Because it is a little bit unexpected …

Read more comments on GitHub >

github_iconTop Results From Across the Web

CQ-editor/ at master · CadQuery/CQ-editor - GitHub
Debug (Ctrl + F5) - Instead of running the script completely through as with the Render item, it begins executing the script but...
Read more >
installation error (cq-editor, Win10) - Google Groups
When I try to run from the anaconda shell, I get the following error trace ... File "C:\Users\Me\miniconda3\Scripts\", line 6, in <module>.
Read more >
invenio - PyPI
Invenio is a free software suite enabling you to run your own digital library or document repository on the web. The technology offered...
Read more >
django cms Documentation - Read the Docs
This document refers to version 3.11.0. 4.1 Django/Python compatibility table. LTS in the table indicates a combination of Django and django CMS both...
Read more >
Making queries | Django documentation
Assuming models live in a file mysite/blog/ , here's an example: ... and Django won't actually run the query until the QuerySet is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found