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

Error running script on ESP device #1961

Closed KorkhovPavel closed 2 years ago

KorkhovPavel commented 2 years ago

What were you trying to do?

Run script

What steps did you take to trigger the issue?

Run script:

from machine import Pin
import time

led_pin = Pin(2,Pin.OUT)

while True:
    led_pin.on()
    time.sleep(1)
    led_pin.off()

    time.sleep(1)

What did you expect to happen?

blinking

What actually happened?

nothing

in the console: s$�l��<��l�< �l�c|����;�c�c��gn�dog���c8�lrl;lx�o�

Operating System Version

Ubuntu 20.04.3 LTS

Mu Version

mu-editor==1.1.0b7

Other Info

installed as indicated here: https://codewith.mu/en/howto/1.1/install_with_python

thanks for the help

Editor Log

2021-12-29 00:03:54,885 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:03:54,885 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:03:54,892 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:03:54,892 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:03:54,892 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:03:55,035 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:03:55,036 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:03:55,036 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:03:55,036 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:03:55,036 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:03:55,062 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:03:55,062 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:03:55,062 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:03:55,062 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:03:55,062 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:03:55,085 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:03:55,086 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:03:55,086 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:03:55,220 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:03:55,220 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:03:55,220 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:03:55,504 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:03:55,504 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:03:55,504 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:03:55,525 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:03:55,526 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:03:55,526 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:03:55,564 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:03:55,565 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:03:55,565 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:03:55,570 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:03:55,570 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:03:55,570 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:03:55,571 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:03:55,571 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:03:55,590 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:03:55,590 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:03:55,590 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:03:55,594 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:03:55,595 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:03:55,595 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:03:55,613 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:03:55,613 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:03:55,651 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:03:56,586 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:04:56,113 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:04:56,114 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:04:56,116 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:04:56,121 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:04:56,121 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:04:56,121 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:04:56,121 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:04:56,135 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:04:56,138 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:04:56,140 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:04:56,143 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:04:56,145 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:04:56,148 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:04:56,150 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:04:56,153 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:04:56,155 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:04:56,158 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:04:56,161 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:04:56,163 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:04:56,166 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:04:56,169 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:04:56,171 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:04:56,174 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:04:56,177 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:04:56,179 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1\r'
2021-12-29 00:04:56,182 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:04:56,185 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:04:56,187 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:05:02,256 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:05:02,257 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:05:02,257 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:05:02,570 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:05:02,570 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:05:02,570 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:05:30,489 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/ttyUSB0
2021-12-29 00:05:30,490 - mu.interface.main:1033(show_message) DEBUG: Could not find an attached device.
2021-12-29 00:05:30,490 - mu.interface.main:1034(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-12-29 00:05:46,531 - mu.logic:730(check_usb) INFO: esp device disconnected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer 1a86)
2021-12-29 00:05:47,487 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:06:28,575 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:06:28,575 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:06:28,582 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:06:28,582 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:06:28,582 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:06:28,713 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:06:28,714 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:06:28,717 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:06:28,717 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:06:28,718 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:06:28,746 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:06:28,746 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:06:28,747 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:06:28,749 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:06:28,749 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:06:28,774 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:06:28,774 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:06:28,774 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:06:28,940 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:06:28,940 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:06:28,940 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:06:29,224 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:06:29,224 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:06:29,224 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:06:29,250 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:06:29,250 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:06:29,250 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:06:29,290 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:06:29,290 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:06:29,290 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:06:29,295 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:06:29,295 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:06:29,295 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:06:29,296 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:06:29,296 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:06:29,319 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:06:29,319 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:06:29,319 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:06:29,324 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:06:29,324 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:06:29,324 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:06:29,351 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:06:29,351 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:06:29,393 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:06:30,407 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:06:31,456 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:06:31,456 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:06:31,457 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:06:31,710 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:06:31,711 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:06:31,711 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:07:35,687 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:07:35,688 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:07:35,691 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:07:35,696 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:07:35,696 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:07:35,696 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1)\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:07:35,696 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:35,757 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:35,760 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:07:35,762 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:07:35,765 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:35,767 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:35,769 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:07:35,771 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:07:35,774 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:07:35,776 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:07:35,778 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:35,780 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:07:35,782 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:35,785 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:07:35,787 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:07:35,789 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:07:35,791 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:07:35,794 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:35,796 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:07:35,799 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:35,801 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:07:35,804 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:07:49,645 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/ttyUSB0
2021-12-29 00:07:49,648 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off.
2021-12-29 00:07:51,857 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:07:51,858 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:07:51,860 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:07:51,863 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:07:51,863 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:07:51,863 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1)\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:07:51,863 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:51,897 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:51,899 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:07:51,901 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:07:51,904 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:51,906 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:07:51,908 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:07:51,911 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:07:51,913 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:07:51,915 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:07:51,917 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:51,919 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:07:51,922 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:51,924 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:07:51,926 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:07:51,929 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:07:51,931 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:07:51,933 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:51,935 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:07:51,938 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:07:51,940 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:07:51,943 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:13:11,812 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:13:11,812 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:13:11,813 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:13:12,082 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:13:12,082 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:13:12,082 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:14:12,674 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:17:56,924 - mu.modes.base:136(close) INFO: Closing connection to REPL on port: /dev/ttyUSB0
2021-12-29 00:17:56,927 - mu.modes.base:471(toggle_repl) INFO: Toggle REPL off.
2021-12-29 00:18:54,013 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:18:54,013 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:18:54,014 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:18:54,273 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:18:54,273 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:18:54,273 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:19:18,402 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:19:22,129 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:19:22,130 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:19:22,132 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:19:22,136 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:19:22,136 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:19:22,136 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1)\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:19:22,137 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:19:22,160 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:19:22,162 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:19:22,165 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:19:22,167 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:19:22,169 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:19:22,171 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:19:22,174 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:19:22,176 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:19:22,178 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:19:22,181 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:19:22,183 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:19:22,186 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:19:22,188 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:19:22,191 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:19:22,193 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:19:22,195 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:19:22,198 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:19:22,200 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:19:22,203 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:19:22,205 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:19:22,208 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:19:27,117 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:19:27,118 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:19:27,118 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:19:27,385 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:19:27,386 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:19:27,386 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:22:44,190 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:22:46,394 - mu.interface.main:1061(show_confirmation) DEBUG: There is un-saved work, exiting the application will cause you to lose it.
2021-12-29 00:22:46,394 - mu.interface.main:1062(show_confirmation) DEBUG: None
2021-12-29 00:22:48,080 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:22:48,081 - mu.logic:1407(quit) INFO: Quitting.

