Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 11 23:21
    knowledgejunkie commented #2228
  • Aug 11 19:35
    Neradoc commented #2327
  • Aug 11 19:34
    Neradoc commented #2327
  • Aug 11 19:10
    Neradoc commented #2327
  • Aug 11 19:03
    tannewt commented #2326
  • Aug 11 19:03
    Neradoc commented #2327
  • Aug 11 19:02
    tannewt synchronize #2326
  • Aug 11 18:52
    tannewt synchronize #2327
  • Aug 11 18:52
    tannewt commented #2327
  • Aug 11 17:30
    prcutler edited #2328
  • Aug 11 17:29
    prcutler opened #2328
  • Aug 11 16:43
    Neradoc commented #2327
  • Aug 11 15:25
    carlosperate commented #2327
  • Aug 11 15:13
    Neradoc commented #2327
  • Aug 11 15:12
    Neradoc commented #2327
  • Aug 11 15:12
    Neradoc commented #2327
  • Aug 11 15:12
    Neradoc commented #2327
  • Aug 11 15:09
    carlosperate commented #2327
  • Aug 11 15:09
    Neradoc commented #2327
  • Aug 11 14:46
    dhalbert commented #2327
Ali Nabavi
@hourback
I've installed npm in WSL.
ali@anabavix-mobl:/mnt/c/Users/anabavix$ npm i -g @loopback/cli
/usr/bin/env: ‘bash\r’: No such file or directory
Okay, I think I see the issue right now....
Zander Brown
@zbrown:matrix.org
[m]
You seem to be in the wrong place?
Ali Nabavi
@hourback
I had to restart my shell for npm to be seen. :-) Sorry!
Oh!!! I thought this was for loopback.io!!!
:-DDDDD
Sorry. :-)
Zander Brown
@zbrown:matrix.org
[m]
I can honestly say I have no idea what that is, but I'm glad you solved your problem :-)
Ali Nabavi
@hourback
hahaha :-) Thank you, sir. Have a nice day.
Nicholas Tollervey
@ntoll
Hi folks.... :wave: interested in helping us translate Mu..? Here's a blog post for you: https://madewith.mu/mu/users/2021/12/13/translate.html
Andy Piper
@andypiper
@ntoll nice, I submitted it as a suggestion for 24pullrequests as well to get you some additional attention
zbrown:matrix.org @zbrown:matrix.org hopes that is better than sillytober which hasn't quite worked
Nicholas Tollervey
@ntoll
@andypiper thank you..!
Peio47
@Peio47
Hi everyone,
I copy a library file on Mu. But after several uses, the file disapear without any operation. do someone know about this ?
Andy Piper
@andypiper
can you explain more about what you are describing @Peio47 - what file are you copying? from where to where? How is Mu involved in the copy operation?
Peio47
@Peio47
It is a Python file maqueen.py that contains a class and I copied it from Mu with the Files pane.
profharris
@profharris

Trying to install CircuitPython or MicroPython on a new ESP-C3-32S. For both, Erasing the flash goes without any problems. Then... esptool.py v3.1
Serial port COM2
Connecting....

A fatal error occurred: This chip is ESP32-C3 not ESP32. Wrong --chip argument?

