micropip returned with error code 1

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
arj
Posts: 9
Joined: Wed Feb 03, 2021 5:45 pm

micropip returned with error code 1

Post by arj » Wed Feb 03, 2021 5:57 pm

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?

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: micropip returned with error code 1

Post by aivarannamaa » Wed Feb 03, 2021 7:52 pm

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)
Aivar Annamaa
https://thonny.org

arj
Posts: 9
Joined: Wed Feb 03, 2021 5:45 pm

Re: micropip returned with error code 1

Post by arj » Wed Feb 03, 2021 9:45 pm

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.

JumpZero
Posts: 54
Joined: Mon Oct 30, 2017 5:54 am
Location: Arcachon - France

Re: micropip returned with error code 1

Post by JumpZero » Thu Feb 04, 2021 12:09 pm

arj wrote:
Wed Feb 03, 2021 9:45 pm
Seeing the tabs and spaces would really help.
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.

User avatar
aivarannamaa
Posts: 171
Joined: Fri Sep 22, 2017 3:19 pm
Location: Estonia
Contact:

Re: micropip returned with error code 1

Post by aivarannamaa » Thu Feb 04, 2021 1:14 pm

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

Post Reply