Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Another CIRCUITPYTHON BUNDLE 6.X 20210313
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Another CIRCUITPYTHON BUNDLE 6.X 20210313

by akbykraz on Sat Mar 13, 2021 10:44 pm

Was working on Matrix Portal Weather scroller ... Had a lockup & could not reload UF2 from my iMac (MATRIXBOOT
would not show) ... Moved matrix to my win7 machine & loaded 6-2-0-beta.3 (was running 6.1.0) ... While I was at it I
updated the lb files from distro 20210311 bundle ... Got Attrib error ; NONE type obj has no attribute 'split' msg from
display-text lib ... Put 6.1.0 back on Matrix Portal with same result ... Rolled display_text lib back to 20210303 with same error
but from PortalBase this time ... Rolled back PortalBase lib to 20210303 & weather scroller program runs ... Reloaded 6.2.0-beta.3 ...
Program runs ... 'Bug in PortalBase? '

Did not chase down code as it appears in CircuitPython libs & not my code ... ('Ain't gonna' go there ... Don't have the
skills to chase !)

Skip

akbykraz
 
Posts: 34
Joined: Sat Sep 12, 2020 4:00 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by dastels on Sun Mar 14, 2021 11:24 am

Try removing everything in CIRCUITPY/lib, empty trash, and reload it. As the modules change and get refactored there is sometimes some obsolete code that gets left behind if you just copy new versions over.

Dave

dastels
 
Posts: 6117
Joined: Tue Oct 20, 2015 3:22 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by jliu70 on Sun Mar 14, 2021 12:14 pm

@dastels

A newbie question: In general if you upgrade the CircuitPython UF2 on a device, would it be best to delete the lib directory and download the corresponding bundle (assuming they are released around the same time) and reload the /lib/ libraries again?

For example:
Code: Select all | TOGGLE FULL SIZE
-rw-r--r--@ 1 jliu  staff  3318638 Oct 21 20:38 adafruit-circuitpython-bundle-6.x-mpy-20201020.zip
-rw-r--r--@ 1 jliu  staff  3481213 Jan  3 14:51 adafruit-circuitpython-bundle-6.x-mpy-20210103.zip
-rw-r--r--@ 1 jliu  staff  3739138 Feb 24 16:00 adafruit-circuitpython-bundle-6.x-mpy-20210224.zip
-rw-r--r--@ 1 jliu  staff  3822176 Mar 13 21:08 adafruit-circuitpython-bundle-6.x-mpy-20210313.zip



EDIT: whoops, I noticed another forum post where you have a python script to help do just that. Although it's a little unclear if the bundle needs to be matched as your script tries to copy over the latest versions.

viewtopic.php?f=60&t=176746

https://github.com/dastels/circuitpython_deploy


Thanks,
Jeff

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by akbykraz on Sun Mar 14, 2021 12:39 pm

@jliu ... (newbie to CircuitPython and these 'computers' but not to code debugging) ...
confused by your reply ... do not have procedure U described ... doesn't appear 2 B
germain to the problem ...

@dastels ... CIRCUITPY board was erased using storage.erase procedure, rebuilt with
latest UF2 & newest libs ... IF there's code left over from rebuilds, it's gonna' have 2
B in the latest libs ...

Thanks anyways, Folks

Skip

akbykraz
 
Posts: 34
Joined: Sat Sep 12, 2020 4:00 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by dastels on Sun Mar 14, 2021 12:52 pm

jliu70 wrote:@dastels

A newbie question: In general if you upgrade the CircuitPython UF2 on a device, would it be best to delete the lib directory and download the corresponding bundle (assuming they are released around the same time) and reload the /lib/ libraries again?


Jeff, bundles versions don't correspond with versions of the UF2, other than the major version (i.e. used 6.x versions of the bundle with 6.x versions of CircuitPython). It's good idea to update the bundle every few days as the modules are constantly being improved.

Dave

dastels
 
Posts: 6117
Joined: Tue Oct 20, 2015 3:22 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by jliu70 on Sun Mar 14, 2021 4:21 pm

@dastels Thanks for the clarification -- it's always best to go with the latest bundle as they are tied only to the major release and they are not tied to a specific UF2 release.