2021-12-29 00:22:48,081 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:22:48,082 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:33:12,603 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:33:12,603 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:33:12,612 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:33:12,612 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:33:12,612 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:33:12,790 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:33:12,791 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:33:12,791 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:33:12,791 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:33:12,791 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:33:12,822 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:33:12,822 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:33:12,822 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:33:12,822 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:33:12,822 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:33:12,850 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:33:12,850 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:33:12,850 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:33:13,065 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:33:13,065 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:33:13,065 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:33:13,419 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:33:13,419 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:33:13,419 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:33:13,444 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:33:13,444 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:33:13,444 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:33:13,487 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:33:13,488 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:33:13,489 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:33:13,493 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:33:13,493 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:33:13,493 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:33:13,493 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:33:13,493 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:33:13,513 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:33:13,513 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:33:13,513 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:33:13,518 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:33:13,518 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:33:13,518 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:33:13,541 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:33:13,541 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:33:13,591 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:33:14,513 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:33:18,362 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:33:18,374 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-12-29 00:33:20,409 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/modes/base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 139, in execute
    raw_on(serial)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 91, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/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-12-29 00:33:20,416 - mu.interface.main:1033(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-12-29 00:33:20,416 - mu.interface.main:1034(show_message) DEBUG: None
2021-12-29 00:33:26,497 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:33:26,498 - mu.logic:1407(quit) INFO: Quitting.

2021-12-29 00:33:26,498 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:33:26,499 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:34:32,899 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:34:32,899 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:34:32,907 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:34:32,907 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:34:32,907 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:34:33,050 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:34:33,051 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:34:33,051 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:34:33,051 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:34:33,051 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:34:33,080 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:34:33,080 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:34:33,080 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:34:33,080 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:34:33,080 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:34:33,104 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:34:33,104 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:34:33,104 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:34:33,253 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:34:33,253 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:34:33,253 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:34:33,567 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:34:33,567 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:34:33,567 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:34:33,591 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:34:33,591 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:34:33,591 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:34:33,634 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:34:33,635 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:34:33,635 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:34:33,640 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:34:33,641 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:34:33,641 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:34:33,641 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:34:33,641 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:34:33,662 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:34:33,662 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:34:33,662 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:34:33,666 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:34:33,667 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:34:33,667 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:34:33,690 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:34:33,690 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:34:33,735 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:34:34,666 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:34:51,182 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:34:51,182 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:34:51,185 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:34:51,189 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:34:51,189 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:34:51,189 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1)\r', b'\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:34:51,189 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:34:51,231 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:34:51,234 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:34:51,236 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:34:51,238 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:34:51,241 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:34:51,243 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:34:51,245 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:34:51,248 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:34:51,250 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:34:51,253 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:34:51,255 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:34:51,257 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:34:51,259 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:34:51,261 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:34:51,264 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:34:51,267 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:34:51,269 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:34:51,271 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:34:51,274 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:34:51,276 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:34:51,278 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:34:51,281 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:34:54,002 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:34:54,002 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:34:54,002 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:34:54,265 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:34:54,265 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:34:54,266 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:35:41,613 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:35:44,262 - mu.interface.main:1061(show_confirmation) DEBUG: There is un-saved work, exiting the application will cause you to lose it.
2021-12-29 00:35:44,263 - mu.interface.main:1062(show_confirmation) DEBUG: None
2021-12-29 00:35:45,851 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:35:45,852 - mu.logic:1407(quit) INFO: Quitting.

