Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 22:20
    electric1236 commented #1602
  • 17:37
    carlosperate synchronize #1272
  • 17:37

    carlosperate on py39

    Add Python 3.9 support. Update PyQt5 dependencies. (compare)

  • 16:55
    carlosperate commented #2234
  • 16:45
    carlosperate commented #1926
  • 13:12
    carlosperate transferred #2244
  • 12:53
    kumkumbello opened #2244
  • 10:35
    drdec99 opened #2243
  • 09:13
    carlosperate commented #2242
  • 08:31
    carlosperate commented #2242
  • May 23 22:36
    carlosperate labeled #2242
  • May 23 22:36
    carlosperate milestoned #2242
  • May 23 22:36
    carlosperate commented #2242
  • May 23 22:34
    carlosperate review_requested #66
  • May 23 22:34
    carlosperate opened #66
  • May 23 22:19

    carlosperate on crash-repo

    Update crash report URL to use … (compare)

  • May 23 22:01

    carlosperate on crash-repo

    (compare)

  • May 23 21:58
    carlosperate edited #2242
  • May 23 21:55
    carlosperate opened #2242
  • May 23 14:22
    carlosperate synchronize #2237
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..?
(not correct = "that's not how it's supposed to work")
Terry King
@TerryKing
Hello Nicholas, First: many Thanks for your dedication to mu-editor! I can promise you that 100+ kids in Vermont USA will learn a lot using your work.
I am running WIN10 and mu-editor 1.1.0b7 This is ESP MicroPython Mode. Python3 Mode works great. Kids will start there.
I'd be happy to do anything I can to help now or in the future. I'm an Engineer who went Rogue at IBM and wrote code when that "Wasn't Done". I have quite a bit of Arduino and ESP32 experience and helpers who know more...
Let me know what I can do to help. Regards, Terry
Terry King
@TerryKing
Quick Question: Mu Editor for Windows: IsIt 64 Bit ONLY?? Wondering about students with older machines...
tjguk
@tjguk:matrix.org
[m]
@TerryKing: we limited our builds to 64-bit a couple of releases ago basically as a pragmatic measure. Since we ship the installers with quite a few wheels and so on, plus a static Python image, it became quite a burden. And we took the view that, by this time, even older school kit was likely to be 64-bit. It shouldn't be too difficult to build a 32-bit installer if this was an obstacle for you... assuming we can get matching wheels from the underlying libraries