by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 06 17:38
    rosco-pc closed #1074
  • Jul 06 17:38
    rosco-pc opened #1074
  • Jul 06 08:28
    tjguk commented #1072
  • Jul 05 11:08
    tmontes commented #1072
  • Jul 05 10:28
    tmontes commented #1072
  • Jul 02 16:14
    MvGulik commented #1028
  • Jul 02 05:56
    hpm007 opened #1073
  • Jul 01 19:58
    federicomm commented #985
  • Jun 28 14:13
    KKawase0104 commented #996
  • Jun 25 17:20
    tmontes commented #1072
  • Jun 25 17:18
    tmontes commented #1072
  • Jun 25 15:44
    lgtm-com[bot] commented #1072
  • Jun 25 15:25
    tjguk synchronize #1072
  • Jun 24 09:00
    tjguk commented #1072
  • Jun 24 08:58
    dybber synchronize #1017
  • Jun 23 16:03
    tjguk synchronize #1072
  • Jun 23 14:03
    tjguk commented #1072
  • Jun 23 13:55
    dybber commented #1072
  • Jun 23 13:55
    dybber commented #1072
  • Jun 23 08:38
    tjguk edited #1072
Joseph Haig
@jrmhaig
Thanks. I think the correct solution right now is to note that a future release will make this possible, but for the moment do a different project.
And regarding "1. Don't use Mu :(", you have a tutorial about that yourself - https://codewith.mu/en/tutorials/1.0/moving-on (although these particular kids are some way away from using Atom or VS Code right now)
Zander
@ZanderBrown
Well of course, eventually we want everyone to "graduate" to vsc
But initially for Code Club type things we want people using Mu so things Just Work:tm:
Joseph Haig
@jrmhaig
By the way, thanks for all your work on this. I have already said this (probably lots of times) to @ntoll already. I'm actually a Ruby developer but there is absolutely nothing like this, or for teaching Ruby to young people in general. (Actually, there is Sonic Pi but that isn't really intended as an introduction to the language)
Tim Golden
@tjguk
@jrmhaig Seconding what @ZanderBrown said there: given the constraints of working over Zoom etc. best to avoid the additionally complexity of fudging a pip-install into place. But... to give you some hope, I and others have spent quite a bit of time lately getting a "true" runtime virtualenv working on an installed version of Python. Windows one is almost there; hopefully after a discussion today, Mac testing isn't too far away either. (Insane amounts of corner-cases we keep hitting, just when we think we've got it right!)
KarlD1239
@KarlD1239
I'm using MU to program and edit circuitpython. I'm getting an error message saying this line is too long: pixels = neopixel.NeoPixel(pixel_pin, num_pixels, brightness=0.3, auto_write=False)
I'm just getting back into this and the program worked fine two years ago. Any ideas? Thanks.
Zander
@ZanderBrown
It's 83 characters, you want to stay under 80
Note this shouldn't be an error, it's a style warning
watereddown
@watereddown
I noticed yesterday tidy consolidating a multiline string into one line, then check says the line is too long (which it is). Happened repeatedly. Does the check hand know what the tidy hand is doing?
Zander
@ZanderBrown
Possibly not
They are somewhat seperate
Tim Golden
@tjguk
@watereddown yes, there is an awkward interaction between [Check] and [Tidy]. (One uses Pyflakes; the other uses Black). My proposal -- which I do hope to get to before our 1.1 release -- is to remove from [Tidy] most of the stuff which is merely aesthetic and is therefore handled by Black. Stuff which can stay includes things like warnings about unused variables etc.
Tamasin Ford
@gotrhythm88
@ZanderBrown Thanks for trying to help me with the Mac install issue earlier. I now have 3 different students who have accidentally double clicked and been locked out forever. It's really sad because we are stuck on repl.it now instead of being able to move the class onto Mu. I just want to mention it again because the issue seems to be that Mu is not "official" with Apple in some way. Perhaps that should be a priority in this online world where kids are installing software themselves?
And if I am lucky enough that someone new is looking at this... we desperately need help getting around the Mac OS gatekeeper. The installation on Mac is super delicate and kids are too click-happy to get it done right.
Zander
@ZanderBrown
One of the big things for 1.1 has been trying to figure out macOS
Unfrtunatly these things are simple (or even without cost)
Nicholas Tollervey
@ntoll
@gotrhythm88 :wave: hi, I'm so sorry to hear that Mu on OSX is not a pleasant experience for you and your students. We've tried very hard to make it as easy as possible but Apple have (again) changed the goal posts. The process of getting Mu officially "blessed" by Apple is long and tortuous and, since we're all volunteers, something that takes place in an ad-hoc way. Add to that Apple's opaque, confusing and arbitrary process and you have a recipe for pain. As a result, I don't think I ever want to write a desktop app for OSX again in my programming career. It's a path of pain and frustration.
ZanderBrown @ZanderBrown notices a missing n't from aren't, wonders how they did that
mrd2689a
@mrd2689a
Hi everyone. I'm new to mu-editor, and unfortunately, I'm brand-new to Linux as well (2nd day of Xubuntu). I'm trying to install mu-editor but running into this error:

ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7zlhxno6/matplotlib/setup.py'"'"'; file='"'"'/tmp/pip-install-7zlhxno6/matplotlib/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-install-7zlhxno6/matplotlib/pip-egg-info
cwd: /tmp/pip-install-7zlhxno6/matplotlib/

