Open carribeiro opened 3 years ago
I get a SyntaxError on Linux, will check on Windows
File "<ipython-input-8-7f5b0da71207>", line 1
s = "C:\Users\Atual\Google Drive\"
^
SyntaxError: EOL while scanning string literal
In fact, it HAS to issue a SyntaxError because we're feeding a broken statement to the interpreter with unbalanced quotes.
The problem is in the handling of the error. If you try the same on IPython, it gives the same message (of course as it is really a syntax error), but it keeps working. In this case something breaks inside cq-editor (at least on Windows) and it stops working to the point where you need to close & reopen cq-editor.
I cannot reproduce on windows - I just get a SyntaxError without the extra stuff. Please share your env specification (conda list
).
(cq) C:\Users\Atual>conda list
# packages in environment at C:\Users\Atual\miniconda3\envs\cq:
#
# Name Version Build Channel
alabaster 0.7.12 py_0 conda-forge
appdirs 1.4.4 pyh9f0ad1d_0 conda-forge
argh 0.26.2 pyh9f0ad1d_1002 conda-forge
astroid 2.6.2 py39hcbf5309_0 conda-forge
async_generator 1.10 py_0 conda-forge
atomicwrites 1.4.0 pyh9f0ad1d_0 conda-forge
attrs 21.2.0 pyhd8ed1ab_0 conda-forge
autopep8 1.5.6 pyhd8ed1ab_0 conda-forge
babel 2.9.1 pyh44b312d_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge
bcrypt 3.2.0 py39hb82d6ee_1 conda-forge
black 21.5b2 pyhd8ed1ab_0 conda-forge
bleach 3.3.0 pyh44b312d_0 conda-forge
brotlipy 0.7.0 py39hb82d6ee_1001 conda-forge
bzip2 1.0.8 h8ffe710_4 conda-forge
ca-certificates 2021.5.30 h5b45459_0 conda-forge
cadquery master py3.9 cadquery
certifi 2021.5.30 py39hcbf5309_0 conda-forge
cffi 1.14.6 py39h0878f49_0 conda-forge
chardet 4.0.0 py39hcbf5309_1 conda-forge
click 8.0.1 py39hcbf5309_0 conda-forge
cloudpickle 1.6.0 py_0 conda-forge
colorama 0.4.4 pyh9f0ad1d_0 conda-forge
cq-editor master py3.9 cadquery
cryptography 3.4.7 py39hd8d06c1_0 conda-forge
curl 7.77.0 h789b8ee_0 conda-forge
dataclasses 0.8 pyhc8e2a94_1 conda-forge
debugpy 1.3.0 py39h415ef7b_0 conda-forge
decorator 5.0.9 pyhd8ed1ab_0 conda-forge
defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge
diff-match-patch 20200713 pyh9f0ad1d_0 conda-forge
docutils 0.17.1 py39hcbf5309_0 conda-forge
double-conversion 3.1.5 h0e60522_2 conda-forge
eigen 3.3.9 h2d74725_1 conda-forge
entrypoints 0.3 pyhd8ed1ab_1003 conda-forge
expat 2.4.1 h39d44d4_0 conda-forge
ezdxf 0.16.4 py39h2e07f2f_0 conda-forge
ffmpeg 4.3.1 ha925a31_0 conda-forge
flake8 3.8.4 py_0 conda-forge
font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge
font-ttf-inconsolata 3.000 h77eed37_0 conda-forge
font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge
font-ttf-ubuntu 0.83 hab24e00_0 conda-forge
fontconfig 2.13.1 h1989441_1005 conda-forge
fonts-conda-ecosystem 1 0 conda-forge
fonts-conda-forge 1 0 conda-forge
freeimage 3.18.0 hfcb8cd7_7 conda-forge
freetype 2.10.4 h546665d_1 conda-forge
future 0.18.2 py39hcbf5309_3 conda-forge
gl2ps 1.4.2 h0597ee9_0 conda-forge
glew 2.1.0 h39d44d4_2 conda-forge
hdf4 4.2.15 h0e5069d_3 conda-forge
hdf5 1.10.6 nompi_h5268f04_1114 conda-forge
icu 68.1 h0e60522_0 conda-forge
idna 2.10 pyh9f0ad1d_0 conda-forge
ilmbase 2.5.5 h12d4b20_0 conda-forge
imagesize 1.2.0 py_0 conda-forge
importlib-metadata 4.6.1 py39hcbf5309_0 conda-forge
importlib_metadata 4.6.1 hd8ed1ab_0 conda-forge
intel-openmp 2021.3.0 h57928b3_3372 conda-forge
intervaltree 3.0.2 py_0 conda-forge
ipykernel 6.0.1 py39h832f523_0 conda-forge
ipython 7.25.0 py39h832f523_1 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
isort 5.9.2 pyhd8ed1ab_0 conda-forge
jbig 2.1 h8d14728_2003 conda-forge
jedi 0.17.2 py39hcbf5309_1 conda-forge
jinja2 3.0.1 pyhd8ed1ab_0 conda-forge
jpeg 9d h8ffe710_0 conda-forge
jsoncpp 1.9.4 h2d74725_2 conda-forge
jsonschema 3.2.0 pyhd8ed1ab_3 conda-forge
jupyter_client 6.1.12 pyhd8ed1ab_0 conda-forge
jupyter_core 4.7.1 py39hcbf5309_0 conda-forge
jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge
jxrlib 1.1 h8ffe710_2 conda-forge
keyring 23.0.1 py39hcbf5309_0 conda-forge
krb5 1.19.1 hbae68bd_0 conda-forge
lazy-object-proxy 1.6.0 py39hb82d6ee_0 conda-forge
lcms2 2.12 h2a16943_0 conda-forge
lerc 2.2.1 h0e60522_0 conda-forge
libblas 3.9.0 8_mkl conda-forge
libcblas 3.9.0 8_mkl conda-forge
libclang 11.1.0 default_h5c34c98_1 conda-forge
libcurl 7.77.0 h789b8ee_0 conda-forge
libdeflate 1.7 h8ffe710_5 conda-forge
libiconv 1.16 he774522_0 conda-forge
liblapack 3.9.0 8_mkl conda-forge
libnetcdf 4.8.0 nompi_hf689e7d_103 conda-forge
libogg 1.3.4 h8ffe710_1 conda-forge
libpng 1.6.37 h1d00b33_2 conda-forge
libraw 0.20.2 hee1bdec_1 conda-forge
libsodium 1.0.18 h8d14728_1 conda-forge
libspatialindex 1.9.3 h39d44d4_3 conda-forge
libssh2 1.9.0 h680486a_6 conda-forge
libtheora 1.1.1 h8d14728_1005 conda-forge
libtiff 4.3.0 h0c97f57_1 conda-forge
libwebp-base 1.2.0 h8ffe710_2 conda-forge
libxml2 2.9.12 hf5bbc77_0 conda-forge
libzip 1.8.0 hfed4ece_0 conda-forge
logbook 1.5.3 py39hb82d6ee_4 conda-forge
loguru 0.5.3 py39hcbf5309_2 conda-forge
lz4-c 1.9.3 h8ffe710_0 conda-forge
markupsafe 2.0.1 py39hb82d6ee_0 conda-forge
matplotlib-inline 0.1.2 pyhd8ed1ab_2 conda-forge
mccabe 0.6.1 py_1 conda-forge
mistune 0.8.4 py39hb82d6ee_1004 conda-forge
mkl 2020.4 hb70f87d_311 conda-forge
mypy_extensions 0.4.3 py39hcbf5309_3 conda-forge
nbclient 0.5.3 pyhd8ed1ab_0 conda-forge
nbconvert 6.1.0 py39hcbf5309_0 conda-forge
nbformat 5.1.3 pyhd8ed1ab_0 conda-forge
nest-asyncio 1.5.1 pyhd8ed1ab_0 conda-forge
nlopt 2.7.0 py39hc0c4d14_0 conda-forge
nptyping 1.4.2 pyhd8ed1ab_0 conda-forge
numpy 1.21.0 py39h6635163_0 conda-forge
numpydoc 1.1.0 py_1 conda-forge
occt 7.5.1 h60997fb_2 conda-forge
ocp 7.5.1beta 1_py3.9 cadquery
openexr 2.5.5 hab3b255_0 conda-forge
openjpeg 2.4.0 hb211442_1 conda-forge
openssl 1.1.1k h8ffe710_0 conda-forge
packaging 21.0 pyhd8ed1ab_0 conda-forge
pandoc 2.14.0.3 h8ffe710_0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
paramiko 2.7.2 pyh9f0ad1d_0 conda-forge
parso 0.7.0 pyh9f0ad1d_0 conda-forge
path 16.0.0 py39hcbf5309_0 conda-forge
path.py 12.5.0 0 conda-forge
pathspec 0.8.1 pyhd3deb0d_0 conda-forge
pexpect 4.8.0 pyh9f0ad1d_2 conda-forge
pickleshare 0.7.5 py_1003 conda-forge
pip 21.1.3 py39haa95532_0
pluggy 0.13.1 py39hcbf5309_4 conda-forge
proj 7.2.0 h1cfcee9_2 conda-forge
prompt-toolkit 3.0.19 pyha770c72_0 conda-forge
psutil 5.8.0 py39hb82d6ee_1 conda-forge
ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge
pugixml 1.11.4 h0e60522_0 conda-forge
pycodestyle 2.6.0 pyh9f0ad1d_0 conda-forge
pycparser 2.20 pyh9f0ad1d_2 conda-forge
pydocstyle 6.1.1 pyhd8ed1ab_0 conda-forge
pyflakes 2.2.0 pyh9f0ad1d_0 conda-forge
pygments 2.9.0 pyhd8ed1ab_0 conda-forge
pylint 2.9.3 pyhd8ed1ab_0 conda-forge
pyls-black 0.4.6 pyh9f0ad1d_0 conda-forge
pyls-spyder 0.3.2 pyhd8ed1ab_0 conda-forge
pynacl 1.4.0 py39hb3671d1_2 conda-forge
pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge
pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge
pyqt 5.12.3 py39hcbf5309_7 conda-forge
pyqt-impl 5.12.3 py39h415ef7b_7 conda-forge
pyqt5-sip 4.19.18 py39h415ef7b_7 conda-forge
pyqtchart 5.12 py39h415ef7b_7 conda-forge
pyqtgraph 0.12.2 pyhd8ed1ab_0 conda-forge
pyqtwebengine 5.12.1 py39h415ef7b_7 conda-forge
pyrsistent 0.17.3 py39hb82d6ee_2 conda-forge
pysocks 1.7.1 py39hcbf5309_3 conda-forge
python 3.9.1 h6244533_2
python-dateutil 2.8.1 py_0 conda-forge
python-jsonrpc-server 0.4.0 pyh9f0ad1d_0 conda-forge
python-language-server 0.36.2 pyhd8ed1ab_0 conda-forge
python_abi 3.9 2_cp39 conda-forge
pytz 2021.1 pyhd8ed1ab_0 conda-forge
pywin32 300 py39hb82d6ee_0 conda-forge
pywin32-ctypes 0.2.0 py39hcbf5309_1003 conda-forge
pyyaml 5.4.1 py39hb82d6ee_0 conda-forge
pyzmq 22.1.0 py39he46f08e_0 conda-forge
qdarkstyle 3.0.2 pyhd8ed1ab_0 conda-forge
qt 5.12.9 h5909a2a_4 conda-forge
qtawesome 1.0.3 pyhd8ed1ab_0 conda-forge
qtconsole 5.1.1 pyhd8ed1ab_0 conda-forge
qtpy 1.9.0 py_0 conda-forge
rapidjson 1.1.0 ha925a31_1002 conda-forge
regex 2021.7.6 py39hb82d6ee_0 conda-forge
requests 2.25.1 pyhd3deb0d_0 conda-forge
rope 0.19.0 pyhd8ed1ab_0 conda-forge
rtree 0.9.7 py39h09fdee3_1 conda-forge
setuptools 52.0.0 py39haa95532_0
six 1.16.0 pyh6c4a22f_0 conda-forge
snowballstemmer 2.1.0 pyhd8ed1ab_0 conda-forge
sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge
sphinx 4.0.3 pyh6c4a22f_0 conda-forge
sphinxcontrib-applehelp 1.0.2 py_0 conda-forge
sphinxcontrib-devhelp 1.0.2 py_0 conda-forge
sphinxcontrib-htmlhelp 2.0.0 pyhd8ed1ab_0 conda-forge
sphinxcontrib-jsmath 1.0.1 py_0 conda-forge
sphinxcontrib-qthelp 1.0.3 py_0 conda-forge
sphinxcontrib-serializinghtml 1.1.5 pyhd8ed1ab_0 conda-forge
spyder 4.2.1 py39hcbf5309_3 conda-forge
spyder-kernels 1.10.2 py39hcbf5309_0 conda-forge
sqlite 3.36.0 h2bbff1b_0
tbb 2020.2 h2d74725_4 conda-forge
tbb-devel 2020.2 h2d74725_4 conda-forge
testpath 0.5.0 pyhd8ed1ab_0 conda-forge
textdistance 4.2.1 pyhd8ed1ab_0 conda-forge
three-merge 0.1.1 pyh9f0ad1d_0 conda-forge
tk 8.6.10 h8ffe710_1 conda-forge
toml 0.10.2 pyhd8ed1ab_0 conda-forge
tornado 6.1 py39hb82d6ee_1 conda-forge
traitlets 5.0.5 py_0 conda-forge
typed-ast 1.4.3 py39hb82d6ee_0 conda-forge
typing_extensions 3.10.0.0 pyha770c72_0 conda-forge
typish 1.9.2 pyhd8ed1ab_0 conda-forge
tzdata 2021a h52ac0ba_0
ujson 4.0.2 py39h415ef7b_0 conda-forge
urllib3 1.26.6 pyhd8ed1ab_0 conda-forge
utfcpp 3.2.1 h57928b3_0 conda-forge
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
vtk 9.0.1 no_osmesa_py39h47d625f_109 conda-forge
watchdog 2.1.3 py39hcbf5309_0 conda-forge
wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.36.2 pyhd3eb1b0_0
win32_setctime 1.0.3 py_0 conda-forge
win_inet_pton 1.1.0 py39hcbf5309_2 conda-forge
wincertstore 0.2 py39h2bbff1b_0
wrapt 1.12.1 py39hb82d6ee_3 conda-forge
xz 5.2.5 h62dcd97_1 conda-forge
yaml 0.2.5 he774522_0 conda-forge
yapf 0.31.0 pyhd8ed1ab_0 conda-forge
zeromq 4.3.4 h0e60522_0 conda-forge
zipp 3.5.0 pyhd8ed1ab_0 conda-forge
zlib 1.2.11 h62dcd97_1010 conda-forge
zstd 1.5.0 h6255e5f_0 conda-forge
Just an additional remark: I installed cq-editor twice on this PC and got the same error both times. I deleted the entire env and reinstalled later, to the same result.
After updating, now it works the same as for you. I was getting this problem for something like two weeks (since I've triggered it by mistake the first time). It was probably fixed somewhere upstream.
It's probably solved by now.
Too soon: 1 +& 2
still triggers the error ( a bit different this time).
[2021-07-12 22:45:42.864755] ERROR: tornado.general: Uncaught exception in ZMQStream callback
Traceback (most recent call last):
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 434, in _run_callback
callback(*args, **kwargs)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 126, in _handle_event
event_f()
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 223, in <lambda>
self.schedule(lambda : self._really_send(*args, **kwargs))
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 231, in _really_send
self.socket.send_multipart(msg, *args, **kwargs)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\inprocess\socket.py", line 37, in send_multipart
self.message_sent += 1
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 604, in __set__
self.set(obj, value)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 593, in set
obj._notify_trait(self.name, old_value, new_value)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1217, in _notify_trait
self.notify_change(Bunch(
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1227, in notify_change
return self._notify_observers(change)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1264, in _notify_observers
c(event)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 134, in _io_dispatch
ident, msg = self.session.recv(self.iopub_socket, copy=False)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\jupyter_client\session.py", line 809, in recv
msg_list = socket.recv_multipart(mode, copy=copy)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 255, in __getattr__
warnings.warn("Accessing zmq Socket attribute %s on BackgroundSocket" % attr,
DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket
[2021-07-12 22:45:43.704287] ERROR: tornado.general: Uncaught exception in zmqstream callback
Traceback (most recent call last):
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 451, in _handle_events
self._handle_recv()
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 434, in _run_callback
callback(*args, **kwargs)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 126, in _handle_event
event_f()
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 223, in <lambda>
self.schedule(lambda : self._really_send(*args, **kwargs))
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 231, in _really_send
self.socket.send_multipart(msg, *args, **kwargs)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\inprocess\socket.py", line 37, in send_multipart
self.message_sent += 1
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 604, in __set__
self.set(obj, value)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 593, in set
obj._notify_trait(self.name, old_value, new_value)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1217, in _notify_trait
self.notify_change(Bunch(
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1227, in notify_change
return self._notify_observers(change)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1264, in _notify_observers
c(event)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 134, in _io_dispatch
ident, msg = self.session.recv(self.iopub_socket, copy=False)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\jupyter_client\session.py", line 809, in recv
msg_list = socket.recv_multipart(mode, copy=copy)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 255, in __getattr__
warnings.warn("Accessing zmq Socket attribute %s on BackgroundSocket" % attr,
DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket
[2021-07-12 22:45:43.903955] ERROR: asyncio: Exception in callback AddThreadSelectorEventLoop._handle_select([1184], [])
handle: <Handle AddThreadSelectorEventLoop._handle_select([1184], [])>
Traceback (most recent call last):
File "C:\Users\Atual\miniconda3\envs\cq\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\tornado\platform\asyncio.py", line 579, in _handle_select
self._handle_event(r, self._readers)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\tornado\platform\asyncio.py", line 591, in _handle_event
callback()
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\tornado\platform\asyncio.py", line 189, in _handle_events
handler_func(fileobj, events)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 451, in _handle_events
self._handle_recv()
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 480, in _handle_recv
self._run_callback(callback, msg)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\zmq\eventloop\zmqstream.py", line 434, in _run_callback
callback(*args, **kwargs)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 126, in _handle_event
event_f()
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 223, in <lambda>
self.schedule(lambda : self._really_send(*args, **kwargs))
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 231, in _really_send
self.socket.send_multipart(msg, *args, **kwargs)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\inprocess\socket.py", line 37, in send_multipart
self.message_sent += 1
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 604, in __set__
self.set(obj, value)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 593, in set
obj._notify_trait(self.name, old_value, new_value)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1217, in _notify_trait
self.notify_change(Bunch(
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1227, in notify_change
return self._notify_observers(change)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\traitlets\traitlets.py", line 1264, in _notify_observers
c(event)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 134, in _io_dispatch
ident, msg = self.session.recv(self.iopub_socket, copy=False)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\jupyter_client\session.py", line 809, in recv
msg_list = socket.recv_multipart(mode, copy=copy)
File "C:\Users\Atual\miniconda3\envs\cq\lib\site-packages\ipykernel\iostream.py", line 255, in __getattr__
warnings.warn("Accessing zmq Socket attribute %s on BackgroundSocket" % attr,
DeprecationWarning: Accessing zmq Socket attribute recv_multipart on BackgroundSocket
[2021-07-12 22:46:04.374316] INFO: ipykernel.inprocess.ipkernel: Exception in execute request:
[1;36m File [1;32m"C:\Users\Atual\AppData\Local\Temp/ipykernel_5476/2953139260.py"[1;36m, line [1;32m1[0m
[1;33m 1 +& 2[0m
[1;37m ^[0m
[1;31mSyntaxError[0m[1;31m:[0m invalid syntax
I cannot reproduce on windows - I just get a SyntaxError without the extra stuff. Please share your env specification (
conda list
).
Try with this: 1 +& 2.
It still gives me the same problem.
I cannot reproduce this on my win PC.
UPDATE
I got this bug after copying a path name on the console without doubling the slashes. Now I did another test and any SyntaxError causes the same problem. For example, simply typing
1 +& 2
breaks the console and requires a restart.Original report
When a string with a broken escape sequence is input into console, cq-editor freezes for a moment (about 15 seconds in my PC). After some time it unfreezes and shows a log in the log viewer. However the console becomes unusable after that until I restart cq-editor. Lines are not interpreted anymore..
Sequence on the console (steps to reproduce)
Log Viewer output
Conda terminal window output
On the conda terminal window, the following sequence of errors is registered:
Version info
Version: 0.3.0dev Windows 10 Installed using Conda and Python 3.9.1