hilderic
@hilderic
@profharris Not a mu problem, but sounds like your images are the wrong architecture. The CircuitPython page for the ESP-C3-32S (https://circuitpython.org/board/ai_thinker_esp32-c3s/) is currently suggesting a recent beta release 7.1.0-beta-3. Have you tried that one?
J4KB
@J4KB
Hello everyone. I have question. How can I export games from Mu Editor (Pygame, Python) to .exe file?
Zackarias Montell
@Wholteza

Hi, i just started using my pimoroni tiny 2040 with circuitpython, downloaded the latest build for my board and uploaded it to my device. That seems fine and dandy and i get a green blink when my board is running the default hello world sketch.

I am trying to upload a simple blink sketch to my board but when i do that i get a double red blink, telling me that the code exited with an exception and that i should use the REPL serial console for more information.

The problem is i can not start a serial console session since MU cannot find my board. The problem persists even when i run the editor as root on my ubuntu system.

Has anyone experienced something like this and know how i would go about troubleshooting it?

BR

Hi, i just started using my pimoroni tiny 2040 with circuitpython, downloaded the latest build for my board and uploaded it to my device. That seems fine and dandy and i get a green blink when my board is running the default hello world sketch.

I am trying to upload a simple blink sketch to my board but when i do that i get a double red blink, telling me that the code exited with an exception and that i should use the REPL serial console for more information.

The problem is i can not start a serial console session since MU cannot find my board. The problem persists even when i run the editor as root on my ubuntu system.

Has anyone experienced something like this and know how i would go about troubleshooting it?

BR

This is my log output

2021-12-19 18:26:08,510 - mu.modes.base:259(toggle_repl) INFO: Toggle REPL on.
2021-12-19 18:26:09,535 - mu.logic:1104(select_mode) INFO: Showing available modes: ['python', 'adafruit', 'microbit', 'debugger', 'pygamezero']
2021-12-19 18:26:12,648 - mu.modes.base:231(find_device) WARNING: Could not find device.
2021-12-19 18:26:12,648 - mu.modes.base:232(find_device) DEBUG: Available ports:
2021-12-19 18:26:12,648 - mu.modes.base:233(find_device) DEBUG: ['PID:0x08c7 VID:0x16d0 PORT:ttyACM0']
2021-12-19 18:26:12,649 - mu.interface.main:723(show_message) DEBUG: Could not find an attached device.
2021-12-19 18:26:12,649 - mu.interface.main:724(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.

I can confirm that it is connected because i see the circuitpy device showing up

Nicholas Tollervey
@ntoll
Heads up.... a new release of Mu is available, just in time for Christmas: https://madewith.mu/mu/users/2021/12/22/beta7.html
Vasco Mora
@xbecas
Kudos to all - what a great Christmas give! 🎉
Carl J. Nobile
@cnobile2012
This is great, just did a pip upgrade with no issues.
1 reply
tronigordi
@tronigordi
Hello, I'm new here and I think the project is very good. I have a problem. I used the ESP32 with Micropyton (MP) on a Macbook. (MacOS 12.1 Monterey, ESP32 MP firmware 1.17)
A connection to the ESP32 works.
Firmware installation works.
REPL operation works.
Only file transfer does not work for me.
I don't see the files on the ESP32.
I don't see the files from the computer either.
After being prompted to briefly remove the USB port,
the MU Editor crashes.
PS: Sorry for my English, I'm from Germany.
tronigordi
@tronigordi
2021-12-30 07:51:58,123 - 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-30 07:51:58,123 - mu.interface.main:1034(show_message) DEBUG: None
2021-12-30 07:52:02,337 - mu.logic:1416(show_admin) INFO: Showing admin with logs from /Users/gordonseiptius/Library/Logs/mu/mu.log
2021-12-30 07:52:02,337 - mu.virtual_environment:922(installed_packages) INFO: Discovering installed third party modules in venv.
2021-12-30 07:52:02,338 - mu.virtual_environment:114(run_blocking) INFO: About to run blocking /Users/gordonseiptius/Library/Application Support/mu/mu_venv-38-20211223-142911/bin/pip with args ['list', '--disable-pip-version-check'] and envvars {}
2021-12-30 07:52:02,696 - mu.virtual_environment:164(wait) DEBUG: Finished: True; exitStatus 0; exitCode 0
2021-12-30 07:52:02,696 - mu.virtual_environment:249(run) DEBUG: Process output: Package Version
Hanns Holger Rutz
@Sciss

Hi. I'm following intro tutorial for CircuitPython in Pi Pico, which recommends installing mu-editor. I'm on Debian stable (11). Python is 3.9.2. I cannot install as advertised: https://codewith.mu/en/howto/1.1/install_with_python -- pip3 install mu-editor==1.1.0b7 :

ERROR: Could not find a version that satisfies the requirement mu-editor==1.1.0b7
ERROR: No matching distribution found for mu-editor==1.1.0b7

If I use use pip3 install mu-editor, it tries to install 1.0.3, but it fails for mathplotlib:

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pca8ytmu/matplotlib_053e1007bf484bad8018b187f23514a0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pca8ytmu/matplotlib_053e1007bf484bad8018b187f23514a0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-0r7sbbla
         cwd: /tmp/pip-install-pca8ytmu/matplotlib_053e1007bf484bad8018b187f23514a0/
    Complete output (62 lines):
    ============================================================================
    Edit setup.cfg to change the build options

    BUILDING MATPLOTLIB
                matplotlib: yes [2.2.2]
                    python: yes [3.9.2 (default, Feb 28 2021, 17:03:44)  [GCC
                            10.2.1 20210110]]
                  platform: yes [linux]

    REQUIRED DEPENDENCIES AND EXTENSIONS
                     numpy: yes [version 1.19.5]
          install_requires: yes [handled by setuptools]
                    libagg: yes [pkg-config information for 'libagg' could not
                            be found. Using local copy.]
                  freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                            could not be found.  You may need to install the
                            development package.]
                       png: no  [pkg-config information for 'libpng' could not
                            be found.]
                     qhull: yes [pkg-config information for 'libqhull' could not
                            be found. Using local copy.]
    ...

Please advise.

Hanns Holger Rutz
@Sciss
After sudo apt install libfreetype-dev, mathplotlib seems happy. The next problem is pygame. I wonder if I should abort at this point and just use VS code :-(
I try: sudo apt install libsdl1.2-dev libsdl-ttf2.0-dev libfreetype6-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libportmidi-dev. No I end up with
  Building wheel for pygame (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-wg2dvztt
       cwd: /tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/
..
  ---
  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for pygame
  Running setup.py clean for pygame
Successfully built matplotlib
Failed to build pygame
...
    Running setup.py install for pygame ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l0g9h5re/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hhrutz/.local/include/python3.9/pygame
         cwd: /tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/
    Complete output (501 lines):
...
    src_c/pypm.c:6419:26: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
     6419 |   __pyx_type_4pypm_Output.tp_print = 0;
          |                          ^
    src_c/pypm.c:6434:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’
     6434 |   __pyx_type_4pypm_Input.tp_print = 0;
          |                         ^
...
    error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9igsxkay/pygame_6a41b23add4f4feb8e3713de30c2dcc8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-l0g9h5re/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/hhrutz/.local/include/python3.9/pygame Check the logs for full command output.
I can install sdl2 dev and pygame 2.1.2; but that last available mu-editor seems to want pygame <2.0
Hanns Holger Rutz
@Sciss
sudo apt install mu-editor. Huh. Can you write that on the damn download page, please? Could have saved me an hour of work. Anyway, thanks for the software.
Dynamic programming languages, huh? Completed installation != it works:
$ mu-editor
Traceback (most recent call last):
  File "/usr/bin/mu-editor", line 33, in <module>
    sys.exit(load_entry_point('mu-editor==1.0.3', 'console_scripts', 'mu-editor')())
  File "/usr/bin/mu-editor", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/share/mu-editor/mu/app.py", line 34, in <module>
    from mu.interface import Window
  File "/usr/share/mu-editor/mu/interface/__init__.py", line 1, in <module>
    from .main import Window
  File "/usr/share/mu-editor/mu/interface/main.py", line 38, in <module>
    from mu.interface.editor import EditorPane
  File "/usr/share/mu-editor/mu/interface/editor.py", line 25, in <module>
    from PyQt5.Qsci import QsciScintilla, QsciLexerPython, QsciAPIs
ModuleNotFoundError: No module named 'PyQt5.Qsci'
Carl J. Nobile
@cnobile2012
@Sciss MU does not work on Python 3.9 at all at this time. You will need to use at best Python 3.8.
Nicholas Tollervey
@ntoll
(Worth pointing out that the reason it doesn't work is because upstream versions of dependencies don't work with 3.9, rather than Mu itself - we're aware of this.)
Hanns Holger Rutz
@Sciss
I see. I'll have to figure out how to downgrade. 3.9.2 is the standard python of Debian 11
Carl J. Nobile
@cnobile2012
@Sciss Go here to install Python 3.8. https://linuxize.com/post/how-to-install-python-3-8-on-debian-10/
It should be pretty much the same on your Debian 11.
rafiqncc
@rafiqncc
Hi I am very new at coding in Python. I have followed the instructions for coding but it shows the error. Would anyone please help me? name='Carol'
age=3000
if name=='Alice':
print('Hi Alice')
elif age < 12:
print('You are not Alice, kiddo.')
elif age > 2000:
print('Unlike you, Alice is not an undead, immortal vampire.')
elif age > 100:
print('You are not Alice, grannie.')
Error is: Indentation Error: Expected an indentation block. thanks
in Line 4
misterphil
@misterphil
Hi, Just tried to install Mu via Pip (running python 3.10 on windows 10) and received the message "Syntax error: invalid decimal literal" with the caret pointing at the 0b7 section of the command. tried typing in and then copied/pasted directly. currently unable to download and install directly.
Nicholas Tollervey
@ntoll
@misterphil please use Python3.8 and pip3 install mu-editor==1.1.0b7
Hmm.... and you're typing this into your cmd terminal with a virtualenv active..?
misterphil
@misterphil
just installed python and typed straight into the command line - I'll try changing back to 3.8 and having another go. thanks
Carl J. Nobile
@cnobile2012
@rafiqncc You need to use proper formatting in your Python code when you post it here. If not, nobody would know if the problem was actually the formatting.
With that said, this is not really the place to learn Python. This is a forum for the MU editor.
Jean Luc Constans
@constanstab2_gitlab
Hi, i use Mu in microbit mode and i try to measure temperature with ds18B20 (one wire protocol). But i fail in finding ds18b20 librairie for microbit. Where can i find py code to drive ds18b20 ?
tronigordi
@tronigordi
Hello, I'm new here and I think the project is very good. I have a problem. I used the ESP32 with Micropyton (MP) on a Macbook. (MacOS 12.1 Monterey, ESP32 MP firmware 1.17)
A connection to the ESP32 works.
Firmware installation works.
REPL operation works.
Only file transfer does not work for me.
I don't see the files on the ESP32.
I don't see the files from the computer either.
After being prompted to briefly remove the USB port,
the MU Editor crashes.
PS: Sorry for my English, I'm from Germany.
rjlange773
@rjlange773
New Mu Win10 user and the editor will run fine for me as long as the installer launches it. When trying to RE-launch it does nothing, no entries in windows app, system, or security event logs. Windows Defender flags no apps or violations. The mouse pointer indicates activity for maybe half a second, then nothing. I've reinstalled three times and it runs at install completion using the installer check box, but it won't restart using app created file shortcut or the .exe directly. I've searched the Mu install folder but can find no logs or diagnostic data. I'm using adafruit circuit python 7.1.0 with an Adafruit Magtag. Any advice on what my next step is? I searched for any files or info I thought would be relevant but like I said I new to this and this is getting frustrating!
rjlange773
@rjlange773
So can anyone direct me to some support for this app?
Carl J. Nobile
@cnobile2012
@rjlange773 It may be that MU cannot find the environment when you run it. How did you install it? Is it a Python virtual environment?
So this will probably not work unless you are using a virtual environment, but you can try it if you have one.
pip3 install shortcut
shortcut mu-editor
6 replies