mu-editor / mu

A small, simple editor for beginner Python programmers. Written in Python and Qt5.
http://codewith.mu
GNU General Public License v3.0
1.41k stars 435 forks source link

Can't flash Microbitv2 on BigSur with latest MU-editor #1416

Open marc0janssen opened 3 years ago

marc0janssen commented 3 years ago

I can't seem to flash a microbit V2 with MU-editor.

from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)
2021-03-28 14:05:21,715 - root:259(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.2
2021-03-28 14:05:21,715 - root:260(run) INFO: uname_result(system='Darwin', node='MacBook-Pro-van-Marco.local', release='20.3.0', version='Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2021-03-28 14:05:21,715 - root:261(run) INFO: Python path: ['/', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/setuptools-49.6.0-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/pip-20.2.2-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/IPython/extensions']
2021-03-28 14:05:21,715 - root:262(run) INFO: Language code: nl_NL
2021-03-28 14:05:21,715 - mu.settings:220(load) WARNING: No settings file found at /Users/marco/Library/Application Support/mu/settings.json; skipping
2021-03-28 14:05:21,715 - mu.settings:220(load) WARNING: No settings file found at /Users/marco/Library/Application Support/mu/session.json; skipping
2021-03-28 14:05:22,020 - mu.virtual_environment:434(ensure_and_create) INFO: Added log handler.
2021-03-28 14:05:22,161 - mu.virtual_environment:438(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-03-28 14:05:22,166 - mu.virtual_environment:479(ensure_path) ERROR: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140521 does not exist.
2021-03-28 14:05:22,166 - mu.virtual_environment:443(ensure_and_create) DEBUG: Virtual environment not present or correct.
2021-03-28 14:05:22,173 - mu.virtual_environment:445(ensure_and_create) DEBUG: Creating new virtual environment at /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522.
2021-03-28 14:05:22,176 - mu.virtual_environment:377(relocate) DEBUG: Virtual environment set up mu_venv-38-20210328-140522 at /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:05:22,176 - mu.virtual_environment:578(create) INFO: Creating virtualenv: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:05:22,176 - mu.virtual_environment:579(create) INFO: Virtualenv name: mu_venv-38-20210328-140522
2021-03-28 14:05:22,954 - mu.virtual_environment:631(install_baseline_packages) INFO: Installing baseline packages.
2021-03-28 14:05:22,959 - mu.virtual_environment:632(install_baseline_packages) INFO: /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels exists
2021-03-28 14:05:22,966 - mu.virtual_environment:229(install) DEBUG: About to pip install: ['/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/esptool-3.0-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Jinja2-2.11.3-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipython-7.21.0-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ecdsa-0.16.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/QtPy-1.9.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pyzmq-22.0.3-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jedi-0.18.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/parso-0.8.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pickleshare-0.7.5-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/traitlets-5.0.5-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ptyprocess-0.7.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pygame-2.0.1-cp38-cp38-macosx_10_9_intel.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Flask-1.1.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pycparser-2.20-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/bitstring-3.1.7-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/setuptools-54.1.1-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pexpect-4.8.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jupyter_core-4.7.1-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/cffi-1.14.5-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pgzero-1.2-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jupyter_client-6.1.11-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Werkzeug-1.0.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/prompt_toolkit-3.0.17-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pyserial-3.5-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/backcall-0.2.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/numpy-1.20.1-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/python_dateutil-2.8.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/click-7.1.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/tornado-6.1-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/qtconsole-4.7.4-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/itsdangerous-1.1.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipykernel-5.5.0-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/reedsolo-1.5.4-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/cryptography-3.4.6-cp36-abi3-macosx_10_10_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Pygments-2.8.1-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/appnope-0.1.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/six-1.15.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/wcwidth-0.2.5-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/decorator-4.4.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipython_genutils-0.2.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/nudatus-0.0.5-py3-none-any.whl']
2021-03-28 14:05:22,979 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['install', '--disable-pip-version-check', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/esptool-3.0-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Jinja2-2.11.3-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipython-7.21.0-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ecdsa-0.16.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/QtPy-1.9.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pyzmq-22.0.3-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jedi-0.18.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/parso-0.8.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pickleshare-0.7.5-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/traitlets-5.0.5-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ptyprocess-0.7.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pygame-2.0.1-cp38-cp38-macosx_10_9_intel.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Flask-1.1.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pycparser-2.20-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/bitstring-3.1.7-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/setuptools-54.1.1-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pexpect-4.8.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jupyter_core-4.7.1-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/cffi-1.14.5-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pgzero-1.2-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jupyter_client-6.1.11-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Werkzeug-1.0.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/prompt_toolkit-3.0.17-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pyserial-3.5-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/backcall-0.2.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/numpy-1.20.1-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/python_dateutil-2.8.1-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/click-7.1.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/tornado-6.1-cp38-cp38-macosx_10_9_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/qtconsole-4.7.4-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/itsdangerous-1.1.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipykernel-5.5.0-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/reedsolo-1.5.4-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/cryptography-3.4.6-cp36-abi3-macosx_10_10_x86_64.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Pygments-2.8.1-py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/appnope-0.1.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/six-1.15.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/wcwidth-0.2.5-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/decorator-4.4.2-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipython_genutils-0.2.0-py2.py3-none-any.whl', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/nudatus-0.0.5-py3-none-any.whl'], 180.0
2021-03-28 14:05:34,429 - mu.virtual_environment:656(install_baseline_packages) DEBUG: Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/esptool-3.0-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Jinja2-2.11.3-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipython-7.21.0-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ecdsa-0.16.1-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/QtPy-1.9.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pyzmq-22.0.3-cp38-cp38-macosx_10_9_x86_64.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jedi-0.18.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/parso-0.8.1-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pickleshare-0.7.5-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/traitlets-5.0.5-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ptyprocess-0.7.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pygame-2.0.1-cp38-cp38-macosx_10_9_intel.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Flask-1.1.2-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pycparser-2.20-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/bitstring-3.1.7-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/setuptools-54.1.1-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pexpect-4.8.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jupyter_core-4.7.1-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/cffi-1.14.5-cp38-cp38-macosx_10_9_x86_64.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pgzero-1.2-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/jupyter_client-6.1.11-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Werkzeug-1.0.1-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/prompt_toolkit-3.0.17-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/pyserial-3.5-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/backcall-0.2.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/numpy-1.20.1-cp38-cp38-macosx_10_9_x86_64.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/python_dateutil-2.8.1-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/click-7.1.2-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/tornado-6.1-cp38-cp38-macosx_10_9_x86_64.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/qtconsole-4.7.4-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/itsdangerous-1.1.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipykernel-5.5.0-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/reedsolo-1.5.4-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/cryptography-3.4.6-cp36-abi3-macosx_10_10_x86_64.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/Pygments-2.8.1-py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/appnope-0.1.2-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/six-1.15.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/wcwidth-0.2.5-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/decorator-4.4.2-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/ipython_genutils-0.2.0-py2.py3-none-any.whl
Processing /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/wheels/nudatus-0.0.5-py3-none-any.whl
Installing collected packages: ipython-genutils, wcwidth, traitlets, six, ptyprocess, parso, tornado, setuptools, pyzmq, python-dateutil, Pygments, pycparser, prompt-toolkit, pickleshare, pexpect, jupyter-core, jedi, decorator, backcall, appnope, MarkupSafe, jupyter-client, ipython, cffi, Werkzeug, reedsolo, QtPy, pyserial, pygame, numpy, Jinja2, itsdangerous, ipykernel, ecdsa, cryptography, click, bitstring, qtconsole, pgzero, nudatus, Flask, esptool
  Attempting uninstall: setuptools
    Found existing installation: setuptools 52.0.0
    Uninstalling setuptools-52.0.0:
      Successfully uninstalled setuptools-52.0.0
Successfully installed Flask-1.1.2 Jinja2-2.11.3 MarkupSafe-1.1.1 Pygments-2.8.1 QtPy-1.9.0 Werkzeug-1.0.1 appnope-0.1.2 backcall-0.2.0 bitstring-3.1.7 cffi-1.14.5 click-7.1.2 cryptography-3.4.6 decorator-4.4.2 ecdsa-0.16.1 esptool-3.0 ipykernel-5.5.0 ipython-7.21.0 ipython-genutils-0.2.0 itsdangerous-1.1.0 jedi-0.18.0 jupyter-client-6.1.11 jupyter-core-4.7.1 nudatus-0.0.5 numpy-1.20.1 parso-0.8.1 pexpect-4.8.0 pgzero-1.2 pickleshare-0.7.5 prompt-toolkit-3.0.17 ptyprocess-0.7.0 pycparser-2.20 pygame-2.0.1 pyserial-3.5 python-dateutil-2.8.1 pyzmq-22.0.3 qtconsole-4.7.4 reedsolo-1.5.4 setuptools-54.1.1 six-1.15.0 tornado-6.1 traitlets-5.0.5 wcwidth-0.2.5

2021-03-28 14:05:34,651 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['list', '--disable-pip-version-check'], 30.0
2021-03-28 14:05:35,104 - mu.virtual_environment:606(install_jupyter_kernel) INFO: Installing Jupyter Kernel: "Python/Mu (mu_venv-38-20210328-140522)"
2021-03-28 14:05:37,991 - mu.virtual_environment:438(ensure_and_create) DEBUG: Checking virtual environment; attempt #2.
2021-03-28 14:05:37,995 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:05:37,999 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/python
2021-03-28 14:05:38,038 - mu.virtual_environment:534(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-03-28 14:05:38,042 - mu.virtual_environment:566(ensure_pip) INFO: Pip found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip
2021-03-28 14:05:38,045 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pygame
2021-03-28 14:05:43,537 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: numpy
2021-03-28 14:05:52,178 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-03-28 14:05:52,219 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: flask
2021-03-28 14:05:52,637 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: serial
2021-03-28 14:05:52,685 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-03-28 14:05:52,724 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-03-28 14:05:52,775 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-03-28 14:05:52,838 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-03-28 14:05:54,000 - mu.logic:758(__init__) INFO: Setting up editor.
2021-03-28 14:05:54,001 - mu.logic:778(__init__) INFO: Log directory: /Users/marco/Library/Logs/mu
2021-03-28 14:05:54,001 - mu.logic:779(__init__) INFO: Data directory: /Users/marco/Library/Application Support/mu
2021-03-28 14:05:54,001 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-03-28 14:05:54,001 - mu.modes.base:68(get_default_workspace) WARNING: Workspace /Users/marco/mu_code in the settings file is not a valid directory; using default /Users/marco/mu_code
2021-03-28 14:05:54,001 - mu.logic:797(setup) DEBUG: Creating directory: /Users/marco/mu_code
2021-03-28 14:05:54,001 - mu.logic:805(setup) DEBUG: Creating directory: /Users/marco/mu_code/images
2021-03-28 14:05:54,009 - mu.logic:812(setup) DEBUG: Creating directory: /Users/marco/mu_code/fonts
2021-03-28 14:05:54,009 - mu.logic:815(setup) DEBUG: Creating directory: /Users/marco/mu_code/sounds
2021-03-28 14:05:54,016 - mu.logic:822(setup) DEBUG: Creating directory: /Users/marco/mu_code/music
2021-03-28 14:05:54,017 - mu.logic:828(setup) DEBUG: Creating directory: /Users/marco/mu_code/templates
2021-03-28 14:05:54,020 - mu.logic:831(setup) DEBUG: Creating directory: /Users/marco/mu_code/static
2021-03-28 14:05:54,098 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:05:54,099 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:05:54,099 - mu.logic:867(restore_session) DEBUG: <SessionSettings from /Users/marco/Library/Application Support/mu/session.json>
2021-03-28 14:05:54,107 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico']
2021-03-28 14:06:32,431 - mu.logic:1477(select_mode) INFO: New mode selected: microbit
2021-03-28 14:06:32,449 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:06:32,449 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:06:32,471 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:06:32,471 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:06:32,571 - mu.logic:943(restore_session) INFO: Starting with blank file.
2021-03-28 14:06:47,422 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:06:47,423 - mu.modes.microbit:280(flash) DEBUG: Python script from 'untitled' tab:
2021-03-28 14:06:47,423 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\n'
2021-03-28 14:06:47,440 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: None
2021-03-28 14:06:51,793 - mu.interface.main:439(get_microbit_path) DEBUG: Getting micro:bit path: 
2021-03-28 14:06:51,793 - mu.modes.microbit:299(flash) DEBUG: User defined path to micro:bit: 
2021-03-28 14:06:51,866 - mu.interface.main:942(show_message) DEBUG: Could not find an attached BBC micro:bit.
2021-03-28 14:06:51,866 - mu.interface.main:943(show_message) DEBUG: Please ensure you leave enough time for the BBC micro:bit to be attached and configured correctly by your computer. This may take several seconds. Alternatively, try removing and re-attaching the device or saving your work and restarting Mu if the device remains unfound.
2021-03-28 14:07:58,369 - mu.logic:955(toggle_theme) INFO: Toggle theme to: night
2021-03-28 14:07:59,455 - mu.logic:955(toggle_theme) INFO: Toggle theme to: contrast
2021-03-28 14:08:00,528 - mu.logic:955(toggle_theme) INFO: Toggle theme to: day
2021-03-28 14:08:03,324 - mu.logic:1304(check_code) INFO: Checking code.
2021-03-28 14:08:05,153 - mu.logic:1304(check_code) INFO: Checking code.
2021-03-28 14:08:10,950 - mu.logic:1304(check_code) INFO: Checking code.
2021-03-28 14:08:10,953 - mu.logic:1310(check_code) INFO: {9: [{'line_no': 9, 'column': 14, 'message': "undefined name 'boatq'"}]}
2021-03-28 14:08:21,712 - blib2to3.pgen2.driver:195(load_grammar) INFO: Generating grammar tables from /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/blib2to3/Grammar.txt
2021-03-28 14:08:21,737 - blib2to3.pgen2.driver:198(load_grammar) INFO: Writing grammar tables to /Users/marco/Library/Caches/black/20.8b1/Grammar3.8.5.final.0.pickle
2021-03-28 14:08:21,737 - blib2to3.pgen2.driver:202(load_grammar) INFO: Writing failed: [Errno 2] No such file or directory: '/Users/marco/Library/Caches/black/20.8b1/tmpzn802o2x'
2021-03-28 14:08:21,738 - blib2to3.pgen2.driver:195(load_grammar) INFO: Generating grammar tables from /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/blib2to3/PatternGrammar.txt
2021-03-28 14:08:21,739 - blib2to3.pgen2.driver:198(load_grammar) INFO: Writing grammar tables to /Users/marco/Library/Caches/black/20.8b1/PatternGrammar3.8.5.final.0.pickle
2021-03-28 14:08:21,739 - blib2to3.pgen2.driver:202(load_grammar) INFO: Writing failed: [Errno 2] No such file or directory: '/Users/marco/Library/Caches/black/20.8b1/tmpy407cgeb'
2021-03-28 14:08:21,745 - mu.logic:1785(tidy_code) INFO: Tidy code.
2021-03-28 14:08:21,745 - mu.logic:1786(tidy_code) INFO: # Write your code here :-)
from microbit import *

boat = Image("05050:"
             "05050:"
             "05050:"
             "99999:"
             "09990")

display.show(boat)
2021-03-28 14:08:21,745 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'from' (prefix='# Write your code here :-)\n')
2021-03-28 14:08:21,745 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'microbit' (prefix=' ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'import' (prefix=' ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STAR '*' (prefix=' ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'boat' (prefix='\n')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: EQUAL '=' (prefix=' ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'Image' (prefix=' ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: LPAR '(' (prefix='')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='\n             ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='\n             ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"99999:"' (prefix='\n             ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"09990"' (prefix='\n             ')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: RPAR ')' (prefix='')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'display' (prefix='\n')
2021-03-28 14:08:21,746 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: DOT '.' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'show' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: LPAR '(' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'boat' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: RPAR ')' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: ENDMARKER '' (prefix='')
2021-03-28 14:08:21,747 - blib2to3.pgen2.driver:105(parse_tokens) DEBUG: Stop.
2021-03-28 14:08:40,207 - mu.logic:737(check_usb) INFO: microbit device connected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer: 'ARM')
2021-03-28 14:08:44,739 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:08:44,739 - mu.modes.microbit:280(flash) DEBUG: Python script from 'untitled' tab:
2021-03-28 14:08:44,739 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:08:44,750 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:08:44,750 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:08:44,750 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:08:44,750 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:08:44,750 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:08:45,890 - mu.modes.microbit:376(flash) WARNING: Could not detect version of MicroPython.
2021-03-28 14:08:45,930 - mu.modes.microbit:423(flash_and_send) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:08:45,955 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:08:45,956 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:08:45,957 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:08:45,957 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:08:45,997 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:08:45,997 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:08:45,997 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:08:47,035 - mu.modes.microbit:497(flash_failed) ERROR: Could not enter raw REPL.
2021-03-28 14:08:47,037 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:08:47,037 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:08:55,502 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:08:55,502 - mu.modes.microbit:280(flash) DEBUG: Python script from 'untitled' tab:
2021-03-28 14:08:55,502 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:08:55,512 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:08:55,513 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:08:55,513 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:08:55,513 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:08:55,513 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:08:56,661 - mu.modes.microbit:376(flash) WARNING: Could not detect version of MicroPython.
2021-03-28 14:08:56,701 - mu.modes.microbit:423(flash_and_send) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:08:56,703 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:08:56,706 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:08:56,707 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:08:56,707 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:08:56,753 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:08:56,753 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:08:56,753 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:08:57,803 - mu.modes.microbit:497(flash_failed) ERROR: Could not enter raw REPL.
2021-03-28 14:08:57,806 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:08:57,806 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:09:14,752 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:09:14,759 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:09:14,773 - mu.modes.base:553(add_plotter) INFO: Started plotter
2021-03-28 14:09:14,773 - mu.modes.base:536(toggle_plotter) INFO: Toggle plotter on.
2021-03-28 14:09:17,068 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:09:17,108 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:09:17,109 - mu.modes.base:311(remove_plotter) DEBUG: Creating directory: /Users/marco/mu_code/data_capture
2021-03-28 14:09:17,112 - mu.modes.base:318(remove_plotter) INFO: Removing plotter
2021-03-28 14:09:17,113 - mu.modes.base:533(toggle_plotter) INFO: Toggle plotter off.
2021-03-28 14:09:19,915 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:09:19,926 - mu.modes.microbit:570(toggle_files) INFO: Toggle filesystem on.
2021-03-28 14:09:21,969 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/modes/base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/contrib/microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/contrib/microfs.py", line 139, in execute
    raw_on(serial)
  File "/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/contrib/microfs.py", line 91, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/mu/contrib/microfs.py", line 72, in flush_to_msg
    raise IOError("Could not enter raw REPL.")
OSError: Could not enter raw REPL.
2021-03-28 14:09:21,976 - mu.interface.main:942(show_message) DEBUG: There was a problem getting the list of files on the device. Please check Mu's logs for technical information. Alternatively, try unplugging/plugging-in your device and/or restarting Mu.
2021-03-28 14:09:21,976 - mu.interface.main:943(show_message) DEBUG: None
2021-03-28 14:09:40,682 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:09:40,683 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: /Users/marco/mu_code
2021-03-28 14:09:44,184 - mu.interface.main:423(get_save_path) DEBUG: Getting save path: 
2021-03-28 14:09:47,125 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico']
2021-03-28 14:09:55,598 - mu.modes.microbit:574(toggle_files) INFO: Toggle filesystem off.
2021-03-28 14:10:27,716 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:10:27,717 - mu.modes.microbit:280(flash) DEBUG: Python script from 'untitled' tab:
2021-03-28 14:10:27,717 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:10:27,727 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:10:27,727 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:10:27,728 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:10:27,728 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:10:27,728 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:10:28,875 - mu.modes.microbit:376(flash) WARNING: Could not detect version of MicroPython.
2021-03-28 14:10:28,917 - mu.modes.microbit:423(flash_and_send) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:10:28,921 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:10:28,927 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:10:28,945 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:10:28,945 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:10:29,006 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:10:29,006 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:10:29,006 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:10:30,046 - mu.modes.microbit:497(flash_failed) ERROR: Could not enter raw REPL.
2021-03-28 14:10:30,048 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:10:30,049 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:11:17,673 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:11:17,673 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: /Users/marco/mu_code
2021-03-28 14:11:28,868 - mu.interface.main:423(get_save_path) DEBUG: Getting save path: 
2021-03-28 14:12:46,575 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:12:46,581 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:12:46,587 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:12:46,588 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-03-28 14:13:08,129 - mu.logic:1396(show_admin) INFO: Showing admin with logs from /Users/marco/Library/Logs/mu/mu.log
2021-03-28 14:13:08,130 - mu.virtual_environment:697(installed_packages) INFO: Discovering installed third party modules in venv.
2021-03-28 14:13:08,130 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['list', '--disable-pip-version-check'], 30.0
2021-03-28 14:13:08,484 - mu.virtual_environment:717(installed_packages) INFO: []
2021-03-28 14:13:35,416 - mu.logic:1442(show_admin) INFO: No admin settings changed.
2021-03-28 14:13:41,981 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:13:42,026 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off.
2021-03-28 14:13:43,887 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:13:43,887 - mu.modes.microbit:280(flash) DEBUG: Python script from 'untitled' tab:
2021-03-28 14:13:43,887 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:13:43,898 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:13:43,899 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:13:43,899 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:13:43,899 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:13:43,899 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:13:45,040 - mu.modes.microbit:376(flash) WARNING: Could not detect version of MicroPython.
2021-03-28 14:13:45,081 - mu.modes.microbit:423(flash_and_send) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:13:45,086 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:13:45,091 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:13:45,102 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:13:45,102 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:13:45,146 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:13:45,146 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:13:45,146 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:13:46,185 - mu.modes.microbit:497(flash_failed) ERROR: Could not enter raw REPL.
2021-03-28 14:13:46,187 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:13:46,187 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:14:36,966 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:14:36,966 - mu.modes.microbit:280(flash) DEBUG: Python script from 'untitled' tab:
2021-03-28 14:14:36,966 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:14:36,976 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:14:36,976 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:14:36,977 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:14:36,977 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:14:36,977 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:14:37,516 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:14:37,517 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:14:37,517 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:14:37,519 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:14:37,519 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:14:38,561 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:14:38,561 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:14:38,561 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:14:38,562 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:14:38,589 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:14:38,605 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:14:38,610 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:14:38,610 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:14:38,654 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:14:48,083 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:14:48,084 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: /Users/marco/mu_code
2021-03-28 14:15:03,420 - mu.interface.main:423(get_save_path) DEBUG: Getting save path: /Users/marco/Downloads/DIY image.py
2021-03-28 14:15:03,420 - mu.logic:1222(check_for_shadow_module) INFO: Checking path "/Users/marco/Downloads/DIY image.py" for shadow module.
2021-03-28 14:15:03,420 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:15:03,420 - mu.logic:1185(save_tab_to_file) DEBUG: # Write your code here :-)
from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:15:05,729 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:15:05,729 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:15:05,729 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:15:05,741 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:15:05,741 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:15:05,741 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:15:05,741 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:15:05,741 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:15:06,276 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:15:06,277 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:15:06,277 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:15:06,278 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:15:06,278 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:15:07,320 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:15:07,320 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:15:07,320 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:15:07,321 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:15:07,327 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:15:07,362 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:15:07,363 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:15:07,363 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:15:07,421 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:15:12,698 - mu.logic:720(check_usb) INFO: microbit device disconnected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer ARM)
2021-03-28 14:15:26,698 - mu.logic:737(check_usb) INFO: microbit device connected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer: 'ARM')
2021-03-28 14:15:35,612 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:15:35,612 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:15:35,612 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:15:35,624 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:15:35,624 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:15:35,624 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:15:35,624 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:15:35,624 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:15:36,164 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:15:36,165 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:15:36,165 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:15:36,166 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:15:36,166 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:15:37,207 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:15:37,208 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:15:37,208 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:15:37,208 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:15:37,234 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:15:37,250 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:15:37,252 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:15:37,252 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:15:37,299 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:15:51,871 - mu.logic:1304(check_code) INFO: Checking code.
2021-03-28 14:15:53,823 - mu.logic:1785(tidy_code) INFO: Tidy code.
2021-03-28 14:15:53,823 - mu.logic:1786(tidy_code) INFO: # Write your code here :-)
from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'from' (prefix='# Write your code here :-)\n')
2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'microbit' (prefix=' ')
2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'import' (prefix=' ')
2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STAR '*' (prefix=' ')
2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'boat' (prefix='\n')
2021-03-28 14:15:53,824 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: EQUAL '=' (prefix=' ')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'Image' (prefix=' ')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: LPAR '(' (prefix='')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix=' ')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix=' ')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"99999:"' (prefix=' ')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"09990"' (prefix=' ')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: RPAR ')' (prefix='')
2021-03-28 14:15:53,825 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'display' (prefix='\n')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: DOT '.' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'show' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: LPAR '(' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'boat' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: RPAR ')' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: ENDMARKER '' (prefix='')
2021-03-28 14:15:53,826 - blib2to3.pgen2.driver:105(parse_tokens) DEBUG: Stop.
2021-03-28 14:15:56,187 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:15:56,187 - mu.logic:1185(save_tab_to_file) DEBUG: # Write your code here :-)
from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:18:25,179 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:18:25,179 - mu.logic:1387(quit) INFO: Quitting.

2021-03-28 14:18:25,179 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:18:25,180 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/venv.json
2021-03-28 14:19:42,793 - root:259(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.2
2021-03-28 14:19:42,794 - root:260(run) INFO: uname_result(system='Darwin', node='MacBook-Pro-van-Marco.local', release='20.3.0', version='Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2021-03-28 14:19:42,794 - root:261(run) INFO: Python path: ['/', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/setuptools-49.6.0-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/pip-20.2.2-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/IPython/extensions']
2021-03-28 14:19:42,794 - root:262(run) INFO: Language code: nl_NL
2021-03-28 14:19:42,794 - mu.settings:220(load) WARNING: No settings file found at /Users/marco/Library/Application Support/mu/settings.json; skipping
2021-03-28 14:19:43,140 - mu.virtual_environment:434(ensure_and_create) INFO: Added log handler.
2021-03-28 14:19:43,438 - mu.virtual_environment:438(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-03-28 14:19:43,457 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:19:43,462 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/python
2021-03-28 14:19:43,510 - mu.virtual_environment:534(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-03-28 14:19:43,515 - mu.virtual_environment:566(ensure_pip) INFO: Pip found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip
2021-03-28 14:19:43,515 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pygame
2021-03-28 14:19:44,292 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: numpy
2021-03-28 14:19:45,043 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-03-28 14:19:45,107 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: flask
2021-03-28 14:19:45,485 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: serial
2021-03-28 14:19:45,551 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-03-28 14:19:45,613 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-03-28 14:19:45,694 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-03-28 14:19:45,843 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-03-28 14:19:47,047 - mu.logic:758(__init__) INFO: Setting up editor.
2021-03-28 14:19:47,048 - mu.logic:778(__init__) INFO: Log directory: /Users/marco/Library/Logs/mu
2021-03-28 14:19:47,048 - mu.logic:779(__init__) INFO: Data directory: /Users/marco/Library/Application Support/mu
2021-03-28 14:19:47,049 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-03-28 14:19:47,049 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:19:47,097 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:19:47,097 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:19:47,097 - mu.logic:867(restore_session) DEBUG: <SessionSettings from /Users/marco/Library/Application Support/mu/session.json>
2021-03-28 14:19:47,104 - mu.logic:978(_load) INFO: Loading script from: /Users/marco/Downloads/DIY image.py
2021-03-28 14:19:47,105 - mu.logic:316(read_and_decode) DEBUG: Trying to decode with utf-8
2021-03-28 14:19:47,105 - mu.logic:319(read_and_decode) INFO: Decoded with utf-8
2021-03-28 14:19:47,105 - mu.logic:332(read_and_decode) DEBUG: Detected newline '\n'
2021-03-28 14:19:47,105 - mu.logic:1077(_load) DEBUG: # Write your code here :-)
from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:19:47,246 - mu.logic:889(restore_session) INFO: Loaded files.
2021-03-28 14:19:47,246 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-03-28 14:19:47,246 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-03-28 14:19:47,275 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:19:47,275 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:19:48,004 - mu.logic:737(check_usb) INFO: microbit device connected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer: 'ARM')
2021-03-28 14:19:52,031 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:19:52,031 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:19:52,031 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:19:52,040 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:19:52,040 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:19:52,041 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:19:52,041 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:19:52,041 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:19:52,570 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:19:52,571 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:19:52,572 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:19:52,572 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:19:52,572 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:19:53,606 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:19:53,607 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:19:53,607 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:19:53,607 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:19:53,632 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:19:53,646 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:19:53,666 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:19:53,666 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:19:53,710 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:19:58,938 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:19:58,942 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:19:58,947 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:19:58,948 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-03-28 14:20:11,415 - mu.modes.base:553(add_plotter) INFO: Started plotter
2021-03-28 14:20:11,415 - mu.modes.base:536(toggle_plotter) INFO: Toggle plotter on.
2021-03-28 14:20:15,652 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off.
2021-03-28 14:20:17,010 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:20:17,045 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:20:17,050 - mu.modes.base:318(remove_plotter) INFO: Removing plotter
2021-03-28 14:20:17,050 - mu.modes.base:533(toggle_plotter) INFO: Toggle plotter off.
2021-03-28 14:20:20,066 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:20:20,066 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:20:20,067 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:20:20,076 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:20:20,077 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:20:20,077 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:20:20,077 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:20:20,077 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:20:20,605 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:20:20,606 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:20:20,606 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:20:20,607 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:20:20,607 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:20:21,647 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:20:21,647 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:20:21,647 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:20:21,647 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:20:21,651 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:20:21,690 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:20:21,691 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:20:21,691 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:20:21,730 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:25:25,596 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:25:25,596 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:25:25,596 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:25:25,604 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:25:25,604 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:25:25,604 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:25:25,604 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:25:25,604 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:25:26,139 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:25:26,140 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:25:26,140 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:25:26,141 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:25:26,141 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:25:27,181 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:25:27,181 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:25:27,181 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:25:27,181 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:25:27,190 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:25:27,226 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:25:27,232 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:25:27,232 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:25:27,270 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:25:30,203 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:25:30,204 - mu.logic:1387(quit) INFO: Quitting.

2021-03-28 14:25:30,204 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:25:30,204 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/venv.json
2021-03-28 14:25:53,904 - root:259(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.2
2021-03-28 14:25:53,904 - root:260(run) INFO: uname_result(system='Darwin', node='MacBook-Pro-van-Marco.local', release='20.3.0', version='Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2021-03-28 14:25:53,905 - root:261(run) INFO: Python path: ['/', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/setuptools-49.6.0-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/pip-20.2.2-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/IPython/extensions']
2021-03-28 14:25:53,905 - root:262(run) INFO: Language code: nl_NL
2021-03-28 14:25:53,905 - mu.settings:220(load) WARNING: No settings file found at /Users/marco/Library/Application Support/mu/settings.json; skipping
2021-03-28 14:25:54,088 - mu.virtual_environment:434(ensure_and_create) INFO: Added log handler.
2021-03-28 14:25:54,192 - mu.virtual_environment:438(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-03-28 14:25:54,199 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:25:54,202 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/python
2021-03-28 14:25:54,237 - mu.virtual_environment:534(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-03-28 14:25:54,246 - mu.virtual_environment:566(ensure_pip) INFO: Pip found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip
2021-03-28 14:25:54,249 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pygame
2021-03-28 14:25:54,314 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: numpy
2021-03-28 14:25:54,456 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-03-28 14:25:54,493 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: flask
2021-03-28 14:25:54,652 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: serial
2021-03-28 14:25:54,687 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-03-28 14:25:54,720 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-03-28 14:25:54,766 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-03-28 14:25:54,823 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-03-28 14:25:55,937 - mu.logic:758(__init__) INFO: Setting up editor.
2021-03-28 14:25:55,938 - mu.logic:778(__init__) INFO: Log directory: /Users/marco/Library/Logs/mu
2021-03-28 14:25:55,938 - mu.logic:779(__init__) INFO: Data directory: /Users/marco/Library/Application Support/mu
2021-03-28 14:25:55,938 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-03-28 14:25:55,938 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:25:55,960 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:25:55,960 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:25:55,960 - mu.logic:867(restore_session) DEBUG: <SessionSettings from /Users/marco/Library/Application Support/mu/session.json>
2021-03-28 14:25:55,964 - mu.logic:978(_load) INFO: Loading script from: /Users/marco/Downloads/DIY image.py
2021-03-28 14:25:55,964 - mu.logic:316(read_and_decode) DEBUG: Trying to decode with utf-8
2021-03-28 14:25:55,965 - mu.logic:319(read_and_decode) INFO: Decoded with utf-8
2021-03-28 14:25:55,965 - mu.logic:332(read_and_decode) DEBUG: Detected newline '\n'
2021-03-28 14:25:55,965 - mu.logic:1077(_load) DEBUG: # Write your code here :-)
from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:25:56,057 - mu.logic:889(restore_session) INFO: Loaded files.
2021-03-28 14:25:56,057 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-03-28 14:25:56,057 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-03-28 14:25:56,075 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:25:56,075 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:25:56,894 - mu.logic:737(check_usb) INFO: microbit device connected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer: 'ARM')
2021-03-28 14:25:58,332 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:25:58,333 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:25:58,333 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:25:58,344 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:25:58,344 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:25:58,344 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:25:58,344 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:25:58,344 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:25:58,876 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:25:58,876 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:25:58,877 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:25:58,877 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:25:58,878 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:25:59,913 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:25:59,914 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:25:59,914 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:25:59,914 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:25:59,935 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:25:59,952 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:25:59,956 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:25:59,956 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:25:59,996 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:32:20,161 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:32:20,161 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:32:20,161 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:32:20,170 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:32:20,170 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:32:20,170 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:32:20,170 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:32:20,171 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:32:20,708 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:32:20,709 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:32:20,709 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:32:20,710 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:32:20,710 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:32:21,750 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:32:21,750 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:32:21,750 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:32:21,750 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:32:21,778 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:32:21,795 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:32:21,801 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:32:21,801 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:32:21,833 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:32:43,434 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:32:43,435 - mu.logic:1387(quit) INFO: Quitting.

2021-03-28 14:32:43,435 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:32:43,435 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/venv.json
2021-03-28 14:32:46,827 - root:259(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.2
2021-03-28 14:32:46,827 - root:260(run) INFO: uname_result(system='Darwin', node='MacBook-Pro-van-Marco.local', release='20.3.0', version='Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2021-03-28 14:32:46,827 - root:261(run) INFO: Python path: ['/', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/setuptools-49.6.0-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/pip-20.2.2-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/IPython/extensions']
2021-03-28 14:32:46,827 - root:262(run) INFO: Language code: nl_NL
2021-03-28 14:32:46,827 - mu.settings:220(load) WARNING: No settings file found at /Users/marco/Library/Application Support/mu/settings.json; skipping
2021-03-28 14:32:46,990 - mu.virtual_environment:434(ensure_and_create) INFO: Added log handler.
2021-03-28 14:32:47,092 - mu.virtual_environment:438(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-03-28 14:32:47,098 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:32:47,101 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/python
2021-03-28 14:32:47,135 - mu.virtual_environment:534(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-03-28 14:32:47,143 - mu.virtual_environment:566(ensure_pip) INFO: Pip found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip
2021-03-28 14:32:47,143 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pygame
2021-03-28 14:32:47,202 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: numpy
2021-03-28 14:32:47,322 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-03-28 14:32:47,352 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: flask
2021-03-28 14:32:47,513 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: serial
2021-03-28 14:32:47,544 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-03-28 14:32:47,575 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-03-28 14:32:47,617 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-03-28 14:32:47,668 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-03-28 14:32:48,796 - mu.logic:758(__init__) INFO: Setting up editor.
2021-03-28 14:32:48,796 - mu.logic:778(__init__) INFO: Log directory: /Users/marco/Library/Logs/mu
2021-03-28 14:32:48,796 - mu.logic:779(__init__) INFO: Data directory: /Users/marco/Library/Application Support/mu
2021-03-28 14:32:48,796 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-03-28 14:32:48,797 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:32:48,816 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:32:48,817 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:32:48,817 - mu.logic:867(restore_session) DEBUG: <SessionSettings from /Users/marco/Library/Application Support/mu/session.json>
2021-03-28 14:32:48,821 - mu.logic:978(_load) INFO: Loading script from: /Users/marco/Downloads/DIY image.py
2021-03-28 14:32:48,821 - mu.logic:316(read_and_decode) DEBUG: Trying to decode with utf-8
2021-03-28 14:32:48,821 - mu.logic:319(read_and_decode) INFO: Decoded with utf-8
2021-03-28 14:32:48,821 - mu.logic:332(read_and_decode) DEBUG: Detected newline '\n'
2021-03-28 14:32:48,821 - mu.logic:1077(_load) DEBUG: # Write your code here :-)
from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:32:48,900 - mu.logic:889(restore_session) INFO: Loaded files.
2021-03-28 14:32:48,900 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-03-28 14:32:48,900 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-03-28 14:32:48,917 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:32:48,917 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:32:49,855 - mu.logic:737(check_usb) INFO: microbit device connected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer: 'ARM')
2021-03-28 14:32:51,000 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:32:51,000 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:32:51,000 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:32:51,010 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:32:51,010 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:32:51,011 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:32:51,011 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:32:51,011 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:32:51,548 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:32:51,549 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:32:51,549 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:32:51,550 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:32:51,550 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:32:52,591 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:32:52,591 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:32:52,591 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:32:52,592 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:32:52,618 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:32:52,636 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:32:52,642 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:32:52,642 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:32:52,678 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:33:12,747 - mu.logic:1396(show_admin) INFO: Showing admin with logs from /Users/marco/Library/Logs/mu/mu.log
2021-03-28 14:33:12,747 - mu.virtual_environment:697(installed_packages) INFO: Discovering installed third party modules in venv.
2021-03-28 14:33:12,748 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['list', '--disable-pip-version-check'], 30.0
2021-03-28 14:33:13,137 - mu.virtual_environment:717(installed_packages) INFO: []
2021-03-28 14:37:30,165 - mu.logic:1442(show_admin) INFO: No admin settings changed.
2021-03-28 14:37:31,371 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:37:31,371 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:37:31,371 - mu.modes.microbit:281(flash) DEBUG: b'# Write your code here :-)\nfrom microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:37:31,380 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:37:31,380 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:37:31,380 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:37:31,380 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:37:31,380 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:37:31,912 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:37:31,912 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:37:31,912 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:37:31,913 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:37:31,913 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', "f(b'# Write your code here :-)\\nfrom microbit import *\\n\\nboat = Image(')", 'f(b\'"05050:" "05050:" "05050:" "99999:" "09990")\\n\\ndisplay.show(boat)\')', "f(b'\\n')", 'fd.close()']
2021-03-28 14:37:32,949 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:37:32,949 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:37:32,949 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:37:32,949 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:37:32,958 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:37:32,992 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:37:32,998 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:37:32,998 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:37:33,036 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:37:49,356 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:37:49,357 - mu.logic:1185(save_tab_to_file) DEBUG: # Write your code hefrom microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:37:49,360 - mu.logic:1562(autosave) INFO: Autosave detected and saved changes in /Users/marco/Downloads/DIY image.py.
2021-03-28 14:38:23,501 - mu.logic:1304(check_code) INFO: Checking code.
2021-03-28 14:38:24,356 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:38:24,356 - mu.logic:1185(save_tab_to_file) DEBUG: from microbit import *

boat = Image("05050:"
             "05050:"
             "05050:"
             "99999:"
             "09990")

display.show(boat)
2021-03-28 14:38:24,360 - mu.logic:1562(autosave) INFO: Autosave detected and saved changes in /Users/marco/Downloads/DIY image.py.
2021-03-28 14:38:24,824 - blib2to3.pgen2.driver:195(load_grammar) INFO: Generating grammar tables from /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/blib2to3/Grammar.txt
2021-03-28 14:38:24,848 - blib2to3.pgen2.driver:198(load_grammar) INFO: Writing grammar tables to /Users/marco/Library/Caches/black/20.8b1/Grammar3.8.5.final.0.pickle
2021-03-28 14:38:24,849 - blib2to3.pgen2.driver:202(load_grammar) INFO: Writing failed: [Errno 2] No such file or directory: '/Users/marco/Library/Caches/black/20.8b1/tmpjzgpfz7y'
2021-03-28 14:38:24,849 - blib2to3.pgen2.driver:195(load_grammar) INFO: Generating grammar tables from /Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/blib2to3/PatternGrammar.txt
2021-03-28 14:38:24,851 - blib2to3.pgen2.driver:198(load_grammar) INFO: Writing grammar tables to /Users/marco/Library/Caches/black/20.8b1/PatternGrammar3.8.5.final.0.pickle
2021-03-28 14:38:24,851 - blib2to3.pgen2.driver:202(load_grammar) INFO: Writing failed: [Errno 2] No such file or directory: '/Users/marco/Library/Caches/black/20.8b1/tmp5yh0jy4i'
2021-03-28 14:38:24,857 - mu.logic:1785(tidy_code) INFO: Tidy code.
2021-03-28 14:38:24,857 - mu.logic:1786(tidy_code) INFO: from microbit import *

boat = Image("05050:"
             "05050:"
             "05050:"
             "99999:"
             "09990")

display.show(boat)
2021-03-28 14:38:24,857 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'from' (prefix='')
2021-03-28 14:38:24,857 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'microbit' (prefix=' ')
2021-03-28 14:38:24,857 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'import' (prefix=' ')
2021-03-28 14:38:24,857 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STAR '*' (prefix=' ')
2021-03-28 14:38:24,857 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'boat' (prefix='\n')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: EQUAL '=' (prefix=' ')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'Image' (prefix=' ')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: LPAR '(' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='\n             ')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"05050:"' (prefix='\n             ')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"99999:"' (prefix='\n             ')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: STRING '"09990"' (prefix='\n             ')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: RPAR ')' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'display' (prefix='\n')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: DOT '.' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'show' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: LPAR '(' (prefix='')
2021-03-28 14:38:24,858 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NAME 'boat' (prefix='')
2021-03-28 14:38:24,859 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: RPAR ')' (prefix='')
2021-03-28 14:38:24,859 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: NEWLINE '\n' (prefix='')
2021-03-28 14:38:24,859 - blib2to3.pgen2.driver:92(parse_tokens) DEBUG: ENDMARKER '' (prefix='')
2021-03-28 14:38:24,859 - blib2to3.pgen2.driver:105(parse_tokens) DEBUG: Stop.
2021-03-28 14:38:27,090 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:38:27,090 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:38:27,090 - mu.modes.microbit:281(flash) DEBUG: b'from microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:38:27,100 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:38:27,100 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:38:27,100 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:38:27,101 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:38:27,101 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:38:27,633 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:38:27,634 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:38:27,635 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:38:27,635 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:38:27,636 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', 'f(b\'from microbit import *\\n\\nboat = Image("05050:" "05050:" "05050:" \')', 'f(b\'"99999:" "09990")\\n\\ndisplay.show(boat)\\n\')', 'fd.close()']
2021-03-28 14:38:28,676 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:38:28,677 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:38:28,677 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:38:28,677 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:38:28,685 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:38:28,721 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:38:28,727 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:38:28,727 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:38:28,766 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:38:29,357 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:38:29,357 - mu.logic:1185(save_tab_to_file) DEBUG: from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:38:29,361 - mu.logic:1562(autosave) INFO: Autosave detected and saved changes in /Users/marco/Downloads/DIY image.py.
2021-03-28 14:38:48,777 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:38:48,777 - mu.logic:1185(save_tab_to_file) DEBUG: from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:38:54,847 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:38:54,852 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:38:54,859 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:38:54,859 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-03-28 14:38:57,839 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/cu.usbmodem14202
2021-03-28 14:38:57,876 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off.
2021-03-28 14:38:59,442 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:38:59,454 - mu.modes.microbit:570(toggle_files) INFO: Toggle filesystem on.
2021-03-28 14:39:12,980 - mu.modes.microbit:574(toggle_files) INFO: Toggle filesystem off.
2021-03-28 14:39:13,933 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:39:13,945 - mu.modes.microbit:570(toggle_files) INFO: Toggle filesystem on.
2021-03-28 14:39:15,688 - mu.modes.microbit:574(toggle_files) INFO: Toggle filesystem off.
2021-03-28 14:39:16,677 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:39:16,686 - mu.modes.microbit:570(toggle_files) INFO: Toggle filesystem on.
2021-03-28 14:39:19,119 - mu.modes.microbit:574(toggle_files) INFO: Toggle filesystem off.
2021-03-28 14:39:20,116 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:39:20,117 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:39:20,117 - mu.modes.microbit:281(flash) DEBUG: b'from microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:39:20,126 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:39:20,126 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:39:20,127 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:39:20,127 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:39:20,127 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:39:20,654 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:39:20,654 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:39:20,655 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:39:20,655 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:39:20,655 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', 'f(b\'from microbit import *\\n\\nboat = Image("05050:" "05050:" "05050:" \')', 'f(b\'"99999:" "09990")\\n\\ndisplay.show(boat)\\n\')', 'fd.close()']
2021-03-28 14:39:21,692 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:39:21,692 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:39:21,693 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:39:21,693 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:39:21,702 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:39:21,729 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:39:21,735 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:39:21,735 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:39:21,766 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:39:27,701 - mu.logic:1280(zoom_in) INFO: Zoom in
2021-03-28 14:39:28,746 - mu.logic:1287(zoom_out) INFO: Zoom out
2021-03-28 14:39:28,957 - mu.logic:1287(zoom_out) INFO: Zoom out
2021-03-28 14:39:29,937 - mu.logic:1280(zoom_in) INFO: Zoom in
2021-03-28 14:43:59,990 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:43:59,990 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:43:59,990 - mu.modes.microbit:281(flash) DEBUG: b'from microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:44:00,000 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:44:00,001 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:44:00,001 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:44:00,001 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:44:00,001 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:44:00,529 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:44:00,530 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:44:00,531 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:44:00,531 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:44:00,532 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', 'f(b\'from microbit import *\\n\\nboat = Image("05050:" "05050:" "05050:" \')', 'f(b\'"99999:" "09990")\\n\\ndisplay.show(boat)\\n\')', 'fd.close()']
2021-03-28 14:44:01,571 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:44:01,571 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:44:01,572 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:44:01,572 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:44:01,601 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:44:01,615 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:44:01,620 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:44:01,620 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:44:01,653 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:44:07,209 - mu.logic:1396(show_admin) INFO: Showing admin with logs from /Users/marco/Library/Logs/mu/mu.log
2021-03-28 14:44:07,210 - mu.virtual_environment:697(installed_packages) INFO: Discovering installed third party modules in venv.
2021-03-28 14:44:07,210 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['list', '--disable-pip-version-check'], 30.0
2021-03-28 14:44:07,531 - mu.virtual_environment:717(installed_packages) INFO: []
2021-03-28 14:45:27,874 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:45:27,874 - mu.logic:1387(quit) INFO: Quitting.

2021-03-28 14:45:27,875 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/session.json
2021-03-28 14:45:27,875 - mu.settings:169(save) DEBUG: Saving to /Users/marco/Library/Application Support/mu/venv.json
2021-03-28 14:45:30,699 - root:259(run) INFO: 

-----------------

Starting Mu 1.1.0.beta.2
2021-03-28 14:45:30,699 - root:260(run) INFO: uname_result(system='Darwin', node='MacBook-Pro-van-Marco.local', release='20.3.0', version='Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2021-03-28 14:45:30,699 - root:261(run) INFO: Python path: ['/', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/setuptools-49.6.0-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/pip-20.2.2-py3.8.egg', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages/IPython/extensions']
2021-03-28 14:45:30,699 - root:262(run) INFO: Language code: nl_NL
2021-03-28 14:45:30,700 - mu.settings:220(load) WARNING: No settings file found at /Users/marco/Library/Application Support/mu/settings.json; skipping
2021-03-28 14:45:30,909 - mu.virtual_environment:434(ensure_and_create) INFO: Added log handler.
2021-03-28 14:45:30,909 - mu.virtual_environment:438(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-03-28 14:45:31,051 - mu.virtual_environment:489(ensure_path) INFO: Virtual Environment found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522
2021-03-28 14:45:31,055 - mu.virtual_environment:502(ensure_interpreter) INFO: Interpreter found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/python
2021-03-28 14:45:31,089 - mu.virtual_environment:534(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-03-28 14:45:31,089 - mu.virtual_environment:566(ensure_pip) INFO: Pip found at: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip
2021-03-28 14:45:31,089 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pygame
2021-03-28 14:45:31,163 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: numpy
2021-03-28 14:45:31,326 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-03-28 14:45:31,360 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: flask
2021-03-28 14:45:31,522 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: serial
2021-03-28 14:45:31,554 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: qtconsole
2021-03-28 14:45:31,587 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: nudatus
2021-03-28 14:45:31,629 - mu.virtual_environment:548(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-03-28 14:45:31,685 - mu.virtual_environment:451(ensure_and_create) INFO: Virtual environment already exists.
2021-03-28 14:45:32,805 - mu.logic:758(__init__) INFO: Setting up editor.
2021-03-28 14:45:32,805 - mu.logic:778(__init__) INFO: Log directory: /Users/marco/Library/Logs/mu
2021-03-28 14:45:32,805 - mu.logic:779(__init__) INFO: Data directory: /Users/marco/Library/Application Support/mu
2021-03-28 14:45:32,805 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-03-28 14:45:32,805 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:45:32,827 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:45:32,827 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:45:32,827 - mu.logic:867(restore_session) DEBUG: <SessionSettings from /Users/marco/Library/Application Support/mu/session.json>
2021-03-28 14:45:32,832 - mu.logic:978(_load) INFO: Loading script from: /Users/marco/Downloads/DIY image.py
2021-03-28 14:45:32,833 - mu.logic:316(read_and_decode) DEBUG: Trying to decode with utf-8
2021-03-28 14:45:32,833 - mu.logic:319(read_and_decode) INFO: Decoded with utf-8
2021-03-28 14:45:32,833 - mu.logic:332(read_and_decode) DEBUG: Detected newline '\n'
2021-03-28 14:45:32,833 - mu.logic:1077(_load) DEBUG: from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:45:32,920 - mu.logic:889(restore_session) INFO: Loaded files.
2021-03-28 14:45:32,920 - mu.logic:892(restore_session) INFO: User defined environment variables: []
2021-03-28 14:45:32,920 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False
2021-03-28 14:45:32,938 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/marco/mu_code from settings file
2021-03-28 14:45:32,938 - mu.logic:1523(change_mode) INFO: Workspace directory: /Users/marco/mu_code
2021-03-28 14:45:33,861 - mu.logic:737(check_usb) INFO: microbit device connected on port: /dev/cu.usbmodem14202(VID: 0x0D28, PID: 0x0204, manufacturer: 'ARM')
2021-03-28 14:45:36,183 - mu.logic:1396(show_admin) INFO: Showing admin with logs from /Users/marco/Library/Logs/mu/mu.log
2021-03-28 14:45:36,183 - mu.virtual_environment:697(installed_packages) INFO: Discovering installed third party modules in venv.
2021-03-28 14:45:36,183 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['list', '--disable-pip-version-check'], 30.0
2021-03-28 14:45:36,516 - mu.virtual_environment:717(installed_packages) INFO: []
2021-03-28 14:46:37,526 - mu.logic:1442(show_admin) INFO: No admin settings changed.
2021-03-28 14:46:43,356 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:46:43,356 - mu.logic:1185(save_tab_to_file) DEBUG: 
2021-03-28 14:46:43,359 - mu.logic:1562(autosave) INFO: Autosave detected and saved changes in /Users/marco/Downloads/DIY image.py.
2021-03-28 14:47:43,357 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:47:43,357 - mu.logic:1185(save_tab_to_file) DEBUG: from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:47:43,362 - mu.logic:1562(autosave) INFO: Autosave detected and saved changes in /Users/marco/Downloads/DIY image.py.
2021-03-28 14:47:43,608 - mu.logic:1184(save_tab_to_file) INFO: Saving script to: /Users/marco/Downloads/DIY image.py
2021-03-28 14:47:43,608 - mu.logic:1185(save_tab_to_file) DEBUG: from microbit import *

boat = Image("05050:" "05050:" "05050:" "99999:" "09990")

display.show(boat)

2021-03-28 14:47:45,360 - mu.modes.microbit:273(flash) INFO: Preparing to flash script.
2021-03-28 14:47:45,360 - mu.modes.microbit:280(flash) DEBUG: Python script from 'DIY image.py' tab:
2021-03-28 14:47:45,361 - mu.modes.microbit:281(flash) DEBUG: b'from microbit import *\n\nboat = Image("05050:" "05050:" "05050:" "99999:" "09990")\n\ndisplay.show(boat)\n'
2021-03-28 14:47:45,372 - mu.modes.microbit:229(find_microbit) INFO: Path to micro:bit: /Volumes/MICROBIT
2021-03-28 14:47:45,372 - mu.modes.microbit:235(find_microbit) INFO: Serial port: /dev/cu.usbmodem14202
2021-03-28 14:47:45,372 - mu.modes.microbit:236(find_microbit) INFO: Device serial number: 9904360258824e450031800200000048000000009796990b
2021-03-28 14:47:45,372 - mu.modes.microbit:237(find_microbit) INFO: Board ID: 0x9904
2021-03-28 14:47:45,372 - mu.modes.microbit:358(flash) INFO: Checking target device.
2021-03-28 14:47:45,911 - mu.modes.microbit:246(get_device_micropython_version) INFO: {'sysname': 'microbit', 'nodename': 'microbit', 'release': '2.0.0-beta.5', 'version': 'micro:bit v2.0.0-beta.5+e0f3e60 on 2021-03-16; MicroPython v1.13 on 2021-03-16', 'machine': 'micro:bit with nRF52833'}
2021-03-28 14:47:45,912 - mu.modes.microbit:254(get_device_micropython_version) INFO: Board MicroPython: 2.0.0-beta.5
2021-03-28 14:47:45,912 - mu.modes.microbit:367(flash) INFO: Mu MicroPython: 2.0.0-beta.4
2021-03-28 14:47:45,913 - mu.modes.microbit:474(copy_main) INFO: Copying main.py onto device
2021-03-28 14:47:45,913 - mu.modes.microbit:481(copy_main) INFO: ["fd = open('main.py', 'wb')", 'f = fd.write', 'f(b\'from microbit import *\\n\\nboat = Image("05050:" "05050:" "05050:" \')', 'f(b\'"99999:" "09990")\\n\\ndisplay.show(boat)\\n\')', 'fd.close()']
2021-03-28 14:47:46,954 - mu.modes.microbit:408(flash) WARNING: Could not copy file to device.
2021-03-28 14:47:46,954 - mu.modes.microbit:409(flash) ERROR: Could not enter raw REPL.
2021-03-28 14:47:46,954 - mu.modes.microbit:410(flash) INFO: Falling back to old-style flashing.
2021-03-28 14:47:46,955 - mu.modes.microbit:444(flash_attached) INFO: Flashing new MicroPython runtime onto device
2021-03-28 14:47:46,982 - mu.modes.microbit:102(run) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:47:46,996 - mu.modes.microbit:497(flash_failed) ERROR: [Errno 1] Operation not permitted: '/Volumes/MICROBIT/micropython.hex'
2021-03-28 14:47:47,000 - mu.interface.main:942(show_message) DEBUG: There was a problem flashing the micro:bit.
2021-03-28 14:47:47,001 - mu.interface.main:943(show_message) DEBUG: Please do not disconnect the device until flashing has completed. Please check the logs for more information.
2021-03-28 14:47:47,035 - mu.modes.microbit:459(flash_finished) INFO: Flashing successful.
2021-03-28 14:47:52,214 - mu.logic:1396(show_admin) INFO: Showing admin with logs from /Users/marco/Library/Logs/mu/mu.log
2021-03-28 14:47:52,215 - mu.virtual_environment:697(installed_packages) INFO: Discovering installed third party modules in venv.
2021-03-28 14:47:52,215 - mu.virtual_environment:198(run) DEBUG: About to run blocking: /Users/marco/Library/Application Support/mu/mu_venv-38-20210328-140522/bin/pip, ['list', '--disable-pip-version-check'], 30.0
2021-03-28 14:47:52,486 - mu.virtual_environment:717(installed_packages) INFO: []
marc0janssen commented 3 years ago

OK... this is something weird.

  1. It did not work for 2 hours of trying. --> nothing worked
  2. Flashed other HEX-files from different editors --> all worked but MUeditor
  3. Disconnected the MicroBit
  4. Tried to save a HEX file from MU-editor without the MicroBit attached this time --> got a HEX-file 5.Attached the Microbit back and copied the mu-editor-HEX-file by hand on the Micro-bit --> this failed.. got an error the HEX-file was not valid.
  5. Flashed an HEX from another editor --> this worked fine (and the FAILED.TXT disappeared from the microbit)
  6. started the mu-editor and flashed again --> THIS TIME IT WORKED and keeps working.

I can't explain this

marc0janssen commented 3 years ago

Found out something new:

After a while the problem was back.

When I deleted the "main.py" in files from the MicroBit, I could flash again.

marc0janssen commented 3 years ago

After uploading a HEX from makecode.. I run into the same problems again... can't flash python-source to the microbit

Can someone help me what I'm doing wrong?

carlosperate commented 3 years ago

Can you attach to this post (it might need to be on a zip file) the hex that caused a fail.txt? A copy of the fail.txt file and the details.txt file would be useful too.

marc0janssen commented 3 years ago

The fail.txt will not always appear,... If it appears it is when I disconnect the microbit, then generate a HEX on disk. and copy this HEX by the hand on the microbit... then sometimes the fail.txt appears... at the moment is it not the case. If I have it, I will share.

Weird stuff is that I can't reflash the microbit unless I delete the main.py from the microbit

marc0janssen commented 3 years ago

FAIL.TXT

error: In application programming failed because the update sent was incomplete.
type: interface

DETAILS.TXT

# DAPLink Firmware - see https://mbed.com/daplink
Unique ID: 9904360258824e450031800200000048000000009796990b
HIC ID: 9796990b
Auto Reset: 1
Automation allowed: 0
Overflow detection: 0
Incompatible image detection: 1
Page erasing: 0
Daplink Mode: Interface
Interface Version: 0255
Bootloader Version: 0255
Git SHA: 1436bdcc67029fdfc0ff03b73e12045bb6a9f272
Local Mods: 0
USB Interfaces: MSD, CDC, HID, WebUSB
Bootloader CRC: 0x828c6069
Interface CRC: 0x5b5cc0f5
Remount count: 5
URL: https://microbit.org/device/?id=9904&v=0255
carlosperate commented 3 years ago

Thanks @marc0janssen do you also have the hex that has caused this? That file would be really useful to debug this.

marc0janssen commented 3 years ago

How I fixed it:

  1. in FINDER go to the folder /bin
  2. open the system setting for security and privacy
  3. select privacy
  4. Unlock with the pad-lock the screen
  5. drag and drop /bin/sh in the "right-side" part of the window where the apps are .
  6. tick the box next to the just copied "SH".

This fixed it for me...

marc0janssen commented 3 years ago

Thanks @marc0janssen do you also have the hex that has caused this? That file would be really useful to debug this.

Sorry that was lost in the process and after the above procedure all is fine for me now...

The flash takes the aspected time now and the program runs,,,

(weird fact... with the problem there, if the occasional did work, the flash was really really short, compared to the normal flash)

carlosperate commented 3 years ago

Thanks for sharing that solution! it's really appreciated :)

Sorry that was lost in the process and after the above procedure all is fine for me now...

The flash takes the aspected time now and the program runs,,,

I think there might be two problem in this issue. One was the permission issue that has been solved by adding /bin/sh to the security settings. The other seems to be that hex files generated by Mu might not be valid?

If that is the case I would expect the fail.txt issue might happen again in the future.

(weird fact... with the problem there, if the occasional did work, the flash was really really short, compared to the normal flash)

Yeah, based on the error looks like the file is not complete.

marc0janssen commented 3 years ago

Hi Carlos.

That could be. But when the flashing was not working. In others words I hadn't added the sh to security, I could flash the program be removing the Main.py from the microbit and push the flash button.

That's also weird isn't it?

carlosperate commented 3 years ago

Right, generally the way that it works is that if Mu detects micro:bit already has MicroPython running on the device it will send the code via serial (serial works without adding the additional permissions to /bin/sh). The main problem happens when Mu has issues detecting if MicroPython is in device, at that point it tries to copy a micropython.hex file (with just MicroPython) into the MICROBIT drive, and then send the files via serial. Is in this case that the permission issue is triggered and caused problems.

When clicking the "Flash" button without the micro:bit plugged in, Mu will ask where to save a (specially generated) .hex file with MicroPython and the user code attached inside. This method is only used in special cases, as it has several disadvantages, but is still available.

If a generated hex file from Mu (with MicroPython and the user code) causes a fail.txt file in the micro:bit, it probably means there is a bug in the creation of this special hex file, which is why I was so interested to analyse one, and ideally get the Python source code as well to see if I could recreate the problem to debug it.

Btw, thanks again for all the testing and reports you've done, it's been incredibly useful!

marc0janssen commented 3 years ago

Thanks explaining that!

The strange thing is:

  1. If I haven't given /bin/sh full permissions, I can flash main.py (by the flash button) on the Micro:bit WHEN I delete the main.py that's on there already. If I don't delete it on forehand I get an error and it won't flash.

  2. If I do give /bin/sh full permissions, I can ALWAYS flash the microbit BUT it's also ALWAYS a full HEX-flash, even though Micropython has been flashed on the Microbit in a previous flash.

(No worries on helping you guys... If I can help in anyway, I would like to do so.)