@akbykraz Sorry if I didn't really help. Seems like others are having similar issues. See this forum post: viewtopic.php?f=60&t=176736
Seems like it's related to the same library "adafruit_display_text", and it's when it's trying to initialize the object.

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by dastels on Sun Mar 14, 2021 4:35 pm

akbykraz wrote:oblem ...

@dastels ... CIRCUITPY board was erased using storage.erase procedure, rebuilt with
latest UF2 & newest libs ... IF there's code left over from rebuilds, it's gonna' have 2
B in the latest libs ...



Can you post the error backtrace you see in the REPL?

Dave

dastels
 
Posts: 6117
Joined: Tue Oct 20, 2015 3:22 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by akbykraz on Sun Mar 14, 2021 11:22 pm

@dastels ... Ok ... tossed my notes already but should B able 2 retrace my builds as I keep the last 3
current builds I've been playing with ... Plus I should also B able 2 see the file creation dates on my
drive ... Give me a couple days & I ferret them out ...

Skip

akbykraz
 
Posts: 34
Joined: Sat Sep 12, 2020 4:00 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by jliu70 on Mon Mar 15, 2021 1:36 pm

I played around and found a few things which may help narrow down the issue. NOTE: I used the "Network Connected Matrix Clock" project for troubleshooting.

First off, I ran CircuitPython 6.1.0
Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Matrix Portal M4 with samd51j19


Next, I tried different versions of the libraries. The CircuitPython Bundle for 6.x from 2021-02-24 works.
The CircuitPython Bundle for 6.x from 2021-03-13 does not work and errors out with the error reported above.

Code: Select all | TOGGLE FULL SIZE
 3739138 Feb 24 16:00 adafruit-circuitpython-bundle-6.x-mpy-20210224.zip
 3822176 Mar 13 21:08 adafruit-circuitpython-bundle-6.x-mpy-20210313.zip


The libraries loaded are:
Code: Select all | TOGGLE FULL SIZE
ls -l /Volumes/CIRCUITPY/lib
total 64
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_bitmap_font
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_bus_device
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_display_shapes
drwxrwxrwx@ 1 jliu  staff   1024 Oct 21 20:38 adafruit_display_text
drwxrwxrwx  1 jliu  staff   2048 Oct 21 20:38 adafruit_esp32spi
-rwxrwxrwx@ 1 jliu  staff    705 Mar 13 05:12 adafruit_fakerequests.mpy
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_imageload
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_io
-rwxrwxrwx@ 1 jliu  staff   6178 Oct 20 05:11 adafruit_lis3dh.mpy
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_matrixportal
drwxrwxrwx@ 1 jliu  staff   1024 Mar 15 12:47 adafruit_portalbase
-rwxrwxrwx@ 1 jliu  staff  12187 Oct 20 05:11 adafruit_requests.mpy
-rwxrwxrwx@ 1 jliu  staff   1891 Oct 20 05:11 neopixel.mpy


However, it's not all the libraries.
Specifically two libraries are the cause of the issue:

Code: Select all | TOGGLE FULL SIZE
adafruit_display_text
adafruit_matrixportal


All the other libraries I kept with the newest versions in the newest bundle. Only those two had to be rolled back.

I'm not sure how to look at what's changed, but I believe that the recent changes have broken backwards compatibility for the example code.

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by jliu70 on Mon Mar 15, 2021 2:01 pm

Found this issue which may be related: https://github.com/adafruit/Adafruit_Ci ... issues/141

Issue seems to be fixed.

Tried again with the latest bundle adafruit-circuitpython-bundle-6.x-mpy-20210314 and it works.

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Another CIRCUITPYTHON BUNDLE 6.X 20210313

by akbykraz on Wed Mar 17, 2021 2:13 am

@dastels ... here the traceback code from the bogus lib of 0311 :

Traceback (most recent call last):
File "code.py", line 79, in <module>
File "openweather_graphics.py", line 133, in __init__
File "adafruit_display_text/label.py", line 84, in __init__
AttributeError: 'NoneType' object has no attribute 'split'

Based on a hunch (@jliu & my current pybadge project), I replaced the 0311 display_text lib
from the 0314 bistro ... The error went away ... I tend to agree with @jliu that the problem may
have been fixed ... Am not gonna' chase down my pybadge project

Thanks @jliu & @dastels,
Skip

akbykraz
 
Posts: 34
Joined: Sat Sep 12, 2020 4:00 pm

Please be positive and constructive with your questions and comments.