-
Notifications
You must be signed in to change notification settings - Fork 55
change from using adafruit_sdcard to sdcardio #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Change from adafruit_sdcard to sdcardio .
This is for adafruit/circuitpython#3309. Note that adafruit_sdcard has issues and fails on the PyPortal and PyGamer. |
pylint errors because of upgrade of pylinit to 2.6.0 . |
@makermelissa hey hey this needs the new exceptionizalation |
Ok, should be quick. I'll submit a PR. |
The pylint updates are now merged in. @cjsieh, please pull in latest changes from repo and push again. |
pylinit 2.6.0 changes added
I think the previous actions issue was a temporary problem. Something in the installing dependencies section failed to download the proper file. I re-ran the jobs and it did get past that issue. After that it did need one minor change in the docs config file to include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this successfully on
Adafruit CircuitPython 6.0.0-alpha.3 on 2020-08-28; Adafruit PyPortal with samd51j20
Ordinarily I would think we'd want some sort of backwards compatibility since sdcardio
is not in a stable release yet. But it wasn't working previous as noted by the issue on the core repo noted above. Maybe something could be done in adafruit_sdcard to fix it and then backward compatibility could be provided here.
This looks good to me. Thanks for this fix @cjsieh!
I am curious if anyone else has thoughts or ideas about the backward compatibility aspect of it. If we merge this then the library will crash on 5.3.1
. It would need to be used with a newer alpha release at this time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Until 6.0.0 is stable I think we want this to be backwards compatible because it does work for many uses on 5.3.1. I've commented what needs to be changed for backwards compatibility I think.
….x.x sdcardio is not in 5.x.x so code added to test for this Co-authored-by: Scott Shawcroft <[email protected]>
fix pylint and black errors
black fix again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@FoamyGuy Mind retesting this? Thanks! |
I retested this. Still working successfully on |
Updating https://github.com/adafruit/Adafruit_CircuitPython_MLX90640 to 1.2.0 from 1.1.5: > Merge pull request adafruit/Adafruit_CircuitPython_MLX90640#21 from adafruit/fix-pylint > Merge pull request adafruit/Adafruit_CircuitPython_MLX90640#18 from fgervais/broken-pixels Updating https://github.com/adafruit/Adafruit_CircuitPython_PyPortal to 3.4.0 from 3.3.1: > Merge pull request adafruit/Adafruit_CircuitPython_PyPortal#83 from cjsieh/scard_vs_sdcardio Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE to 7.3.0 from 7.2.1: > Merge pull request adafruit/Adafruit_CircuitPython_BLE#103 from dhalbert/hci Updating https://github.com/adafruit/Adafruit_CircuitPython_BLE_BerryMed_Pulse_Oximeter to 2.0.2 from 2.0.1: > Merge pull request adafruit/Adafruit_CircuitPython_BLE_BerryMed_Pulse_Oximeter#4 from dhalbert/up-to-date-data Updating https://github.com/adafruit/Adafruit_CircuitPython_framebuf to 1.4.1 from 1.3.4: > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#35 from makermelissa/master > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#34 from makermelissa/master > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#33 from jsharper/fix/jsharper/image-rotate
Change from adafruit_sdcard to sdcardio .