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.39k stars 433 forks source link

Mu can not run code that has been created and check by it app #2450

Open Gleong1960 opened 1 year ago

Gleong1960 commented 1 year ago

What were you trying to do?

MacBook intel based and running macOS Monterey

What steps did you take to trigger the issue?

wrote a single neopixel call to flash the light and it works with the Thonny on the CircuitPY but it would not run on the MU

What did you expect to happen?

the program runs but not output on the Pi Pico board GP16

What actually happened?

nothing comes on and the same program works on the Thonny IDE

Operating System Version

MacOS intel Monterey

Mu Version

1.2.0

Other Info

this work only a the PERL level but not at the GUI

Editor Log

2023-07-27 16:17:31,283 - root:283(run) INFO: 

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

Starting Mu 1.2.0
2023-07-27 16:17:31,283 - root:284(run) INFO: uname_result(system='Darwin', node='MacBook-Pro', release='21.6.0', version='Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2023-07-27 16:17:31,290 - root:285(run) INFO: Platform: macOS-12.6.8-x86_64-i386-64bit
2023-07-27 16:17:31,290 - root:286(run) INFO: Python path: ['/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages']
2023-07-27 16:17:31,291 - root:287(run) INFO: Language code: en_US
2023-07-27 16:17:31,291 - mu.settings:220(load) WARNING: No settings file found at /Users/gregleong/Library/Application Support/mu/settings.json; skipping
2023-07-27 16:17:31,500 - mu.virtual_environment:619(ensure_and_create) INFO: Added log handler.
2023-07-27 16:17:31,501 - mu.virtual_environment:630(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2023-07-27 16:17:31,501 - mu.virtual_environment:719(ensure_path) INFO: Virtual Environment found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702
2023-07-27 16:17:31,501 - mu.virtual_environment:732(ensure_interpreter) INFO: Interpreter found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python
2023-07-27 16:17:31,501 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2023-07-27 16:17:31,635 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: 38
2023-07-27 16:17:31,644 - mu.virtual_environment:786(ensure_interpreter_version) INFO: Both interpreters at version 38
2023-07-27 16:17:31,651 - mu.virtual_environment:815(ensure_pip) INFO: Pip found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/pip
2023-07-27 16:17:31,663 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: pgzero
2023-07-27 16:17:31,664 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2023-07-27 16:17:31,699 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:17:31,699 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: flask
2023-07-27 16:17:31,699 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2023-07-27 16:17:31,901 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:17:31,901 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2023-07-27 16:17:31,901 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2023-07-27 16:17:32,408 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:17:32,408 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2023-07-27 16:17:32,408 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2023-07-27 16:17:32,441 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:17:32,442 - mu.virtual_environment:662(ensure_and_create) INFO: Valid virtual environment found at /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702
2023-07-27 16:17:32,447 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/venv.json
2023-07-27 16:17:32,463 - mu.logic:777(__init__) INFO: Setting up editor.
2023-07-27 16:17:32,463 - mu.logic:801(__init__) INFO: Log directory: /Users/gregleong/Library/Logs/mu
2023-07-27 16:17:32,463 - mu.logic:802(__init__) INFO: Data directory: /Users/gregleong/Library/Application Support/mu
2023-07-27 16:17:32,464 - mu.logic:816(setup) INFO: Available modes: python, snek, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2023-07-27 16:17:32,464 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:17:32,496 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:17:32,496 - mu.logic:1583(change_mode) INFO: Workspace directory: /Users/gregleong/mu_code
2023-07-27 16:17:32,497 - mu.logic:890(restore_session) DEBUG: <SessionSettings from /Users/gregleong/Library/Application Support/mu/session.json>
2023-07-27 16:17:32,501 - mu.logic:1015(_load) INFO: Loading script from: /Volumes/CIRCUITPY/testing_board.py
2023-07-27 16:17:32,501 - mu.logic:1026(_load) INFO: The file /Volumes/CIRCUITPY/testing_board.py does not exist.
2023-07-27 16:17:32,501 - mu.logic:1015(_load) INFO: Loading script from: /Volumes/CIRCUITPY/code.py
2023-07-27 16:17:32,501 - mu.logic:1026(_load) INFO: The file /Volumes/CIRCUITPY/code.py does not exist.
2023-07-27 16:17:32,501 - mu.logic:912(restore_session) INFO: Loaded files.
2023-07-27 16:17:32,502 - mu.logic:918(restore_session) INFO: User defined environment variables: {}
2023-07-27 16:17:32,502 - mu.logic:923(restore_session) INFO: Minify scripts on micro:bit? False
2023-07-27 16:17:32,529 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:17:32,540 - mu.interface.main:1047(show_message) DEBUG: Could not find an attached CircuitPython device.
2023-07-27 16:17:32,540 - mu.interface.main:1048(show_message) DEBUG: Python files for CircuitPython devices are stored on the device. Therefore, to edit these files you need to have the device plugged in. Until you plug in a device, Mu will use the directory found here:

 /Users/gregleong/mu_code

...to store your code.
2023-07-27 16:17:42,844 - mu.logic:1583(change_mode) INFO: Workspace directory: /Users/gregleong/mu_code
2023-07-27 16:17:42,919 - mu.logic:980(restore_session) INFO: Starting with blank file.
2023-07-27 16:17:44,197 - mu.logic:1530(select_mode) INFO: Showing available modes: ['python', 'snek', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico']
2023-07-27 16:17:48,948 - mu.logic:1439(show_admin) INFO: Showing admin with logs from /Users/gregleong/Library/Logs/mu/mu.log
2023-07-27 16:17:48,948 - mu.virtual_environment:984(installed_packages) INFO: Discovering installed third party modules in venv.
2023-07-27 16:17:48,948 - mu.virtual_environment:139(run_blocking) INFO: About to run blocking /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2023-07-27 16:17:49,559 - mu.virtual_environment:189(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2023-07-27 16:17:49,560 - mu.virtual_environment:274(run) DEBUG: Process output: Package           Version
----------------- -------
appnope           0.1.3
asttokens         2.1.0
backcall          0.2.0
click             8.1.3
decorator         5.1.1
entrypoints       0.4
executing         1.2.0
Flask             2.0.3
ipykernel         5.5.6
ipython           8.6.0
ipython-genutils  0.2.0
itsdangerous      2.1.2
jedi              0.18.1
Jinja2            3.1.2
jupyter_client    7.4.5
jupyter_core      5.0.0
MarkupSafe        2.1.1
matplotlib-inline 0.1.6
nest-asyncio      1.5.6
numpy             1.23.4
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               22.3.1
platformdirs      2.5.4
prompt-toolkit    3.0.32
ptyprocess        0.7.0
pure-eval         0.2.2
pygame            2.1.2
Pygments          2.13.0
python-dateutil   2.8.2
pyzmq             24.0.1
setuptools        65.5.1
six               1.16.0
stack-data        0.6.1
tornado           6.2
traitlets         5.5.0
wcwidth           0.2.5
Werkzeug          2.2.2
wheel             0.38.4
2023-07-27 16:17:49,561 - mu.virtual_environment:993(installed_packages) INFO: []
2023-07-27 16:17:56,666 - mu.interface.main:1047(show_message) DEBUG: Could not find an attached device.
2023-07-27 16:17:56,666 - mu.interface.main:1048(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.
2023-07-27 16:17:59,342 - mu.modes.base:481(toggle_repl) INFO: Toggle REPL on.
2023-07-27 16:18:19,637 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:18:19,638 - mu.logic:1152(get_dialog_directory) INFO: Using path for file dialog: /Users/gregleong/mu_code
2023-07-27 16:18:26,137 - mu.interface.main:441(get_save_path) DEBUG: Getting save path: 
2023-07-27 16:18:27,687 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:18:27,688 - mu.logic:1152(get_dialog_directory) INFO: Using path for file dialog: /Users/gregleong/mu_code
2023-07-27 16:19:03,942 - mu.interface.main:416(get_load_path) DEBUG: Getting load path: 
2023-07-27 16:19:11,078 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/session.json
2023-07-27 16:19:11,081 - mu.logic:1430(quit) INFO: Quitting.

2023-07-27 16:19:11,082 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/session.json
2023-07-27 16:19:11,083 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/venv.json
2023-07-27 16:19:14,665 - root:283(run) INFO: 

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

Starting Mu 1.2.0
2023-07-27 16:19:14,665 - root:284(run) INFO: uname_result(system='Darwin', node='MacBook-Pro', release='21.6.0', version='Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2023-07-27 16:19:14,671 - root:285(run) INFO: Platform: macOS-12.6.8-x86_64-i386-64bit
2023-07-27 16:19:14,671 - root:286(run) INFO: Python path: ['/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages']
2023-07-27 16:19:14,671 - root:287(run) INFO: Language code: en_US
2023-07-27 16:19:14,672 - mu.settings:220(load) WARNING: No settings file found at /Users/gregleong/Library/Application Support/mu/settings.json; skipping
2023-07-27 16:19:14,876 - mu.virtual_environment:619(ensure_and_create) INFO: Added log handler.
2023-07-27 16:19:14,877 - mu.virtual_environment:630(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2023-07-27 16:19:14,877 - mu.virtual_environment:719(ensure_path) INFO: Virtual Environment found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702
2023-07-27 16:19:14,877 - mu.virtual_environment:732(ensure_interpreter) INFO: Interpreter found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python
2023-07-27 16:19:14,877 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2023-07-27 16:19:14,912 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: 38
2023-07-27 16:19:15,002 - mu.virtual_environment:786(ensure_interpreter_version) INFO: Both interpreters at version 38
2023-07-27 16:19:15,002 - mu.virtual_environment:815(ensure_pip) INFO: Pip found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/pip
2023-07-27 16:19:15,002 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: pgzero
2023-07-27 16:19:15,002 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2023-07-27 16:19:15,041 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:19:15,042 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: flask
2023-07-27 16:19:15,042 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2023-07-27 16:19:15,235 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:19:15,235 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2023-07-27 16:19:15,235 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2023-07-27 16:19:15,693 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:19:15,694 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2023-07-27 16:19:15,694 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2023-07-27 16:19:15,727 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:19:15,728 - mu.virtual_environment:662(ensure_and_create) INFO: Valid virtual environment found at /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702
2023-07-27 16:19:15,728 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/venv.json
2023-07-27 16:19:15,746 - mu.logic:777(__init__) INFO: Setting up editor.
2023-07-27 16:19:15,746 - mu.logic:801(__init__) INFO: Log directory: /Users/gregleong/Library/Logs/mu
2023-07-27 16:19:15,746 - mu.logic:802(__init__) INFO: Data directory: /Users/gregleong/Library/Application Support/mu
2023-07-27 16:19:15,747 - mu.logic:816(setup) INFO: Available modes: python, snek, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2023-07-27 16:19:15,747 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:19:15,779 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:19:15,779 - mu.logic:1583(change_mode) INFO: Workspace directory: /Users/gregleong/mu_code
2023-07-27 16:19:15,779 - mu.logic:890(restore_session) DEBUG: <SessionSettings from /Users/gregleong/Library/Application Support/mu/session.json>
2023-07-27 16:19:15,784 - mu.logic:912(restore_session) INFO: Loaded files.
2023-07-27 16:19:15,784 - mu.logic:918(restore_session) INFO: User defined environment variables: {}
2023-07-27 16:19:15,784 - mu.logic:923(restore_session) INFO: Minify scripts on micro:bit? False
2023-07-27 16:19:15,810 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:19:15,818 - mu.interface.main:1047(show_message) DEBUG: Could not find an attached CircuitPython device.
2023-07-27 16:19:15,818 - mu.interface.main:1048(show_message) DEBUG: Python files for CircuitPython devices are stored on the device. Therefore, to edit these files you need to have the device plugged in. Until you plug in a device, Mu will use the directory found here:

 /Users/gregleong/mu_code

...to store your code.
2023-07-27 16:19:19,792 - mu.logic:1583(change_mode) INFO: Workspace directory: /Users/gregleong/mu_code
2023-07-27 16:19:19,868 - mu.logic:980(restore_session) INFO: Starting with blank file.
2023-07-27 16:19:27,348 - mu.logic:1439(show_admin) INFO: Showing admin with logs from /Users/gregleong/Library/Logs/mu/mu.log
2023-07-27 16:19:27,348 - mu.virtual_environment:984(installed_packages) INFO: Discovering installed third party modules in venv.
2023-07-27 16:19:27,348 - mu.virtual_environment:139(run_blocking) INFO: About to run blocking /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2023-07-27 16:19:27,794 - mu.virtual_environment:189(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2023-07-27 16:19:27,794 - mu.virtual_environment:274(run) DEBUG: Process output: Package           Version
----------------- -------
appnope           0.1.3
asttokens         2.1.0
backcall          0.2.0
click             8.1.3
decorator         5.1.1
entrypoints       0.4
executing         1.2.0
Flask             2.0.3
ipykernel         5.5.6
ipython           8.6.0
ipython-genutils  0.2.0
itsdangerous      2.1.2
jedi              0.18.1
Jinja2            3.1.2
jupyter_client    7.4.5
jupyter_core      5.0.0
MarkupSafe        2.1.1
matplotlib-inline 0.1.6
nest-asyncio      1.5.6
numpy             1.23.4
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               22.3.1
platformdirs      2.5.4
prompt-toolkit    3.0.32
ptyprocess        0.7.0
pure-eval         0.2.2
pygame            2.1.2
Pygments          2.13.0
python-dateutil   2.8.2
pyzmq             24.0.1
setuptools        65.5.1
six               1.16.0
stack-data        0.6.1
tornado           6.2
traitlets         5.5.0
wcwidth           0.2.5
Werkzeug          2.2.2
wheel             0.38.4
2023-07-27 16:19:27,795 - mu.virtual_environment:993(installed_packages) INFO: []
2023-07-27 16:19:51,954 - mu.interface.main:1047(show_message) DEBUG: Could not find an attached device.
2023-07-27 16:19:51,954 - mu.interface.main:1048(show_message) DEBUG: Please make sure the device is plugged into this computer.

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

Starting Mu 1.2.0
2023-07-27 16:21:23,738 - root:284(run) INFO: uname_result(system='Darwin', node='MacBook-Pro', release='21.6.0', version='Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64', machine='x86_64', processor='i386')
2023-07-27 16:21:23,744 - root:285(run) INFO: Platform: macOS-12.6.8-x86_64-i386-64bit
2023-07-27 16:21:23,744 - root:286(run) INFO: Python path: ['/Applications/Mu Editor.app/Contents/Resources/Python/lib/python38.zip', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/lib-dynload', '/Applications/Mu Editor.app/Contents/Resources/Python/lib/python3.8/site-packages']
2023-07-27 16:21:23,744 - root:287(run) INFO: Language code: en_US
2023-07-27 16:21:23,744 - mu.settings:220(load) WARNING: No settings file found at /Users/gregleong/Library/Application Support/mu/settings.json; skipping
2023-07-27 16:21:23,947 - mu.virtual_environment:619(ensure_and_create) INFO: Added log handler.
2023-07-27 16:21:23,947 - mu.virtual_environment:630(ensure_and_create) DEBUG: Checking virtual environment; attempt #1.
2023-07-27 16:21:23,948 - mu.virtual_environment:719(ensure_path) INFO: Virtual Environment found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702
2023-07-27 16:21:23,948 - mu.virtual_environment:732(ensure_interpreter) INFO: Interpreter found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python
2023-07-27 16:21:23,948 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import sys; print("%s%s" % sys.version_info[:2])') with kwargs {'shell': False}
2023-07-27 16:21:23,983 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: 38
2023-07-27 16:21:23,983 - mu.virtual_environment:786(ensure_interpreter_version) INFO: Both interpreters at version 38
2023-07-27 16:21:24,073 - mu.virtual_environment:815(ensure_pip) INFO: Pip found at: /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/pip
2023-07-27 16:21:24,073 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: pgzero
2023-07-27 16:21:24,073 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import pgzero') with kwargs {'shell': False}
2023-07-27 16:21:24,111 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:21:24,111 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: flask
2023-07-27 16:21:24,111 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import flask') with kwargs {'shell': False}
2023-07-27 16:21:24,305 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:21:24,305 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: ipykernel
2023-07-27 16:21:24,306 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import ipykernel') with kwargs {'shell': False}
2023-07-27 16:21:24,761 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:21:24,761 - mu.virtual_environment:798(ensure_key_modules) DEBUG: Verifying import of: ipython_genutils
2023-07-27 16:21:24,761 - mu.virtual_environment:463(run_subprocess) INFO: Running ('/Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/python', '-c', 'import ipython_genutils') with kwargs {'shell': False}
2023-07-27 16:21:24,793 - mu.virtual_environment:475(run_subprocess) DEBUG: Process returned 0; output: No output received.
2023-07-27 16:21:24,794 - mu.virtual_environment:662(ensure_and_create) INFO: Valid virtual environment found at /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702
2023-07-27 16:21:24,799 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/venv.json
2023-07-27 16:21:24,811 - mu.logic:777(__init__) INFO: Setting up editor.
2023-07-27 16:21:24,812 - mu.logic:801(__init__) INFO: Log directory: /Users/gregleong/Library/Logs/mu
2023-07-27 16:21:24,812 - mu.logic:802(__init__) INFO: Data directory: /Users/gregleong/Library/Application Support/mu
2023-07-27 16:21:24,812 - mu.logic:816(setup) INFO: Available modes: python, snek, circuitpython, microbit, esp, web, pyboard, debugger, pygamezero, lego, pico
2023-07-27 16:21:24,813 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:21:24,845 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:21:24,845 - mu.logic:1583(change_mode) INFO: Workspace directory: /Users/gregleong/mu_code
2023-07-27 16:21:24,845 - mu.logic:890(restore_session) DEBUG: <SessionSettings from /Users/gregleong/Library/Application Support/mu/session.json>
2023-07-27 16:21:24,849 - mu.logic:912(restore_session) INFO: Loaded files.
2023-07-27 16:21:24,849 - mu.logic:918(restore_session) INFO: User defined environment variables: {}
2023-07-27 16:21:24,850 - mu.logic:923(restore_session) INFO: Minify scripts on micro:bit? False
2023-07-27 16:21:24,882 - mu.modes.base:61(get_default_workspace) INFO: Using workspace /Users/gregleong/mu_code from settings file
2023-07-27 16:21:24,889 - mu.interface.main:1047(show_message) DEBUG: Could not find an attached CircuitPython device.
2023-07-27 16:21:24,889 - mu.interface.main:1048(show_message) DEBUG: Python files for CircuitPython devices are stored on the device. Therefore, to edit these files you need to have the device plugged in. Until you plug in a device, Mu will use the directory found here:

 /Users/gregleong/mu_code

...to store your code.
2023-07-27 16:21:33,201 - mu.logic:1583(change_mode) INFO: Workspace directory: /Users/gregleong/mu_code
2023-07-27 16:21:33,276 - mu.logic:980(restore_session) INFO: Starting with blank file.
2023-07-27 16:21:43,758 - mu.logic:1530(select_mode) INFO: Showing available modes: ['python', 'snek', 'circuitpython', 'microbit', 'esp', 'web', 'pyboard', 'debugger', 'pygamezero', 'lego', 'pico']
2023-07-27 16:21:48,621 - mu.logic:1439(show_admin) INFO: Showing admin with logs from /Users/gregleong/Library/Logs/mu/mu.log
2023-07-27 16:21:48,621 - mu.virtual_environment:984(installed_packages) INFO: Discovering installed third party modules in venv.
2023-07-27 16:21:48,621 - mu.virtual_environment:139(run_blocking) INFO: About to run blocking /Users/gregleong/Library/Application Support/mu/mu_venv-38-20230724-163702/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2023-07-27 16:21:49,046 - mu.virtual_environment:189(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2023-07-27 16:21:49,047 - mu.virtual_environment:274(run) DEBUG: Process output: Package           Version
----------------- -------
appnope           0.1.3
asttokens         2.1.0
backcall          0.2.0
click             8.1.3
decorator         5.1.1
entrypoints       0.4
executing         1.2.0
Flask             2.0.3
ipykernel         5.5.6
ipython           8.6.0
ipython-genutils  0.2.0
itsdangerous      2.1.2
jedi              0.18.1
Jinja2            3.1.2
jupyter_client    7.4.5
jupyter_core      5.0.0
MarkupSafe        2.1.1
matplotlib-inline 0.1.6
nest-asyncio      1.5.6
numpy             1.23.4
parso             0.8.3
pexpect           4.8.0
pgzero            1.2.1
pickleshare       0.7.5
pip               22.3.1
platformdirs      2.5.4
prompt-toolkit    3.0.32
ptyprocess        0.7.0
pure-eval         0.2.2
pygame            2.1.2
Pygments          2.13.0
python-dateutil   2.8.2
pyzmq             24.0.1
setuptools        65.5.1
six               1.16.0
stack-data        0.6.1
tornado           6.2
traitlets         5.5.0
wcwidth           0.2.5
Werkzeug          2.2.2
wheel             0.38.4
2023-07-27 16:21:49,047 - mu.virtual_environment:993(installed_packages) INFO: []
2023-07-27 16:22:02,838 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/session.json
2023-07-27 16:22:02,840 - mu.logic:1430(quit) INFO: Quitting.

2023-07-27 16:22:02,840 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/session.json
2023-07-27 16:22:02,842 - mu.settings:169(save) DEBUG: Saving to /Users/gregleong/Library/Application Support/mu/venv.json
2023-07-27 16:22:05,698 - root:283(run) INFO: 

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