Unclear runtime behaviour of Python code in CQ-Editor for subsequent runs
See original GitHub issueI 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+https://github.com/bernhard-42/cadquery-massembly
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()
logging.info("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:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
CQ-editor/README.md 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\CQ-editor-script.py", 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/models.py , here's an example: ... and Django won't actually run the query until the QuerySet is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
fyi,
MAssembly
is now working perfectly in CQ-Editoryep 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 …