mu-editor / crash-reports

0 stars 1 forks source link

Crash Reports - Tried to call `FileSystemPane.microbit_fs` (`MicroPythonDeviceFileList`) after deletion #185

Closed AlanLL closed 1 year ago

AlanLL commented 3 years ago

REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0.beta.3 Locale: en_GB Platform: Windows 10 10.0.19041 AMD64

Traceback (most recent call last):
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 750, in on_ls_fail
    self.disable()
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 689, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted
carlosperate commented 3 years ago

Hi @AlanLL,

Thanks for the report! Would you be able to attach the Mu log file here? it'll be really useful for us. File should be located in: %LOCALAPPDATA%\python\mu\Logs

AlanLL commented 3 years ago

Hi Carlos,

Log attached

Regards Alan

From: Carlos Pereira Atencio @.*** Sent: 31 March 2021 17:38 To: mu-editor/mu Cc: AlanLL; Mention Subject: Re: [mu-editor/mu] Crash Report (#1428)

Hi @AlanLLhttps://github.com/AlanLL,

Thanks for the report! Would you be able to attach the Mu log file here? it'll be really useful for us. File should be located in: %LOCALAPPDATA%\python\mu\Logs

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mu-editor/crash-reports/issues/185, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIGTR6Q2ZNH6AQ2A5G75KW3TGNFV5ANCNFSM42E4NIXA.

carlosperate commented 3 years ago

Thanks Alan, however I think maybe GitHub doesn't enable email attachments as GH issue responses and we didn't get the file. Would you be able to add the log to the issue via the GitHub website? (it can be dragged and dropped into the text field) https://github.com/mu-editor/crash-reports/issues/185

Sorry for the inconvenience, and thanks again for the bug report!

AlanLL commented 3 years ago

Log content: 2021-03-31 15:45:41,937 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 15:45:41,937 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 15:45:41,937 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 15:45:41,937 - root:269(run) INFO: Language code: enGB 2021-03-31 15:45:41,937 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 15:45:41,937 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan_\AppData\Local\python\mu\session.json; skipping 2021-03-31 15:45:42,405 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 15:45:43,280 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 15:45:43,280 - mu.virtual_environment:479(ensurepath) ERROR: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154537 does not exist. 2021-03-31 15:45:43,280 - mu.virtual_environment:445(ensure_andcreate) DEBUG: Creating new virtual environment at C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543. 2021-03-31 15:45:43,280 - mu.virtual_environment:379(relocate) DEBUG: Virtual environment set up muvenv-38-20210331-154543 at C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 15:45:43,280 - mu.virtualenvironment:579(create) INFO: Creating virtualenv: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 15:45:43,296 - mu.virtual_environment:580(create) INFO: Virtualenv name: mu_venv-38-20210331-154543 2021-03-31 15:45:46,350 - mu.virtual_environment:632(install_baseline_packages) INFO: Installing baseline packages. 2021-03-31 15:45:46,353 - mu.virtual_environment:633(install_baselinepackages) INFO: C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\wheels exists 2021-03-31 15:46:30,172 - mu.virtual_environment:658(install_baselinepackages) DEBUG: Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\backcall-0.2.0-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\bitstring-3.1.7-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\cffi-1.14.5-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\click-7.1.2-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\colorama-0.4.4-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\cryptography-3.4.7-cp36-abi3-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\decorator-4.4.2-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\ecdsa-0.16.1-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\esptool-3.0-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\flask-1.1.2-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\ipykernel-5.5.0-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\ipython-7.22.0-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\ipythongenutils-0.2.0-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\itsdangerous-1.1.0-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\jedi-0.18.0-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\jinja2-2.11.3-py2.py3-none-any.whl Processing c:\users\alan_\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\jupyterclient-6.1.12-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\jupytercore-4.7.1-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\markupsafe-1.1.1-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\nudatus-0.0.5-py3-none-any.whl Processing c:\users\alan_\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\numpy-1.20.1-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\parso-0.8.1-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pgzero-1.2.1-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pickleshare-0.7.5-py2.py3-none-any.whl Processing c:\users\alan_\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\prompttoolkit-3.0.18-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pycparser-2.20-py2.py3-none-any.whl Processing c:\users\alan_\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pygame-2.0.1-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pygments-2.8.1-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pyserial-3.5-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pythondateutil-2.8.1-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pywin32-300-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\pyzmq-22.0.3-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\qtconsole-4.7.4-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\qtpy-1.9.0-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\reedsolo-1.5.4-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\setuptools-54.2.0-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\six-1.15.0-py2.py3-none-any.whl Processing c:\users\alan_\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\tornado-6.1-cp38-cp38-winamd64.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\traitlets-5.0.5-py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\wcwidth-0.2.5-py2.py3-none-any.whl Processing c:\users\alan\appdata\local\programs\mu editor\python\lib\site-packages\mu\wheels\werkzeug-1.0.1-py2.py3-none-any.whl Installing collected packages: ipython-genutils, wcwidth, traitlets, six, pywin32, parso, tornado, setuptools, pyzmq, python-dateutil, Pygments, pycparser, prompt-toolkit, pickleshare, jupyter-core, jedi, decorator, colorama, backcall, 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 54.1.2 Uninstalling setuptools-54.1.2: Successfully uninstalled setuptools-54.1.2 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 backcall-0.2.0 bitstring-3.1.7 cffi-1.14.5 click-7.1.2 colorama-0.4.4 cryptography-3.4.7 decorator-4.4.2 ecdsa-0.16.1 esptool-3.0 ipykernel-5.5.0 ipython-7.22.0 ipython-genutils-0.2.0 itsdangerous-1.1.0 jedi-0.18.0 jupyter-client-6.1.12 jupyter-core-4.7.1 nudatus-0.0.5 numpy-1.20.1 parso-0.8.1 pgzero-1.2.1 pickleshare-0.7.5 prompt-toolkit-3.0.18 pycparser-2.20 pygame-2.0.1 pyserial-3.5 python-dateutil-2.8.1 pywin32-300 pyzmq-22.0.3 qtconsole-4.7.4 reedsolo-1.5.4 setuptools-54.2.0 six-1.15.0 tornado-6.1 traitlets-5.0.5 wcwidth-0.2.5

2021-03-31 15:46:31,191 - mu.virtual_environment:607(install_jupyter_kernel) INFO: Installing Jupyter Kernel: "Python/Mu (mu_venv-38-20210331-154543)" 2021-03-31 15:46:36,078 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#2. 2021-03-31 15:46:36,080 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 15:46:36,082 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 15:46:36,224 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 15:46:36,232 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 15:46:36,234 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 15:46:36,403 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 15:46:37,269 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 15:46:37,473 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 15:46:37,644 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 15:46:37,863 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 15:46:38,113 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 15:46:38,238 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 15:46:38,238 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 15:46:38,238 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 15:46:38,238 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 15:46:38,238 - mu.modes.base:68(get_defaultworkspace) WARNING: Workspace C:\Users\Alan\mucode in the settings file is not a valid directory; using default C:\Users\Alan\mucode 2021-03-31 15:46:38,238 - mu.logic:797(setup) DEBUG: Creating directory: C:\Users\Alan\mucode 2021-03-31 15:46:38,238 - mu.logic:805(setup) DEBUG: Creating directory: C:\Users\Alan\mucode\images 2021-03-31 15:46:38,254 - mu.logic:812(setup) DEBUG: Creating directory: C:\Users\Alan\mucode\fonts 2021-03-31 15:46:38,254 - mu.logic:815(setup) DEBUG: Creating directory: C:\Users\Alan\mucode\sounds 2021-03-31 15:46:38,269 - mu.logic:822(setup) DEBUG: Creating directory: C:\Users\Alan\mucode\music 2021-03-31 15:46:38,269 - mu.logic:828(setup) DEBUG: Creating directory: C:\Users\Alan\mucode\templates 2021-03-31 15:46:38,269 - mu.logic:831(setup) DEBUG: Creating directory: C:\Users\Alan\mu_code\static 2021-03-31 15:46:38,348 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:46:38,348 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 15:46:38,348 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 15:46:38,363 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 15:47:06,003 - mu.logic:1477(select_mode) INFO: New mode selected: pico 2021-03-31 15:47:06,034 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:47:06,034 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 15:47:06,081 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:47:06,081 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 15:47:06,425 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 15:47:13,846 - mu.interface.main:942(show_message) DEBUG: Could not find an attached device. 2021-03-31 15:47:13,846 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

It must have a version of MicroPython (or CircuitPython) flashed onto it before the REPL will work.

Finally, press the device's reset button and wait a few seconds before trying again. 2021-03-31 15:47:17,081 - mu.modes.base:474(togglerepl) INFO: Toggle REPL on. 2021-03-31 15:48:26,517 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 15:48:26,518 - mu.logic:1387(quit) INFO: Quitting.

2021-03-31 15:48:26,518 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 15:48:26,519 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\venv.json 2021-03-31 15:54:03,497 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 15:54:03,497 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 15:54:03,497 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 15:54:03,497 - root:269(run) INFO: Language code: enGB 2021-03-31 15:54:03,497 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 15:54:03,575 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 15:54:03,809 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 15:54:03,825 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 15:54:03,825 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 15:54:03,950 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 15:54:03,950 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 15:54:03,950 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 15:54:04,122 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 15:54:04,668 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 15:54:04,840 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 15:54:04,997 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 15:54:05,184 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 15:54:05,403 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 15:54:05,543 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 15:54:05,543 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 15:54:05,543 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 15:54:05,543 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 15:54:05,543 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:54:05,606 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:54:05,606 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 15:54:05,606 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 15:54:05,622 - mu.logic:889(restore_session) INFO: Loaded files. 2021-03-31 15:54:05,622 - mu.logic:892(restore_session) INFO: User defined environment variables: [] 2021-03-31 15:54:05,622 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False 2021-03-31 15:54:05,653 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:54:05,653 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 15:54:05,950 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 15:54:29,331 - mu.interface.main:942(show_message) DEBUG: Could not find an attached Raspberry Pi Pico 2021-03-31 15:54:29,331 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again. 2021-03-31 15:54:36,903 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 15:55:06,208 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 15:55:06,224 - mu.logic:1115(get_dialogdirectory) INFO: Using path for file dialog: C:\Users\Alan\mu_code 2021-03-31 15:55:12,114 - mu.interface.main:405(get_load_path) DEBUG: Getting load path: 2021-03-31 16:10:16,388 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:10:16,388 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:10:37,651 - mu.logic:1523(change_mode) INFO: Workspace directory: F:\ 2021-03-31 16:10:37,651 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:10:53,811 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 16:11:00,712 - mu.logic:1477(select_mode) INFO: New mode selected: pico 2021-03-31 16:11:00,744 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:11:00,744 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:11:12,219 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:11:12,219 - mu.logic:1115(get_dialogdirectory) INFO: Using path for file dialog: C:\Users\Alan\mu_code 2021-03-31 16:11:16,302 - mu.interface.main:405(get_load_path) DEBUG: Getting load path: 2021-03-31 16:11:29,740 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:11:29,753 - mu.modes.esp:214(togglefiles) INFO: Toggle filesystem on. 2021-03-31 16:11:33,859 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL. Traceback (most recent call last): File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls result = tuple(microfs.ls(self.serial)) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls out, err = execute(["import os", "print(os.listdir())"], serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute rawon(serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 100, in raw_on flush_to_msg(serial, raw_replmsg) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\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-31 16:11:33,863 - 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-31 16:11:33,863 - mu.interface.main:943(show_message) DEBUG: None 2021-03-31 16:11:57,494 - mu.interface.main:942(show_message) DEBUG: Could not find an attached Raspberry Pi Pico 2021-03-31 16:11:57,495 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again. 2021-03-31 16:12:05,128 - mu.logic:720(check_usb) INFO: circuitpython device disconnected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer Microsoft) 2021-03-31 16:12:12,068 - mu.logic:1470(selectmode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 16:12:19,907 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:12:19,908 - mu.logic:1387(quit) INFO: Quitting.

2021-03-31 16:12:19,909 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:12:19,909 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\venv.json 2021-03-31 16:12:31,847 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 16:12:31,848 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 16:12:31,848 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 16:12:31,848 - root:269(run) INFO: Language code: enGB 2021-03-31 16:12:31,848 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 16:12:31,924 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 16:12:32,167 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 16:12:32,173 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 16:12:32,176 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 16:12:32,302 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 16:12:32,302 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 16:12:32,302 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 16:12:32,464 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 16:12:33,019 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 16:12:33,190 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 16:12:33,350 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 16:12:33,536 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 16:12:33,761 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 16:12:33,889 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 16:12:33,890 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 16:12:33,890 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 16:12:33,890 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 16:12:33,890 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:12:33,958 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:12:33,958 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:12:33,958 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 16:12:33,966 - mu.logic:889(restore_session) INFO: Loaded files. 2021-03-31 16:12:33,966 - mu.logic:892(restore_session) INFO: User defined environment variables: [] 2021-03-31 16:12:33,966 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False 2021-03-31 16:12:34,011 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:12:34,011 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:12:34,296 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 16:12:45,940 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:12:45,940 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:13:06,929 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:13:18,932 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:13:18,945 - mu.modes.esp:214(togglefiles) INFO: Toggle filesystem on. 2021-03-31 16:13:23,143 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL. Traceback (most recent call last): File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls result = tuple(microfs.ls(self.serial)) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls out, err = execute(["import os", "print(os.listdir())"], serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute rawon(serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 100, in raw_on flush_to_msg(serial, raw_replmsg) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\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-31 16:13:23,156 - 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-31 16:13:23,156 - mu.interface.main:943(showmessage) DEBUG: None 2021-03-31 16:13:34,980 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:13:34,981 - mu.logic:1387(quit) INFO: Quitting.

2021-03-31 16:13:34,981 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:13:34,982 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\venv.json 2021-03-31 16:13:48,126 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 16:13:48,127 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 16:13:48,127 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 16:13:48,127 - root:269(run) INFO: Language code: enGB 2021-03-31 16:13:48,127 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 16:13:48,201 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 16:13:48,450 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 16:13:48,456 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 16:13:48,459 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 16:13:48,582 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 16:13:48,583 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 16:13:48,584 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 16:13:48,744 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 16:13:49,297 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 16:13:49,484 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 16:13:49,638 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 16:13:49,828 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 16:13:50,051 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 16:13:50,186 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 16:13:50,186 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 16:13:50,186 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 16:13:50,186 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 16:13:50,187 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:13:50,250 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:13:50,250 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:13:50,251 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 16:13:50,258 - mu.logic:889(restore_session) INFO: Loaded files. 2021-03-31 16:13:50,258 - mu.logic:892(restore_session) INFO: User defined environment variables: [] 2021-03-31 16:13:50,258 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False 2021-03-31 16:13:50,300 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:13:50,300 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:13:50,593 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 16:13:51,243 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:13:51,243 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:14:14,608 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:14:20,451 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 16:14:43,581 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:14:43,594 - mu.modes.esp:214(togglefiles) INFO: Toggle filesystem on. 2021-03-31 16:14:47,788 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL. Traceback (most recent call last): File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls result = tuple(microfs.ls(self.serial)) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls out, err = execute(["import os", "print(os.listdir())"], serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute rawon(serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 100, in raw_on flush_to_msg(serial, raw_replmsg) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\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-31 16:14:47,794 - 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-31 16:14:47,794 - mu.interface.main:943(show_message) DEBUG: None 2021-03-31 16:15:00,315 - mu.interface.main:942(show_message) DEBUG: Could not find an attached Raspberry Pi Pico 2021-03-31 16:15:00,315 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again. 2021-03-31 16:15:14,905 - mu.logic:720(check_usb) INFO: circuitpython device disconnected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer Microsoft) 2021-03-31 16:15:15,316 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:15:15,316 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:15:20,768 - mu.logic:737(checkusb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:15:23,039 - root:174(excepthook) ERROR: Unrecoverable error Traceback (most recent call last): File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 750, in on_lsfail self.disable() File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 689, in disable self.microbitfs.setDisabled(True) RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted 2021-03-31 16:15:23,278 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:15:23,279 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan_\AppData\Local\python\mu\venv.json 2021-03-31 16:17:19,115 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 16:17:19,115 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 16:17:19,116 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 16:17:19,116 - root:269(run) INFO: Language code: enGB 2021-03-31 16:17:19,116 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 16:17:19,195 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 16:17:19,196 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 16:17:19,461 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 16:17:19,464 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 16:17:19,593 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 16:17:19,594 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 16:17:19,595 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 16:17:19,767 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 16:17:20,366 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 16:17:20,552 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 16:17:20,722 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 16:17:20,930 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 16:17:21,167 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 16:17:21,312 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 16:17:21,313 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 16:17:21,313 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 16:17:21,313 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 16:17:21,313 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:17:21,382 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:17:21,382 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:17:21,382 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 16:17:21,390 - mu.logic:889(restore_session) INFO: Loaded files. 2021-03-31 16:17:21,390 - mu.logic:892(restore_session) INFO: User defined environment variables: [] 2021-03-31 16:17:21,390 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False 2021-03-31 16:17:21,437 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:17:21,437 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:17:21,744 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 16:17:22,357 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:17:22,357 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:17:29,571 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:17:40,421 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:17:40,436 - mu.modes.esp:214(togglefiles) INFO: Toggle filesystem on. 2021-03-31 16:17:44,651 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL. Traceback (most recent call last): File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls result = tuple(microfs.ls(self.serial)) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls out, err = execute(["import os", "print(os.listdir())"], serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute rawon(serial) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 100, in raw_on flush_to_msg(serial, raw_replmsg) File "C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\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-31 16:17:44,655 - 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-31 16:17:44,655 - mu.interface.main:943(show_message) DEBUG: None 2021-03-31 16:18:03,965 - mu.logic:1470(selectmode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 16:18:19,093 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:18:19,094 - mu.logic:1387(quit) INFO: Quitting.

2021-03-31 16:18:19,094 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:18:19,095 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\venv.json 2021-03-31 16:18:40,480 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 16:18:40,481 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 16:18:40,481 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 16:18:40,481 - root:269(run) INFO: Language code: enGB 2021-03-31 16:18:40,481 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 16:18:40,561 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 16:18:40,821 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 16:18:40,827 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 16:18:40,830 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 16:18:40,959 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 16:18:40,960 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 16:18:40,960 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 16:18:41,151 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 16:18:41,770 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 16:18:41,961 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 16:18:42,138 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 16:18:42,361 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 16:18:42,600 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 16:18:42,744 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 16:18:42,745 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 16:18:42,745 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 16:18:42,745 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 16:18:42,745 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:18:42,816 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:18:42,817 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:18:42,817 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 16:18:42,827 - mu.logic:889(restore_session) INFO: Loaded files. 2021-03-31 16:18:42,827 - mu.logic:892(restore_session) INFO: User defined environment variables: [] 2021-03-31 16:18:42,827 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False 2021-03-31 16:18:42,870 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:18:42,870 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:18:43,171 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 16:18:43,792 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:18:43,792 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:18:46,708 - mu.logic:1523(change_mode) INFO: Workspace directory: F:\ 2021-03-31 16:18:46,709 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:18:56,926 - mu.logic:1115(get_dialog_directory) INFO: Using path for file dialog: F:\ 2021-03-31 16:19:06,673 - mu.interface.main:405(get_load_path) DEBUG: Getting load path: 2021-03-31 16:19:50,615 - mu.interface.main:970(show_confirmation) DEBUG: There is un-saved work, closing the tab will cause you to lose it. 2021-03-31 16:19:50,615 - mu.interface.main:971(show_confirmation) DEBUG: None 2021-03-31 16:19:58,741 - mu.logic:962(new) INFO: Added a new tab. 2021-03-31 16:21:31,037 - mu.logic:720(check_usb) INFO: circuitpython device disconnected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer Microsoft) 2021-03-31 16:22:04,032 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:22:44,663 - mu.modes.base:112(open) INFO: Connecting to REPL on port: COM5 2021-03-31 16:22:44,716 - mu.modes.base:130(open) INFO: Connected to REPL on port: COM5 2021-03-31 16:22:44,721 - mu.modes.base:503(add_repl) INFO: Started REPL on port: COM5 2021-03-31 16:22:44,722 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on. 2021-03-31 16:23:06,782 - mu.logic:1470(select_mode) INFO: Showing available modes: ['python', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico'] 2021-03-31 16:24:13,963 - mu.logic:1477(select_mode) INFO: New mode selected: pico 2021-03-31 16:24:13,963 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: COM5 2021-03-31 16:24:14,014 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:24:14,014 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:24:17,630 - mu.modes.esp:175(run) INFO: Running script. 2021-03-31 16:24:17,630 - mu.modes.base:112(open) INFO: Connecting to REPL on port: COM5 2021-03-31 16:24:17,684 - mu.modes.base:130(open) INFO: Connected to REPL on port: COM5 2021-03-31 16:24:17,689 - mu.modes.base:503(add_repl) INFO: Started REPL on port: COM5 2021-03-31 16:24:17,690 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on. 2021-03-31 16:24:17,690 - mu.modes.base:188(send_commands) INFO: [b'\x03', b'\x03', b'\x01', b'\x04', b'\x03', b'\x03', b'print("\n");', b'# Write your code here :-)\r', b'import board\r\r', b'dir(board)\r', b'\r', b'\x04', b'\x02'] 2021-03-31 16:24:17,690 - mu.modes.base:162(execute) INFO: Sending command b'\x03' 2021-03-31 16:24:17,697 - mu.modes.base:162(execute) INFO: Sending command b'\x03' 2021-03-31 16:24:17,711 - mu.modes.base:162(execute) INFO: Sending command b'\x01' 2021-03-31 16:24:17,732 - mu.modes.base:162(execute) INFO: Sending command b'\x04' 2021-03-31 16:24:17,740 - mu.modes.base:162(execute) INFO: Sending command b'\x03' 2021-03-31 16:24:17,745 - mu.modes.base:162(execute) INFO: Sending command b'\x03' 2021-03-31 16:24:17,761 - mu.modes.base:162(execute) INFO: Sending command b'print("\n");' 2021-03-31 16:24:17,765 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r' 2021-03-31 16:24:17,768 - mu.modes.base:162(execute) INFO: Sending command b'import board\r\r' 2021-03-31 16:24:17,770 - mu.modes.base:162(execute) INFO: Sending command b'dir(board)\r' 2021-03-31 16:24:17,772 - mu.modes.base:162(execute) INFO: Sending command b'\r' 2021-03-31 16:24:17,774 - mu.modes.base:162(execute) INFO: Sending command b'\x04' 2021-03-31 16:24:17,777 - mu.modes.base:162(execute) INFO: Sending command b'\x02' 2021-03-31 16:25:03,752 - mu.interface.main:970(show_confirmation) DEBUG: There is un-saved work, exiting the application will cause you to lose it. 2021-03-31 16:25:03,753 - mu.interface.main:971(show_confirmation) DEBUG: None 2021-03-31 16:25:18,550 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: COM5 2021-03-31 16:25:18,553 - mu.interface.main:942(show_message) DEBUG: Could not find an attached device. 2021-03-31 16:25:18,553 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

It must have a version of MicroPython (or CircuitPython) flashed onto it before the REPL will work.

Finally, press the device's reset button and wait a few seconds before trying again. 2021-03-31 16:25:23,085 - mu.logic:720(checkusb) INFO: circuitpython device disconnected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer Microsoft) 2021-03-31 16:25:24,965 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:25:24,966 - mu.logic:1387(quit) INFO: Quitting.

2021-03-31 16:25:24,966 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\session.json 2021-03-31 16:25:24,967 - mu.settings:169(save) DEBUG: Saving to C:\Users\Alan\AppData\Local\python\mu\venv.json 2021-03-31 16:35:54,359 - root:266(run) INFO:


Starting Mu 1.1.0.beta.3 2021-03-31 16:35:54,359 - root:267(run) INFO: unameresult(system='Windows', node='HomePC', release='10', version='10.0.19041', machine='AMD64', processor='AMD64 Family 23 Model 17 Stepping 0, AuthenticAMD') 2021-03-31 16:35:54,360 - root:268(run) INFO: Python path: ['C:\Users\Alan\AppData\Local\Programs\Mu Editor', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\python38.zip', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\DLLs', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\setuptools-49.6.0-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\pip-20.2.2-py3.8.egg', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\win32\lib', 'C:\Users\Alan\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\Pythonwin', 'C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\IPython\extensions'] 2021-03-31 16:35:54,360 - root:269(run) INFO: Language code: enGB 2021-03-31 16:35:54,360 - mu.settings:220(load) WARNING: No settings file found at C:\Users\Alan\AppData\Local\python\mu\settings.json; skipping 2021-03-31 16:35:54,441 - mu.virtual_environment:435(ensure_and_create) INFO: Added log handler. 2021-03-31 16:35:54,715 - mu.virtual_environment:439(ensure_and_create) DEBUG: Checking virtual environment; attempt mu-editor/mu#1. 2021-03-31 16:35:54,721 - mu.virtual_environment:489(ensurepath) INFO: Virtual Environment found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543 2021-03-31 16:35:54,724 - mu.virtual_environment:502(ensureinterpreter) INFO: Interpreter found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\python.exe 2021-03-31 16:35:54,853 - mu.virtual_environment:535(ensure_interpreter_version) INFO: Both interpreters at version 38 2021-03-31 16:35:54,853 - mu.virtual_environment:567(ensurepip) INFO: Pip found at: C:\Users\Alan\AppData\Local\python\mu\mu_venv-38-20210331-154543\scripts\pip.exe 2021-03-31 16:35:54,854 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: pgzero 2021-03-31 16:35:55,022 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: flask 2021-03-31 16:35:55,629 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: serial 2021-03-31 16:35:55,830 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: qtconsole 2021-03-31 16:35:55,998 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: nudatus 2021-03-31 16:35:56,199 - mu.virtual_environment:549(ensure_key_modules) DEBUG: Verifying import of: esptool 2021-03-31 16:35:56,437 - mu.virtual_environment:451(ensure_andcreate) INFO: Virtual environment already exists. 2021-03-31 16:35:56,584 - mu.logic:758(init) INFO: Setting up editor. 2021-03-31 16:35:56,584 - mu.logic:778(init) INFO: Log directory: C:\Users\Alan\AppData\Local\python\mu\Logs 2021-03-31 16:35:56,584 - mu.logic:779(init) INFO: Data directory: C:\Users\Alan_\AppData\Local\python\mu 2021-03-31 16:35:56,585 - mu.logic:793(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico 2021-03-31 16:35:56,585 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:35:56,658 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:35:56,658 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:35:56,658 - mu.logic:867(restoresession) DEBUG: <SessionSettings from C:\Users\Alan\AppData\Local\python\mu\session.json> 2021-03-31 16:35:56,666 - mu.logic:889(restore_session) INFO: Loaded files. 2021-03-31 16:35:56,666 - mu.logic:892(restore_session) INFO: User defined environment variables: [] 2021-03-31 16:35:56,666 - mu.logic:897(restore_session) INFO: Minify scripts on micro:bit? False 2021-03-31 16:35:56,712 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:35:56,712 - mu.logic:1523(changemode) INFO: Workspace directory: C:\Users\Alan\mu_code 2021-03-31 16:35:57,020 - mu.logic:943(restore_session) INFO: Starting with blank file. 2021-03-31 16:35:57,629 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device. 2021-03-31 16:35:57,629 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode? 2021-03-31 16:36:24,295 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft') 2021-03-31 16:36:44,114 - mu.modes.base:112(open) INFO: Connecting to REPL on port: COM5 2021-03-31 16:36:44,168 - mu.modes.base:130(open) INFO: Connected to REPL on port: COM5 2021-03-31 16:36:44,174 - mu.modes.base:503(add_repl) INFO: Started REPL on port: COM5 2021-03-31 16:36:44,175 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on. 2021-03-31 16:36:44,554 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: COM5 2021-03-31 16:36:44,577 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off. 2021-03-31 16:36:47,002 - mu.modes.base:112(open) INFO: Connecting to REPL on port: COM5 2021-03-31 16:36:47,056 - mu.modes.base:130(open) INFO: Connected to REPL on port: COM5 2021-03-31 16:36:47,061 - mu.modes.base:503(add_repl) INFO: Started REPL on port: COM5 2021-03-31 16:36:47,061 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on. 2021-03-31 16:37:24,282 - mu.modes.base:61(get_defaultworkspace) INFO: Using workspace C:\Users\Alan\mu_code from settings file 2021-03-31 16:37:24,283 - mu.logic:1115(get_dialogdirectory) INFO: Using path for file dialog: C:\Users\Alan\mu_code 2021-03-31 16:37:41,985 - mu.interface.main:405(get_load_path) DEBUG: Getting load path: F:/code.py 2021-03-31 16:37:41,986 - mu.logic:978(_load) INFO: Loading script from: F:/code.py 2021-03-31 16:37:41,986 - mu.logic:316(read_and_decode) DEBUG: Trying to decode with utf-8 2021-03-31 16:37:41,986 - mu.logic:319(read_and_decode) INFO: Decoded with utf-8 2021-03-31 16:37:41,987 - mu.logic:332(read_and_decode) DEBUG: Detected newline '\n' 2021-03-31 16:37:41,987 - mu.logic:1077(_load) DEBUG: """ NeoPixel example for Pico. Displays a rainbow on the NeoPixels.

REQUIRED HARDWARE:

Update this to match the number of NeoPixel LEDs connected to your board.

num_pixels = 30

pixels = neopixel.NeoPixel(board.GP0, num_pixels, auto_write=F

carlosperate commented 3 years ago

Merging another crash report here to track this issue in a single location: https://github.com/mu-editor/crash-reports/issues/184

REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0.beta.4 Locale: es_BO Platform: Windows 10 10.0.19041 AMD64

Traceback (most recent call last):
  File "C:\Users\Geff\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 754, in on_ls_fail
    self.disable()
  File "C:\Users\Geff\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 693, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

Thank you very much for the crash report @zuna-boop! If you could attach your log file to this ticket it would be quite useful too, as that will help us gather more information on the issue. The log file should be located in: %LOCALAPPDATA%\python\mu\Logs

AlanLL commented 3 years ago

Logs as requested.

Regards AlanLL

From: Carlos Pereira Atencio @.*** Sent: 05 May 2021 09:53 To: mu-editor/mu Cc: AlanLL; Mention Subject: Re: [mu-editor/mu] Crash Report - Tried to use FileSystemPane.microbit_fs (MicroPythonDeviceFileList) after deletion (#1428)

Merging another crash report here to track this issue in a single location: mu-editor/crash-reports#184https://github.com/mu-editor/crash-reports/issues/184

REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0.beta.4 Locale: es_BO Platform: Windows 10 10.0.19041 AMD64

Traceback (most recent call last):

File "C:\Users\Geff\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 754, in on_ls_fail

self.disable()

File "C:\Users\Geff\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 693, in disable

self.microbit_fs.setDisabled(True)

RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

Thank you very much for the crash report @zuna-boophttps://github.com/zuna-boop! If you could attach your log file to this ticket it would be quite useful too, as that will help us gather more information on the issue. The log file should be located in: %LOCALAPPDATA%\python\mu\Logs

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/mu-editor/crash-reports/issues/185, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIGTR6UCXW3CYVSYO72RJHTTMEBOTANCNFSM42E4NIXA.

carlosperate commented 3 years ago

Thank you for the log again @AlanLL. Having a look at it we can find this as the interesting part:

2021-03-31 16:14:43,594 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-03-31 16:14:47,788 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute
    raw_on(serial)
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 100, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\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-31 16:14:47,794 - 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-31 16:14:47,794 - mu.interface.main:943(show_message) DEBUG: None
2021-03-31 16:15:00,315 - mu.interface.main:942(show_message) DEBUG: Could not find an attached Raspberry Pi Pico
2021-03-31 16:15:00,315 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again.
2021-03-31 16:15:14,905 - mu.logic:720(check_usb) INFO: circuitpython device disconnected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer Microsoft)
2021-03-31 16:15:15,316 - mu.interface.main:970(show_confirmation) DEBUG: Detected new Adafruit CircuitPlayground device.
2021-03-31 16:15:15,316 - mu.interface.main:971(show_confirmation) DEBUG: Would you like to change Mu to the CircuitPython mode?
2021-03-31 16:15:20,768 - mu.logic:737(check_usb) INFO: circuitpython device connected on port: COM5(VID: 0x239A, PID: 0x80F4, manufacturer: 'Microsoft')
2021-03-31 16:15:23,039 - root:174(excepthook) ERROR: Unrecoverable error
Traceback (most recent call last):
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 750, in on_ls_fail
    self.disable()
  File "C:\Users\Alan_\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 689, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

It looks like in the Raspberry Pico (or ESP, hard to tell) mode the file button was pressed, but Mu could not enter the raw-REPL. Then the pico with CircuitPython was detected and a few milliseconds later Mu crashes with the wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted error.

carlosperate commented 3 years ago

Merging issue here https://github.com/mu-editor/crash-reports/issues/183:

mu.log mu.log.2021-05-22.log

REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0.beta.4 Locale: en_US Platform: Windows 10 10.0.19041 AMD64

Traceback (most recent call last):
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 754, in on_ls_fail
    self.disable()
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 693, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

This is the interesting part from the logs:

2021-05-22 16:25:17,996 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-05-22 16:25:23,434 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute
    raw_on(serial)
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 100, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\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-05-22 16:25:23,439 - 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-05-22 16:25:23,439 - mu.interface.main:943(show_message) DEBUG: None
2021-05-22 16:25:46,506 - mu.interface.main:942(show_message) DEBUG: Could not find an attached ESP8266/ESP32
2021-05-22 16:25:46,506 - mu.interface.main:943(show_message) DEBUG: Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again.
2021-05-22 16:26:11,511 - mu.logic:720(check_usb) INFO: esp device disconnected on port: COM4(VID: 0x10C4, PID: 0xEA60, manufacturer Silicon Laboratories)
2021-05-22 16:26:11,693 - mu.logic:737(check_usb) INFO: esp device connected on port: COM4(VID: 0x10C4, PID: 0xEA60, manufacturer: 'Silicon Laboratories')
2021-05-22 16:26:13,289 - root:173(excepthook) ERROR: Unrecoverable error
Traceback (most recent call last):
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 754, in on_ls_fail
    self.disable()
  File "C:\Users\gilbe\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 693, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

Looks like it first tried to open the ESP model files panel, it could not entre the raw-REPL mode and asked the user to unplug and replug the device. Then after doing that Mu crashes with the wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted error.

carlosperate commented 3 years ago

So both logs show a very similar set of steps. We might be able to replicate this by having a device that cannot get to the raw-REPL and then disconnecting it and reconnecting it to the computer.

carlosperate commented 3 years ago

Merging issue https://github.com/mu-editor/crash-reports/issues/182 here:

errorlog.txt REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0.beta.5 Locale: en_NL Platform: Windows 10 10.0.19041 AMD64

Traceback (most recent call last):
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 762, in on_ls_fail
    self.disable()
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 701, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

This concerns an esp8266 put the micropyton bin first with the esptool and ubuntu and thereafter with windows and the MU tool. Mu works fine with esp32 ( micropyton) and with esp32S2 circuitpython. esp8266 REPL produces garbage . On Ubuntu the result (Thonny) is oke.

From the log:

2021-09-09 17:44:00,463 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off.
2021-09-09 17:44:01,929 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-09-09 17:44:04,051 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\modes\base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 139, in execute
    raw_on(serial)
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\contrib\microfs.py", line 91, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\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-09-09 17:44:04,064 - mu.interface.main:1024(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-09-09 17:44:04,064 - mu.interface.main:1025(show_message) DEBUG: None
2021-09-09 17:44:15,028 - mu.interface.main:1024(show_message) DEBUG: Could not find an attached ESP8266/ESP32
2021-09-09 17:44:15,028 - mu.interface.main:1025(show_message) DEBUG: Please make sure the device is plugged into this computer.

The device must have MicroPython flashed onto it before the file system will work.

Finally, press the device's reset button and wait a few seconds before trying again.
2021-09-09 17:44:23,386 - mu.logic:720(check_usb) INFO: esp device disconnected on port: COM5(VID: 0x10C4, PID: 0xEA60, manufacturer Silicon Labs)
2021-09-09 17:44:24,054 - mu.logic:737(check_usb) INFO: esp device connected on port: COM5(VID: 0x10C4, PID: 0xEA60, manufacturer: 'Silicon Labs')
2021-09-09 17:44:24,626 - root:173(excepthook) ERROR: Unrecoverable error
Traceback (most recent call last):
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 762, in on_ls_fail
    self.disable()
  File "C:\Users\Jan_J\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 701, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted
carlosperate commented 2 years ago

Merging https://github.com/mu-editor/crash-reports/issues/179 here:

REMEMBER TO ATTACH YOUR LOG FILE

Version: 1.1.0b7 Locale: de_DE Platform: Windows 10 10.0.19043 AMD64

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 760, in on_ls_fail
    self.disable()
  File "C:\Users\Administrator\AppData\Local\Programs\Mu Editor\Python\lib\site-packages\mu\interface\panes.py", line 699, in disable
    self.microbit_fs.setDisabled(True)
RuntimeError: wrapped C/C++ object of type MicroPythonDeviceFileList has been deleted

I have the problem to access on files on ESP32-WROOM with MuEditor in microPython from Windows. When I work with ESP32 from Raspberry then all is okay. Thanks for hint in advance Best regards Jurgen mu.log

carlosperate commented 2 years ago

Hi everyone,

I believe this issue has been fixed already, but we haven't done a release yet. Would you be able to try the latest test installer to check if that works for you?

It'd help if you could uninstall the previous version of Mu before installing this one, as it will be listed as also being v1.1.1.

To download it go to this link while logged into GitHub (otherwise the download link doesn't appear), and download the mu-editor-Windows-... file from the bottom of the page: https://github.com/mu-editor/mu/actions/runs/2697356255

image
carlosperate commented 1 year ago

Thanks for the report @AlanLL and all your help debugging this issue!

The new Mu Editor v1.2.0 released yesterday fixes this issue, if you download the latest installer for your operating system from the Mu website it should now work: https://codewith.mu/en/download

I'll close this crash report as fixed, but if you encounter this or any other crash with v1.2.0 please open a new crash report and we'll be able to look into that issue 👍

Thanks again!