I'm new to MicroPython. I'm playing with a Raspberry Pi Pico microcontroller. I'm using Thonny V3.3.3 on a PC to write my code. I'm trying to import "easing-functions" V1.0.4 using Thonny's Manage Packages. I'm getting an error :-
Installing to temp directory
Error installing 'easing-functions': , packages may be partially installed
Installing to: C:\Users\A.......
Warning: micropython.org SSL certificate is not validated
micropip returned with error code 1
Any clues as to what I'm doing wrong?
micropip returned with error code 1
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: micropip returned with error code 1
Most likely this PyPI package is not meant for MicroPython.
Currently Thonny uses micropip.py (https://github.com/peterhinch/micropyth ... icropip.py), which assumes the package is specifically made for MicroPython (https://docs.micropython.org/en/latest/ ... kages.html)
Currently Thonny uses micropip.py (https://github.com/peterhinch/micropyth ... icropip.py), which assumes the package is specifically made for MicroPython (https://docs.micropython.org/en/latest/ ... kages.html)
Aivar Annamaa
https://thonny.org
https://thonny.org
Re: micropip returned with error code 1
Ok, thanks. I thought is might be something like that. I was assuming any Python package would work and feared I was doing something stupid.
Thanks for your guidance!
ps I notice you are connected with Thonny. Teaching my son, and myself, to use MicroPython (with Thonny) over the last few days. It'd be really helpful if the editor had an option to display tabs and spaces (like Visual Studio does) so you can understand the extremely frustrating "indent" errors where lines (pasted from elsewhere) look lined up but are evidently not. The only solution I could find was to remove all indenting and then put it back in. Seeing the tabs and spaces would really help.
Thanks for your guidance!
ps I notice you are connected with Thonny. Teaching my son, and myself, to use MicroPython (with Thonny) over the last few days. It'd be really helpful if the editor had an option to display tabs and spaces (like Visual Studio does) so you can understand the extremely frustrating "indent" errors where lines (pasted from elsewhere) look lined up but are evidently not. The only solution I could find was to remove all indenting and then put it back in. Seeing the tabs and spaces would really help.
Re: micropip returned with error code 1
Oh no
Seeing control characters: I hate that.
In this case it should be an option: disable/enable then anyone can choose.
A option I would greatly appreciate in Thonny would be (like in Geany) the "+" and "-" symbols to be able to fold/unfold functions, if, while, etc.. With big programs it helps to make them more readable.
- aivarannamaa
- Posts: 171
- Joined: Fri Sep 22, 2017 3:19 pm
- Location: Estonia
- Contact:
Re: micropip returned with error code 1
arj, Thonny 3.3 shows tabs with different background, so if a piece of whitespace has different background from the rest (beige in the default light scheme), then it's a tab. Feel free to suggest features at https://github.com/thonny/thonny/issues/new and let's keep this forum for topics related to MicroPython
Aivar Annamaa
https://thonny.org
https://thonny.org