Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 07:14
    abixadamj commented #1158
  • 01:39
    devdanzin commented #1158
  • Nov 29 22:13
    TheFwGuy opened #1158
  • Nov 29 21:46
    ajs256 commented #1147
  • Nov 29 21:44
    ged99 commented #1147
  • Nov 29 21:42
    ged99 commented #1147
  • Nov 29 21:42
    ged99 commented #1147
  • Nov 29 21:39
    ged99 commented #1147
  • Nov 29 21:39
    ged99 commented #1147
  • Nov 29 21:30
    ged99 commented #1147
  • Nov 29 21:29
    ged99 commented #1147
  • Nov 29 21:17
    ajs256 commented #1147
  • Nov 29 19:08
    dybber commented #1150
  • Nov 29 19:07
    dybber commented #1150
  • Nov 29 19:04
    dybber commented #1150
  • Nov 29 19:03
    ged99 commented #1147
  • Nov 29 15:27
    carlosperate commented #1156
  • Nov 29 14:38
    carlosperate synchronize #1156
  • Nov 29 14:38

    carlosperate on dep-fix

    Temporarily pin boto3 to v1.15.… (compare)

  • Nov 29 14:34
    carlosperate commented #1150
julien launay
@JLFra
Do you have the date of this new release? thanks.
Nicholas Tollervey
@ntoll
We're all volunteers, so it's very much a "best effort" effort.
julien launay
@JLFra
good luck...
thanks for all your efforts.
julien launay
@JLFra
Do you know how is coding numbers and decimal numbers in Micropythin microbit. Because when I try 0.1+0.1+0.1 == 0.3 it returns True. But in Python 3 it return False. Python3 is using IEEE 754 coding format. Do you know witch format and bit number (53?) used to code a number int or float in the microbit Python? Thanks
Nicholas Tollervey
@ntoll
@JLFra hmm.... that's a really good question. I think you'll probably find the answers on the micropython.org forums. I know that MicroPython does everything it can to reduce memory footprint and resource usage (for obvious reasons) and so the float implementation might be different to CPython's.
julien launay
@JLFra
But 0.6-0.2==0.4 return FALSE on microbit
GrampaPaul
@GrampaPaul

@carlosperate @carlosperate

Actually, you can try the latest alpha, as it uses an older version of PyQt5 it might still work in El Capitan: https://github.com/mu-editor/mu/releases/tag/1.1.0-alpha.2

Thanks for the suggestion @carlosperate. I just tried installing the mu 1.1.0-alpha.2 with no change in results. I launch mu-editor and the icon appears in my doc and then jumps up and down twice. But, otherwise no window opens & nothing else happens. Perhaps some day I will get a newer computer.

@carlosperate I finally found a way to get mu-editor to run on my mac with Elcapitan OS10.11.6. I downloaded the PortaMu for pendrive and placed it in my applications folder. It says it's version 1.0.2 but it works.
Zander
@ZanderBrown
Not really an answer but the micropython docs do state floats may have different string representations
yoyyoyo
@yoyyoyo
how do i do random stuff
julien launay
@JLFra
Hello, for your information a solution to run Mu with the new V2 microbit version
The latest MicroPython binary for Mu
Follow steps 2-4 from https://tech.microbit.org/software/beta/#mu to work with the device
McNickSisto
@McNickSisto
Hi guys I have a few problems with Mu at the moment. I cannot seem to be able to import any of the modules(pyperclip, re , etc...). Would someone please let me know what I can to arrange that situation. Also when I open the REPl, I keep on received :
Kernel died, restarting
Kernel died, restarting
Thanks in advance :)
David Dyck
@d-c-d
@McNickSisto - probably need some more information - since Mu can be used in multiple configurations - I guess you aren't using CircuitPython, what Kernel do you think it is referring to ?
McNickSisto
@McNickSisto
Hi @d-c-d ! I imported zombiedice for an exercise in Chapter 6 of Automate the Boring Stuff with Python and ever since I did, every time I open Mu's REPL it keep popping up non-stop. I can't see also to add any modules to Mu
I can get around the REPL because if I run a program before opening it, "Kernel died, restarting" seems to stop.
David Dyck
@d-c-d
@McNickSisto - sorry - that's beyond me :-), but the information might help someone else.
Were you using python virtual environment ?
What happens if you just start python on the command line - is it's repl messed up?
I see https://automatetheboringstuff.com/2e/chapter6/ mentions Zombie Dice Bots - a chapter on "Manipulating Strings" should not trigger 'kernel died' messages :-(
David Dyck
@d-c-d

@McNickSisto -

I looked at the mu sources and I do see a mention of "The runner encountered a fatal error and has died" - but nothing exactly like your "Kernel died, restarting"
maybe a screenshot would help?

Perhaps the issue is your serial port that mu is connecting to is spitting out these messages?
what serial port connected to?

See:
https://codewith.mu/en/howto/1.0/bugs
https://codewith.mu/en/howto/1.0/read_logs

bezzbe
@bezzbe

Hi, I’m new to Mu editor and Adafruit boards.
I installed the newest Mu (103) on windows 10. Then I connected my Metro M4 Express with 2.8 TFT LCD shield via USB. I made the bootloader update (update-bootloader-metro_m4-v3.10.0.uf2) and then the CircuitPython update to 6.0.0 (adafruit-circuitpython-metro_m4_express-de_DE-6.0.0.uf2) by drag and drop the files to folder METROBOOT.
For testing I started the script bitmap_font_label_simpletest.py, an example shipped with Adafruit_CircuitPython_Bitmap_Font-master .
The first lines are:

