Correct way to add stubs for umqtt.simple
when using rp2 port?
#821
-
I'm working with the Raspberry Pi Pico 2 W and have successfully installed the I spent a long time trying to find a good solution to this but couldn't really find anything useful. Doing In the end I did a search in this repo for But I expect that the "solution" I went with also comes with some downsides and suspect/hope there is a better approach. What would that be? Update: as expected I am encountering errors now, "country" is not a known attribute of module "rp2"" I've just added |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi Hendrik, you are the first to report this , but I have been expecting this question, though I do not yet have a scalable solution for it. I build the stub packages based on the frozen modules to be an exact match to the firmware. The PICO2_W standard firmware does not have the does not But the downside of that is that I have considered creating separate stub packages for each individual module in stdlib-stubs, but that are more than a few ...
the first one is more precise , the 2nd one a bit simpler. I have been thinking of adding the ability to download / create individual stubs to either mpflash or the stubber package. |
Beta Was this translation helpful? Give feedback.
Hi Hendrik, you are the first to report this , but I have been expecting this question, though I do not yet have a scalable solution for it.
I build the stub packages based on the frozen modules to be an exact match to the firmware. The PICO2_W standard firmware does not have the does not But the downside of that is that
mpremote mip
installed modules do not show up asmpremote mip
is oblivious to type-stubs, and prefers the.mpy
version to save on space.I have considered creating separate stub packages for each individual module in stdlib-stubs, but that are more than a few ...
for now I see two short term options:
pip install -U micropython-rp2-rpi_pico2_w…