Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 21:35
    jdsjdk commented #2325
  • 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
Domingez87
@Domingez87
NVM solved :P
YourLastSuprise
@YourLastSuprise
Sigurd Rage
@bluehobo
Hi, I'm having trouble with a fresh install of version 1.1.0 beta 6. The program crashes on first run, virtual environment error. Is that a common error, or due to my setup?
On Win 10, i9 company managed laptop
Battousai the Snacker
@shadowsmythe_twitter
I'm having problems running any of the 1.1.0 Beta x Mu editors. The last version I can get to run is 1.0.3. I've followed the install procedures (https://codewith.mu/en/howto/1.1/install_windows) but I've noticed that the install procedures have a .exe listed but all the install files for windows are .msi. Is there any reason this would be an issue and if so where can I find the .exe?
Jean-Baptiste BUTET
@ashashiwa_gitlab
Hi all :) I have exactly the same issue... do you provide a .exe file instead of MSI ?
Carl J. Nobile
@cnobile2012
@bluehobo and @ashashiwa_gitlab MU is a Python application that is in Beta. I'm not a developer on this project, however, I have been writing Python code for over 20 years. Beta versions are essentially still test versions, so you need a little more experience to work with it. I myself almost never use windows, so I cannot give you specific help on this.
rabbitcreek
@rabbitcreek
I am having trouble installing mu on my m1 mac mini. Open up application and ok the warning and it doesnt open the program...? Any tips?
Tiago Montes
@tmontes
IIRC, the latest beta release fails to run on M1 Macs. Possible solutions: go for the previous beta, check the GitHub issues (there’s a non-official working release, signed by me, there), hold a little while for the next release, which should be a release candidate (confirmed to work on M1 Macs, again) :)
Andy Piper
@andypiper
I have Mu 1.1.0.beta.6 running on a M1 Pro, if that helps?
Ali Nabavi
@hourback
Hey, folks! :-) I'm just getting started with Loopback and am having some issues with installation, following the tutorial. Can someone help me directly, or should I just post questions in here?
First of all, I'm having to do this on Windows 10 with a corporate PC so it's pretty painful. The best way I found to proceed with this kind of development is using WSL.
I'm following the tutorial here: https://loopback.io/doc/en/lb4/todo-tutorial.html
Ali Nabavi
@hourback
But this isn't working: "lb4 example todo"
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_print6419 |   __pyx_type_4pypm_Output.tp_print = 0;
          |                          ^
    src_c/pypm.c:6434:25: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print6434 |   __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