import board
from adafruit_display_text import label
from adafruit_bitmap_font import bitmap_font
display = board.DISPLAY

and I get the error: AttributeError: ‘module’ object has no attribute ‘DISPLAY’
meaning the line “display = board.DISPLAY “

Can somebody tell me where the lib ‘board’ is located and where can find the right version with DISPLAY inside? Or is there another reason for the error?

Nicholas Tollervey
@ntoll
@bezzbe :wave: OK.... this isn't so much a problem with Mu, as with CircuitPython. I'm not sure of the correct answer, but the Adafruit folks will be able to help. Have you tried connecting to their discord server and asking in the CircuitPython channel..? https://discord.gg/VzqYyVgq (that invite link will only last a day).
zjb2020
@zjb2020
i just want to know hou to install a module or library?
like Adafruit_NeoPixel
David Dyck
@d-c-d
@zjb2020 did you start here: https://circuitpython.org/libraries
the also have learn guides - like this one https://learn.adafruit.com/adafruit-neopixel-uberguide
suggest their discord server and #help-with-circuitpython https://discord.gg/adafruit
zjb2020
@zjb2020
well... @d-c-d
Martin Dybdal
@dybber
Is there any workaround to get Mu running on Catalina?
Martin Dybdal
@dybber
The CTRL-click thing worked on 2 out of 3 Mac computers (made my coworkers try it as well), but for one it didn't work. It still just suggested to throw the .app file to Trash
GordieGii
@GordieGii
I have mu installed on my Windows10 computer and it works in Python mode, but Python doesn't appear to be installed on my computer. Will installing Python (3.9) on my computer mess anything up?
Nicholas Tollervey
@ntoll
@GordieGii nope... Mu's Python and system Python are separate things.
Tierelantijntje
@Tierelantijntje
Hi.
I'm trying to install Mu on linux mint
This line gave me an error:
$ sudo pip3 install mu-editor
Namely:
  • The following required packages can not be built:
                          * freetype, png
    Could someone point me in the right direction?
Nicholas Tollervey
@ntoll
@Tierelantijntje don't use sudo pip3 but try installing Mu in a Python virtualenv instead.
Al Hard
@aalhard_twitter
trying to do exactly that, in a venv and have the same error
Al Hard
@aalhard_twitter
just lots of deps to sus out
Carlos Pereira Atencio
@carlosperate
What version of pip and Python are you using? Python >=3.8 will have issues with the dependencies. And the newest version of pip is more strict as well with dependency conflicts.
Al Hard
@aalhard_twitter
I need to dwngrade then
Al Hard
@aalhard_twitter
I got pip to finish the install but mu-editor throws error
~$ mu-editor Traceback (most recent call last): File "/usr/local/bin/mu-editor", line 5, in <module> from mu.app import run File "/usr/local/lib/python3.8/dist-packages/mu/app.py", line 34, in <module> from mu.interface import Window File "/usr/local/lib/python3.8/dist-packages/mu/interface/__init__.py", line 1, in <module> from .main import Window File "/usr/local/lib/python3.8/dist-packages/mu/interface/main.py", line 29, in <module> from PyQt5.QtSerialPort import QSerialPort ModuleNotFoundError: No module named 'PyQt5.QtSerialPort'
Al Hard
@aalhard_twitter
after adding the last dep (qtserialport) MU is running
all the latest linuxmint20 on a macbook4,1
Christine Lusey
@clusey
Hi! I'm new to Mu and I have it installed on my Raspberry Pi 4. I installed it via Recommended Software. However, when I try to run it, I get the hourglass like it's starting up, but nothing happens. Any suggestions? Sorry if it's something really obvious; as I said, I'm new to this. Thanks!
Zander
@ZanderBrown
Can you try running from the terminal (should be mu-editor, or maybe mu)?
Christine Lusey
@clusey
Mu-Editor seems to bring up this: Traceback (most recent call last):
File "/usr/bin/mu-editor", line 11, in <module>
load_entry_point('mu-editor==1.0.2', 'console_scripts', 'mu-editor')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2793, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2411, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2417, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
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 34, in <module>
from mu.interface.panes import (DebugInspector, DebugInspectorItem,
File "/usr/share/mu-editor/mu/interface/panes.py", line 37, in <module>
from qtconsole.rich_jupyter_widget import RichJupyterWidget
File "/usr/lib/python3/dist-packages/qtconsole/rich_jupyter_widget.py", line 14, in <module>
from .jupyter_widget import JupyterWidget
File "/usr/lib/python3/dist-packages/qtconsole/jupyter_widget.py", line 19, in <module>
from IPython.lib.lexers import IPythonLexer, IPython3Lexer
File "/usr/lib/python3/dist-packages/IPython/init.py", line 49, in <module>
from .terminal.embed import embed
File "/usr/lib/python3/dist-packages/IPython/terminal/embed.py", line 18, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py", line 20, in <module>
from prompt_toolkit.shortcuts import create_prompt_application, create_eventloop, create_prompt_layout, create_output
ImportError: cannot import name 'create_prompt_application' from 'prompt_toolkit.shortcuts' (/home/pi/.local/lib/python3.7/site-packages/prompt_toolkit/shortcuts/init.py)
Maybe I don't have it installed properly?
Oh wait - is it telling me something's wrong with Python itself?
Zander
@ZanderBrown
I've seen this before, can't remember what the problem was though
Christine Lusey
@clusey
Ha! Well at least it's not just me!
Zander
@ZanderBrown
Think the problem was the ipython version
Christine Lusey
@clusey
Success! I upgraded ipython and now Mu opens fine. Thank you!