2021-12-29 00:35:45,852 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:35:45,856 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:36:20,238 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:36:20,238 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:36:20,244 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:36:20,244 - root:272(run) INFO: Python path: ['/home/psg/.local/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages', '/home/psg/.local/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:36:20,244 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:36:20,381 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:36:20,382 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:36:20,382 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:36:20,382 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:36:20,382 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:36:20,407 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:36:20,407 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:36:20,408 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:36:20,408 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:36:20,408 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:36:20,431 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:36:20,431 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:36:20,431 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:36:20,578 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:36:20,578 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:36:20,578 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:36:20,886 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:36:20,886 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:36:20,886 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:36:20,911 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:36:20,911 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:36:20,911 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:36:20,953 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:36:20,953 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:36:20,953 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:36:20,957 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:36:20,957 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:36:20,958 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:36:20,958 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:36:20,958 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:36:20,980 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:36:20,981 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:36:20,981 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:36:20,986 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:36:20,986 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:36:20,986 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:36:21,005 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:36:21,005 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:36:21,054 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:36:21,996 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:36:24,841 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:36:24,852 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-12-29 00:36:26,887 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "/home/psg/.local/lib/python3.8/site-packages/mu/modes/base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "/home/psg/.local/lib/python3.8/site-packages/mu/contrib/microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "/home/psg/.local/lib/python3.8/site-packages/mu/contrib/microfs.py", line 139, in execute
    raw_on(serial)
  File "/home/psg/.local/lib/python3.8/site-packages/mu/contrib/microfs.py", line 91, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "/home/psg/.local/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-12-29 00:36:26,893 - mu.interface.main:1033(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-12-29 00:36:26,894 - mu.interface.main:1034(show_message) DEBUG: None
2021-12-29 00:36:58,924 - mu.modes.esp:218(toggle_files) INFO: Toggle filesystem off.
2021-12-29 00:37:00,001 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:37:00,002 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:37:00,003 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:37:00,005 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:37:00,005 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:37:00,005 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1)\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:37:00,005 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:37:00,042 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:37:00,045 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:37:00,048 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:37:00,050 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:37:00,052 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:37:00,055 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:37:00,057 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:37:00,059 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:37:00,062 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:37:00,064 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:37:00,066 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:37:00,069 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:37:00,071 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:37:00,073 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:37:00,075 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:37:00,078 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:37:00,080 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:37:00,082 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:37:00,084 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:37:00,086 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:37:00,089 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:37:05,709 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:37:05,709 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:37:05,709 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:37:05,974 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:37:05,974 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:37:05,974 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:41:42,547 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:41:42,547 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:41:42,554 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:41:42,554 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:41:42,554 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:41:42,694 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:41:42,695 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:41:42,695 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:41:42,695 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:41:42,695 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:41:42,722 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:41:42,722 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:41:42,722 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:41:42,722 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:41:42,723 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:41:42,748 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:41:42,749 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:41:42,749 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:41:42,912 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:41:42,912 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:41:42,912 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:41:43,234 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:41:43,235 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:41:43,235 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:41:43,259 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:41:43,259 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:41:43,259 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:41:43,299 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:41:43,299 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:41:43,299 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:41:43,304 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:41:43,304 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:41:43,304 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:41:43,304 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:41:43,304 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:41:43,324 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:41:43,324 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:41:43,324 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:41:43,328 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:41:43,328 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:41:43,328 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:41:43,346 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:41:43,346 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:41:43,390 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:41:44,442 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:41:45,622 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:41:45,633 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-12-29 00:41:45,634 - mu.modes.base:674(on_start) ERROR: [Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Устройство или ресурс занято: '/dev/ttyUSB0'
Traceback (most recent call last):
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
OSError: [Errno 16] Устройство или ресурс занято: '/dev/ttyUSB0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/modes/base.py", line 666, in on_start
    self.serial = Serial(
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/serial/serialutil.py", line 244, in __init__
    self.open()
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Устройство или ресурс занято: '/dev/ttyUSB0'
2021-12-29 00:41:45,647 - mu.interface.main:1033(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-12-29 00:41:45,647 - mu.interface.main:1034(show_message) DEBUG: None
2021-12-29 00:41:49,199 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:41:49,200 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:41:49,200 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:41:49,477 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:41:49,477 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:41:49,477 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:41:54,003 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:41:55,682 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:41:55,683 - mu.logic:1407(quit) INFO: Quitting.

2021-12-29 00:41:55,683 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:41:55,687 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:42:45,583 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:42:45,583 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:42:45,590 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:42:45,590 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:42:45,590 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:42:45,733 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:42:45,734 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:42:45,734 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:42:45,734 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:42:45,734 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:42:45,761 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:42:45,761 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:42:45,761 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:42:45,761 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:42:45,761 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:42:45,785 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:42:45,785 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:42:45,785 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:42:45,945 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:42:45,945 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:42:45,945 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:42:46,319 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:42:46,320 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:42:46,320 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:42:46,343 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:42:46,343 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:42:46,343 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:42:46,383 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:42:46,383 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:42:46,383 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:42:46,387 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:42:46,388 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:42:46,388 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:42:46,388 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:42:46,388 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:42:46,408 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:42:46,408 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:42:46,408 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:42:46,412 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:42:46,412 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:42:46,412 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:42:46,434 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:42:46,434 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:42:46,475 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:42:47,501 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:42:48,854 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:42:48,854 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:42:48,855 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:42:49,141 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:42:49,141 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:42:49,141 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:45:23,811 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:45:26,206 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:45:26,207 - mu.logic:1407(quit) INFO: Quitting.

2021-12-29 00:45:26,207 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:45:26,211 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:45:47,560 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:45:47,561 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:45:47,568 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:45:47,568 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:45:47,568 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:45:47,721 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:45:47,721 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:45:47,722 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:45:47,722 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:45:47,722 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:45:47,750 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:45:47,750 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:45:47,750 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:45:47,750 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:45:47,750 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:45:47,777 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:45:47,777 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:45:47,777 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:45:47,938 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:45:47,938 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:45:47,938 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:45:48,265 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:45:48,266 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:45:48,266 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:45:48,290 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:45:48,290 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:45:48,290 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:45:48,331 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:45:48,331 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:45:48,331 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:45:48,336 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:45:48,336 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:45:48,336 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:45:48,336 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:45:48,336 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:45:48,357 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:45:48,358 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:45:48,358 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:45:48,363 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:45:48,363 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:45:48,363 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:45:48,383 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:45:48,383 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:45:48,422 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:45:49,452 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:45:50,390 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:45:50,397 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-12-29 00:45:52,438 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/modes/base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 139, in execute
    raw_on(serial)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 91, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/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-12-29 00:45:52,489 - mu.interface.main:1033(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-12-29 00:45:52,489 - mu.interface.main:1034(show_message) DEBUG: None
2021-12-29 00:45:59,330 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:45:59,331 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:45:59,331 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:45:59,578 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:45:59,578 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:45:59,579 - mu.virtual_environment:931(installed_packages) INFO: []
2021-12-29 00:46:29,144 - mu.logic:1468(show_admin) INFO: No admin settings changed.
2021-12-29 00:46:41,143 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:46:41,143 - mu.logic:1407(quit) INFO: Quitting.

2021-12-29 00:46:41,143 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/session.json
2021-12-29 00:46:41,145 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:47:01,047 - root:269(run) INFO: 

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

Starting Mu 1.1.0b7
2021-12-29 00:47:01,048 - root:270(run) INFO: uname_result(system='Linux', node='psg-HP-Laptop-14s-dq1xxx', release='5.11.0-43-generic', version='#47~20.04.2-Ubuntu SMP Mon Dec 13 11:06:56 UTC 2021', machine='x86_64', processor='x86_64')
2021-12-29 00:47:01,059 - root:271(run) INFO: Platform: Linux-5.11.0-43-generic-x86_64-with-glibc2.29
2021-12-29 00:47:01,059 - root:272(run) INFO: Python path: ['/home/psg/PycharmProjects/Wem0s_d1_mini/venv/bin', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages', '/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/IPython/extensions']
2021-12-29 00:47:01,059 - root:273(run) INFO: Language code: ru_RU
2021-12-29 00:47:01,269 - mu.virtual_environment:585(ensure_and_create) INFO: Added log handler.
2021-12-29 00:47:01,270 - mu.virtual_environment:596(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2021-12-29 00:47:01,270 - mu.virtual_environment:685(ensure_path) INFO: Virtual Environment found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:47:01,271 - mu.virtual_environment:698(ensure_interpreter) INFO: Interpreter found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python
2021-12-29 00:47:01,271 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2021-12-29 00:47:01,314 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 38
2021-12-29 00:47:01,314 - mu.virtual_environment:730(ensure_interpreter_version) INFO: Both interpreters at version 38
2021-12-29 00:47:01,317 - mu.virtual_environment:759(ensure_pip) INFO: Pip found at: /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip
2021-12-29 00:47:01,318 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: pgzero
2021-12-29 00:47:01,318 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2021-12-29 00:47:01,354 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:47:01,354 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: flask
2021-12-29 00:47:01,354 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2021-12-29 00:47:01,603 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:47:01,603 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2021-12-29 00:47:01,604 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2021-12-29 00:47:02,226 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:47:02,226 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2021-12-29 00:47:02,227 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2021-12-29 00:47:02,272 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:47:02,272 - mu.virtual_environment:742(ensure_key_modules) DEBUG: Verifying import of: esptool
2021-12-29 00:47:02,272 - mu.virtual_environment:429(run_subprocess) INFO: Running ('/home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/python', '-c', 'import esptool') with kwargs {'shell': False}
2021-12-29 00:47:02,349 - mu.virtual_environment:441(run_subprocess) DEBUG: Process returned 0; output: 
2021-12-29 00:47:02,349 - mu.virtual_environment:628(ensure_and_create) INFO: Valid virtual environment found at /home/psg/.local/share/mu/mu_venv-38-20211228-155212
2021-12-29 00:47:02,352 - mu.settings:169(save) DEBUG: Saving to /home/psg/.local/share/mu/venv.json
2021-12-29 00:47:02,360 - mu.logic:768(__init__) INFO: Setting up editor.
2021-12-29 00:47:02,361 - mu.logic:789(__init__) INFO: Log directory: /home/psg/.cache/mu/log
2021-12-29 00:47:02,361 - mu.logic:790(__init__) INFO: Data directory: /home/psg/.local/share/mu
2021-12-29 00:47:02,361 - mu.logic:804(setup) INFO: Available modes: python, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2021-12-29 00:47:02,361 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:47:02,399 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:47:02,400 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:47:02,400 - mu.logic:878(restore_session) DEBUG: <SessionSettings from /home/psg/.local/share/mu/session.json>
2021-12-29 00:47:02,409 - mu.logic:900(restore_session) INFO: Loaded files.
2021-12-29 00:47:02,409 - mu.logic:906(restore_session) INFO: User defined environment variables: {}
2021-12-29 00:47:02,409 - mu.logic:911(restore_session) INFO: Minify scripts on micro:bit? False
2021-12-29 00:47:02,442 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:47:02,442 - mu.logic:1549(change_mode) INFO: Workspace directory: /home/psg/mu_code
2021-12-29 00:47:02,514 - mu.logic:962(restore_session) INFO: Starting with blank file.
2021-12-29 00:47:03,548 - mu.logic:747(check_usb) INFO: esp device connected on port: /dev/ttyUSB0(VID: 0x1A86, PID: 0x7523, manufacturer: '1a86')
2021-12-29 00:47:06,207 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /home/psg/mu_code from settings file
2021-12-29 00:47:06,213 - mu.modes.esp:214(toggle_files) INFO: Toggle filesystem on.
2021-12-29 00:47:08,245 - mu.modes.base:686(ls) ERROR: Could not enter raw REPL.
Traceback (most recent call last):
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/modes/base.py", line 683, in ls
    result = tuple(microfs.ls(self.serial))
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 185, in ls
    out, err = execute(["import os", "print(os.listdir())"], serial)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 139, in execute
    raw_on(serial)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/lib/python3.8/site-packages/mu/contrib/microfs.py", line 91, in raw_on
    flush_to_msg(serial, raw_repl_msg)
  File "/home/psg/PycharmProjects/Wem0s_d1_mini/venv/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-12-29 00:47:08,249 - mu.interface.main:1033(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-12-29 00:47:08,249 - mu.interface.main:1034(show_message) DEBUG: None
2021-12-29 00:49:25,282 - mu.modes.esp:218(toggle_files) INFO: Toggle filesystem off.
2021-12-29 00:49:26,336 - mu.modes.esp:175(run) INFO: Running script.
2021-12-29 00:49:26,337 - mu.modes.base:112(open) INFO: Connecting to REPL on port: /dev/ttyUSB0
2021-12-29 00:49:26,340 - mu.modes.base:130(open) INFO: Connected to REPL on port: /dev/ttyUSB0
2021-12-29 00:49:26,344 - mu.modes.base:503(add_repl) INFO: Started REPL on port: /dev/ttyUSB0
2021-12-29 00:49:26,345 - mu.modes.base:474(toggle_repl) INFO: Toggle REPL on.
2021-12-29 00:49:26,345 - 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'from machine import Pin\r', b'import time\r', b'\r', b'led_pin = Pin(2,Pin.OUT)\r', b'\r', b'while True:\r', b'    led_pin.on()\r', b'    time.sleep(1)\r', b'    led_pin.off()\r', b'\r', b'    time.sleep(1)\r', b'\r', b'\x04', b'\x02']
2021-12-29 00:49:26,345 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:49:26,388 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:49:26,390 - mu.modes.base:162(execute) INFO: Sending command b'\x01'
2021-12-29 00:49:26,393 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:49:26,395 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:49:26,397 - mu.modes.base:162(execute) INFO: Sending command b'\x03'
2021-12-29 00:49:26,399 - mu.modes.base:162(execute) INFO: Sending command b'print("\\n");'
2021-12-29 00:49:26,402 - mu.modes.base:162(execute) INFO: Sending command b'# Write your code here :-)\r'
2021-12-29 00:49:26,404 - mu.modes.base:162(execute) INFO: Sending command b'from machine import Pin\r'
2021-12-29 00:49:26,406 - mu.modes.base:162(execute) INFO: Sending command b'import time\r'
2021-12-29 00:49:26,408 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:49:26,411 - mu.modes.base:162(execute) INFO: Sending command b'led_pin = Pin(2,Pin.OUT)\r'
2021-12-29 00:49:26,413 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:49:26,415 - mu.modes.base:162(execute) INFO: Sending command b'while True:\r'
2021-12-29 00:49:26,417 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.on()\r'
2021-12-29 00:49:26,420 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:49:26,422 - mu.modes.base:162(execute) INFO: Sending command b'    led_pin.off()\r'
2021-12-29 00:49:26,490 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:49:26,493 - mu.modes.base:162(execute) INFO: Sending command b'    time.sleep(1)\r'
2021-12-29 00:49:26,496 - mu.modes.base:162(execute) INFO: Sending command b'\r'
2021-12-29 00:49:26,498 - mu.modes.base:162(execute) INFO: Sending command b'\x04'
2021-12-29 00:49:26,501 - mu.modes.base:162(execute) INFO: Sending command b'\x02'
2021-12-29 00:54:51,295 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /home/psg/.cache/mu/log/mu.log
2021-12-29 00:54:51,295 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-29 00:54:51,296 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /home/psg/.local/share/mu/mu_venv-38-20211228-155212/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-29 00:54:51,566 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-29 00:54:51,566 - mu.virtual_environment:249(run) DEBUG: Process output: Package           Version
----------------- -------
backcall          0.2.0
bitstring         3.1.9
cffi              1.15.0
click             8.0.3
cryptography      36.0.1
decorator         5.1.0
ecdsa             0.17.0
entrypoints       0.3
esptool           3.2
Flask             1.1.2
ipykernel         5.5.6
ipython           7.30.1
ipython-genutils  0.2.0
itsdangerous      2.0.1
jedi              0.18.1
Jinja2            3.0.3
jupyter-client    7.1.0
jupyter-core      4.9.1
MarkupSafe        2.0.1
matplotlib-inline 0.1.3
nest-asyncio      1.5.4
numpy             1.21.5
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               21.3.1
prompt-toolkit    3.0.24
ptyprocess        0.7.0
pycparser         2.21
pygame            2.1.2
Pygments          2.10.0
pyserial          3.5
python-dateutil   2.8.2
pyzmq             22.3.0
reedsolo          1.5.4
setuptools        60.1.0
six               1.16.0
tornado           6.1
traitlets         5.1.1
wcwidth           0.2.5
Werkzeug          2.0.2
wheel             0.37.1
2021-12-29 00:54:51,566 - mu.virtual_environment:931(installed_packages) INFO: []
carlosperate commented 2 years ago

Thanks for the report @KorkhovPavel!

What actually happened?

nothing

in the console: s$�l��<��l�<� ����l��c|������;�c��c��gn�dog����c�8�lrl;lx�o���

Is that in the Ubuntu terminal? As an output from the Mu application?

What Mu Mode are you using and which board did you use?

KorkhovPavel commented 2 years ago

It's in Mu app

Mode: ESP MicroPython Write MicroPython on ESP8266 / ESP32 boards.

device wemos d1 mini (the light bulbs on the board should blink)

carlosperate commented 2 years ago

Thanks @KorkhovPavel,

It's in Mu app

Where in the Mu app does it show that, could you capture a screenshoot?

KorkhovPavel commented 2 years ago

As if the connection is lost with the device, but the photo shows the device is connected. Maybe something is blocking?

python version 3.8 firmware version micropythona esp8266-20210902-v1.17.bin (tried different versions) Thank you

Снимок экрана от 2021-12-29 20-13-15 Снимок экрана от 2021-12-29 20-23-58 Снимок экрана от 2021-12-29 20-24-11

KorkhovPavel commented 2 years ago

the device is exactly this https://creatorplanet.com/index.php?route=product/product&path=1&product_id=665

carlosperate commented 2 years ago

Looks like the issue might be with getting MicroPython running correctly on the device.

I don't know much about the ESP devices, but see if you can find the right MicroPython build and if the REPL works correctly before trying to flash any code.

KorkhovPavel commented 2 years ago

Can you tell me the name of the board on which micropython works well? I will try all the firmwares and write to you about the result.

Thank you

carlosperate commented 2 years ago

The MicroPython website has a list of compatible devices: https://micropython.org/download/

One thing to try before changing boards might be to flash (what you think might be the correct) MicroPython and then try to connect to the REPL via a serial console application instead of Mu, that way you could try to connect at 9600 baud (Mu by default tries to connect at 115200 baud). The output we see in Mu looks like it's receiving data at the baud rate different than 115200.

KorkhovPavel commented 2 years ago

Good day. I tried all the firmware versions, in Win10 and Ubuntu operating systems and tried to change the speed, all without result. I bought another board and everything worked, so something is wrong with it.

I apologize for the disturbance, the matter was not in the program. Thank you.

carlosperate commented 2 years ago

No worries, I glad you found the issue and are able to programme the other board correctly.

I'll close this issue, but don't hesitate to open a new one if you encounter any problem with Mu, it's really useful for us to help identify possible problems in the editor, thanks! 👍