Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
  • Sep 19 10:21
    sabitesback opened #1811
  • Sep 19 07:14
    rivandemo commented #1806
  • Sep 18 19:36
    ajs256 commented #1806
  • Sep 17 11:48
    rivandemo opened #1806
  • Sep 17 05:30
    stefanowhite opened #1805
  • Sep 17 05:26
    stefanowhite opened #1804
  • Sep 16 21:58
    timiro13 opened #1803
  • Sep 14 23:25
    ayushidg opened #1802
  • Sep 14 10:20
    fratquintero opened #1801
  • Sep 13 14:20
    fmorton synchronize #485
  • Sep 11 08:13
    yuriy-bak opened #1798
  • Sep 10 16:22
    Capekk edited #1797
  • Sep 10 16:19
    Capekk edited #1797
  • Sep 10 16:14
    Capekk opened #1797
  • Sep 10 06:55
    angelinaceressia opened #1796
  • Sep 10 00:12
    xbecas synchronize #1795
  • Sep 10 00:01
    elias40000 commented #1781
  • Sep 09 22:43
    tmontes commented #1795
  • Sep 09 22:31
    xbecas opened #1795
  • Sep 09 22:17
    xbecas commented #1138
Dani Long
So, yeah. Also, currently installed pkg matplotlib = 3.3.4 (not 2.2.2)
Zander Brown
Are you using a venv?
Dani Long
No, I tried. I am going to try again.
Zander Brown
Did you activate the venv? A fresh venv shouldn't have any matplotlib at all
Dani Long
But... this is confusing: (from https://docs.python.org/3/library/venv.html):
Deprecated since version 3.6: pyvenv was the recommended tool for creating virtual environments for Python 3.3 and 3.4, and is deprecated in Python 3.6.
Next line: Changed in version 3.5: The use of venv is now recommended for creating virtual environments.
Zander Brown
As in you use python -m venv instead of pyvenv
Dani Long
⊙.☉ Oh. Clearly I am not ready closely.
Dani Long

venv installed, mu-env created.

From within the mu-env dir, tried to ''''pip install matplotlib==2.2.2''' but it looks like it wants to use a cached version of matplotlib-2.2.2.tar.gz AND ended up with this error message:

'''WARNING: Discarding https://files.pythonhosted.org/packages/ec/ed/46b835da53b7ed05bd4c6cae293f13ec26e877d2e490a53a709915a9dcb7/matplotlib-2.2.2.tar.gz#sha256=4dc7ef528aad21f22be85e95725234c5178c0f938e2228ca76640e5e84d8cde8 (from https://pypi.org/simple/matplotlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement matplotlib==2.2.2
ERROR: No matching distribution found for matplotlib==2.2.2'''

Also from within mu_env directory, tried to install python3.8.12 (last stable 3.8):

sudo apt install python3.8 1 ⨯
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3.8' has no installation candidate

I cannot find any documentation that says to do either of these tasks any other way than what I did, above.

Side note - what am I doing incorrectly that the formatting isn't working when I post here?
Zander Brown
Not sure
but you should be doing this
Dani Long
Oh, hey, copy/paste did work.
venv installed and running ok. Can't figure out how to point to Python-3.8.12 (which I believe is now installed correctly.
I found a glitch which is happening to other people I know as well. When I make a game and define the screen dimensions if it is too big and I have to drag it up from the corner the part of the screen which was hidden is black and there is no display. Is there a way to fix this.
Nicholas Tollervey
@SadBeaBurrito this is a problem with PyGame, not Mu. You could raise the issue with them.... see: https://www.pygame.org/ for details of how to do this. Best of luck..!
Does anyone know how to install MU for all users? Need to do an install for a school
^^ for windows, domain joined machines
Nicholas Tollervey
@EthanLilley4_twitter this is something on the radar that @tmontes is looking into.
Brill, thanks @ntoll , any advice for a work around or is it best to get individuals to install this for the time being
Tiago Montes
Give me a min @EthanLilley
…does this help? Should work. Feedback is welcome, though! :)
1 reply
Nicholas Tollervey
Sneak peek... for those who want to be able to select their language for the UI. Currently a draft feature to be added to the admin dialog.
....PR here: mu-editor/mu#1790
@tmontes i'll have a look, thankyou!
No Run button with Win10, CircuitPython and ESP32S2. Connects fine but the terminal window header says 'CircuitPython REPL' but I can't enter any text.... Thoughts?
Hirokazu Yamazaki
I use Mu for micro:bit.
Does it
support double byte character like katakana.
Hirokazu Yamazaki
It seems index doesn't work
katakana string.
Hi, I have an issue with opening Mu. I have posted it to GitHub with #1797 (mu-editor/mu#1797). If anyone knows something that may help, please let me know. Thank you
John Gallaugher
Mu on my M2
Peter Narbus
Nubie running 1.1.0.beta.5 and CircuitPython do not have a RUN button. Only SERIAL and PLOTTER buttons... How do I get the RUN button to appear? Thanks.
I have a new board from Lolin using the ESP32-S2 silicon. I'm able to use Micropython via a serial interface, but Mu won't recognize it. Any thoughts? Is it a connection issue, or is that flavor of ESP32 not yet supported?
In other words ... Does "microbit" module support all micro:bit functions (concrete "microbit.volume()")? https://microbit.org/news/2020-06-29/add-volume-control-to-microbit-music/
Nicholas Tollervey
@PETRSIL best ask this on micro:bit support channels.
3 replies
u there
Nicholas Tollervey
@zbrown:matrix.org :point_up:
Zander Brown
I got two pings, not sure why?
hows it going
J. Sheldon
Hello, any pygame zero users I could chat with?
it seems like some of the libraries for pygame zero aren't working on the mu editor. For instance screen.draw.text("hello world", (20, 100)) results in NameError: name 'screen' is not defined
Nicholas Tollervey
@JimSFX_twitter what version of Mu are you using, and how did you install it..? Also, can you please confirm you're running your code in PyGameZero mode (click on the snake button in the top left and select PyGameZero in the list of available modes that'll appear). Then click on the "run" button. Documentation is here: https://codewith.mu/en/tutorials/1.1/pgzero As for not working in Mu, it works for me, so there's probably something amiss at your end. Please do let us know how you get on. Thanks and best of luck..! :-)
Is it possible to use sympy with MU, and if, how?
Carl J. Nobile
@Svein-Tore That's a simple question but it has a complicated answer.
Does the python code in sympy use any statements that are not implemented in micropython?
What system are you running it on?
Does this system have the memory for its use?
If there is low-level C/C++ code in the sympy library then the answer is no, it will not work on any MCU board unless you can cross-compile that code.
You'll have to just try it an see if it works.