Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 25 12:01
    tmontes commented #2276
  • Jun 25 11:56

    tmontes on master

    Don't use our own dmgbuild fork… Merge pull request #2276 from t… (compare)

  • Jun 25 11:56
    tmontes closed #2276
  • Jun 25 11:56
    tmontes commented #2276
  • Jun 25 11:06
    tmontes opened #2276
  • Jun 25 09:32
    tjguk commented #2275
  • Jun 25 09:29
    tjguk commented #2275
  • Jun 25 09:26
    tjguk commented #2275
  • Jun 25 08:16
    OldManTechWorld opened #2275
  • Jun 25 04:50
    mlmiller751 opened #2274
  • Jun 25 04:23
    jevers76 commented #2163
  • Jun 24 18:08
    carlosperate labeled #1321
  • Jun 24 16:38
    carlosperate commented #2163
  • Jun 24 16:33
    carlosperate labeled #2193
  • Jun 24 16:33
    carlosperate labeled #2193
  • Jun 24 16:33
    carlosperate commented #2193
  • Jun 24 16:06
    carlosperate commented #2212
  • Jun 24 15:57
    carlosperate commented #2262
  • Jun 24 14:50
    carlosperate commented #2120
  • Jun 24 12:31
    carlosperate edited #2271
Hanns Holger Rutz
@Sciss
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
funbreaker
@funbreaker:tchncs.de
[m]
no, I think what it means is a way to isolate your python package installs between projects and use custom versions of the python interpreter
this is a tool for doing such things and its homepage will help you understand a little better
https://virtualenv.pypa.io/en/latest/
Trikkitt
@Trikkitt_twitter
Just installed Mu so I can easily work on some ESP8285 (ESP8266) boards. However while file browsing works fine, the REPL just shows junk, like it isn't set to the correct baud rate. I can't see a way to find what baud rate it uses. If I open the serial port via Putty then REPL is just fine at 115200bps. Am I doing something wrong, or is there a setting that controls the serial port speed somewhere?
I should add that this is on Windows 10, the board I'm using is an ESP8285 module.
Trikkitt
@Trikkitt_twitter
Hmmm, just tried a different module a WeMos D1 mini and that worked fine. So I suspect the issue is something to do with the ESP8285 module and the way the control lines are being driven by Mu. The different bps looks to me like the ESP bootloader, so probably booting in to firmware loading mode or something. Weird that it works fine on Putty but not Mu... :(
Patronsaintofdice
@Patronsaintofd1_twitter
I had a total newb question. I just installed Mu and running it for the first time on an older (2015) MacBook. Everything appears to be working fine, except the minus sign, "-", is a nearly invisible light gray in my editor and the interactive shell. Can someone tell me how to change the font color of this one specific character?
Carl J. Nobile
@cnobile2012
@Patronsaintofd1_twitter I have never heard of a way to change the font color of a specific character on any platform Windoze, Mac, or Linux. However, you can probably change the font itself to one that doesn't have this issue, or maybe just change the pitch (size).
Bohaska
@Bohaska
I'm using Mu to learn Python. How do you install modules that you have installed from the command line? The import command gives a ModuleNotFoundError
Carl J. Nobile
@cnobile2012
@Bohaska It depends on what platform you are on and how MU was installed on that platform. However, in your situation, it seems that you have installed the packages in a different environment than MU was installed. Soooo, we need more info. Mac, Windows, or Linux?
Bohaska
@Bohaska
I'm on mac
1 reply
@cnobile2012
mycroft47
@mycroft47
I have exactly the same problem as @Bohaska. I am an experienced programmer but new to python and mu. The python script I am running has this line which fails:
from pathlib2 import Path
I have run pip3 install pathlib2 in Terminal with no errors. Can someone explain why Mu does not see pathlib2?
2017 MBP running Monterey 12.0.1
mycroft47
@mycroft47
Update. I've tried running my .py script from Terminal and I get the same error: ImportError: No module named pathlib2
However, pip3 install pathlib2 runs in Terminal with no errors.
Nicholas Tollervey
@ntoll
Hi @mycroft47 and @Bohaska - Mu runs its own isolated version of Python (i.e. Mu comes with Python - this means beginner users of Mu don't have to go about installing a bunch of opaque technical stuff.... "It just works" :tm:). To install packages for Mu's version of Python, hit the cog icon on the bottom right and select the "third party packages" tab. Then just make sure the list of packages you need is enumerated in the text area (one package on each line). The whole process is explained here: https://codewith.mu/en/tutorials/1.1/pypi
mycroft47
@mycroft47

@ntoll Thanks a lot. Problem solved. I hadn't even noticed the cog icon!

A note: in the Third Party Packages dialog, it is not immediatly clear that you can enter package names into the empty box.

Nicholas Tollervey
@ntoll
@mycroft47 aha... thanks for the feedback. I'll try to update the copy in the UI to make it clear. Feedback = coding fuel. ;-)
Omar Nuñez
@choredarck
Hello, I hope everyone you be fine, I'm new here, I came in because I have a question about Mu-editor, I try to run Mu-editor with mu-editor in terminal, but it throws me:
from PyQt5.QtCore import QTimer, Qt
ModuleNotFoundError: No module named 'PyQt5.sip'
Goose
@GooseTheCat8602
I need help. I recently have finished the Mimo coding app for python. I wish to continue learning what mino hasn’t taught me. Any suggestions for a free learning course? Preferably for mobile devices. If you can help, thanks.
Nicholas Tollervey
@ntoll
@choredarck how did you install Mu..? If you're on Windows or Mac please use the "official" installers, and let us know how you get on.
@GooseTheCat8602 anything published by adafruit.com (for CircuitPython) is very good.
mycroft47
@mycroft47
I have a Python script that requires command line arguments. How can I enter those arguments in Mu?
Terry King
@TerryKing
THANKS for Mu! Running Win10, ESP32. Minor Point: When starting Mu, loading a program, clicking RUN: Mu switches to REPL but code does not run. Clicking Run again executes code. Should Mu default to starting with REPL active? I am writing stuff for Education program and looking for any "Minor Confusions" :-) I am good at finding those. Regards, Terry
Terry King
@TerryKing

Hi Everyone, Question about RUN and "Stop".. Running Win10, ESP32. What is the best way to STOP running code?? (D id there used to be a STOP button?)

Present behavior: Code loaded in editor, REPL visible, click RUN. Code runs, REPL shows POWERON_RESET (And other setup lines), then

MPY: soft reboot
raw REPL; CTRL-B to exit

>OK

(THEN DISPLAYS any PRINT from code)

How to STOP??
I click REPL and code stops, and full editor window displayed
I click REPL again and REPL displays, showing the (POWERON_RESET ... down to >>> prompt)

Terry King
@TerryKing
?? Can't edit that now.. Sorry! Again, I am working on supporting 100+ Total Newbies :-)
Nicholas Tollervey
@ntoll
@mycroft47 you should probably just run the script from the command line..? (More complicated answer = "it depends")
@TerryKing :wave: We love getting feedback and reports of problems. The "run" button behaviour you first describe is not correct. What version of Mu are you using..?