Complete output (62 lines):
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.2]
                python: yes [3.8.2 (default, Apr 27 2020, 15:53:34)  [GCC
                        9.3.0]]
              platform: yes [linux]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [not found. pip may install it below.]
      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.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: no  [skipping due to configuration]
        toolkits_tests: no  [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PySide2 not found; PyQt5 not found]
                qt4agg: no  [PySide not found; PyQt4 not found]
               gtk3agg: yes [installing, version 3.18.24]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-7zlhxno6/matplotlib/setup.py", line 197, in <module>
    msg = pkg.install_help_msg()
  File "/tmp/pip-install-7zlhxno6/matplotlib/setupext.py", line 592, in install_help_msg
    release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
             gtk3cairo: yes [installing, version 3.18.24]
                gtkagg: no  [Requires pygtk]
                 tkagg: yes [installing; run-time loading from Python Tcl /
                        Tk]
                 wxagg: no  [requires wxPython]
                   gtk: no  [Requires pygtk]
                   agg: yes [installing]
                 cairo: yes [installing, pycairo version 1.16.2]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: yes [version 9.50]
                 latex: no
               pdftops: yes [version 0.86.1]

OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]

============================================================================
                        * The following required packages can not be built:
                        * freetype, png
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Does anybody know what I can do?
!
Jack0Spades
@Jack0Spades
I'm working with a seeeduino Xiao, and I can write code with mu, and save it to the CIRCUITPY drive and it will run, but I'm having trouble connecting with the serial tool. whenever I try to click connect serial it says
"could not find an attached device"
I've tried starting mu then connecting the xiao
resetting the Xiao, resetting the Xiao to the default Arduino boot stuff and reflashing circuit python, but I can't seem to get it to connect
Jack0Spades
@Jack0Spades
I'm using windows 10
Brian Schreiner
@slackerx_gitlab
@mrd2689a I was getting the same error when trying to install via pip or pip3. Instead try installing the package via apt "sudo apt install mu-editor" everything worked fine for me after that.
kimm
@secondstarter

I ran the following code at mu.

import math

arr = [1, 2, 3, 4, 5]

product = math.prod(arr)
print(product)

Then I got the next error message.

AttributeError: module 'math' has no attribute 'prod'

However the code runs normally at python 3.8 IDLE. What's wrong with mu?

Zander
@ZanderBrown
math.prod: New in version 3.8
Nothing wrong with Mu, nothing wrong with anything
Thing to note is Mu bundles a copy of Python, 3.6 I believe, so using things from 3.8 won't work
kimm
@secondstarter
Thanks Zander!!!
Zander
@ZanderBrown
Looks like this stackoverflow gives a sensible alternative
michael pechner
@mpechner_gitlab
I installed DMG v 1.0.3 and when I open the app "mu-editor.app" can't be opened because Apple cannot check it for malicious software. I have never seen this.
image.png
KarlD1239
@KarlD1239
When I use a file search program to look for board I can find it in adafruit_boardtest file in the library files. I can't find a file that contains the word time. Where is it?
michael pechner
@mpechner_gitlab
@ZanderBrown Not the same issues. Not the same dialog. I tried the right click. Seems mu-editor is trying to run an install of the python app when you first run and it is causing an issue with the OS. When I initially saw that, I tried to run pip3 install. No luck there either. some of the dependancies will not build on OSX. I am on Catalina.
Zander
@ZanderBrown
Really it would be useful to see the dialogue in question
I assume you followed the "Disk Permissions in OSX Catalina" sections?
michael pechner
@mpechner_gitlab
Is a incompatibility with 1.0.3 and 10.15. The alpha version 1.1 installed and starts.
Rebecca Bee
@hazelnot_gitlab
Hi I just popped in to say I'm very glad this chat can be indexed by search engines cause I found a conversation from last March about the exact problem I was having with getting this to run in Arch Linux!
Rebecca Bee
@hazelnot_gitlab
Oh never mind I was wrong lmao, it didn't work for me
...unless I was supposed to uninstall mu in the non-sandboxed place
Yes that was indeed it lmao
Anyway thanks for helping someone else a year ago haha
Jack0Spades
@Jack0Spades
Mu now recognizes the Xiao I'm using ( I manually added the pid/vid of it to the file) but I'm having trouble getting the xaio to actually run the code.
I haven't even been able to get it to run the example code on the website for blinking the led