Closed mttdr closed 1 year ago
Hi @mttdr
Thanks for opening up an issue.
I would recommend upgrading to the latest beta v4.2.0b2
via pip install --upgrade micropy-cli
/ pipx upgrade micropy-cli
(depending on how you installed).
There has been some much needed improvements since the latest stable in regards to stubs creation in that beta, so I expect you may see some very different results.
I would also take a look at #400 for more information (and why the beta has not quite been pushed out yet.)
If you are able to give that a try, would appreciate any updates regarding how it worked out for you. Thanks.
Unfortunately it still gets stuck when copying stubs, this time at cmath.py:
$ micropy stubs create /dev/ttyACM0
MicroPy Connecting to Pyboard @ /dev/ttyACM0
MicroPy ✔ Connected!
2023-04-08 11:28:55.032 | DEBUG | stubber.minify:minify_script:251 - Original length : 25279
2023-04-08 11:28:55.032 | INFO | stubber.minify:minify_script:252 - Minified length : 10476
2023-04-08 11:28:55.032 | INFO | stubber.minify:minify_script:253 - Reduced by : 14803
MicroPy Executing stubber on pyboard...
[removed for brevity]
MicroPy Pyboard Created stubs for 100 modules on board micropython-v1.19.1-rp2
MicroPy Pyboard Path: /stubs/micropython-v1_19_1-rp2
MicroPy ✔ Done!
MicroPy Copying stubs...
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/_boot_fat.py: 100%|█████████████████████████████████| [173/173 @ 287B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/_onewire.py: 100%|██████████████████████████████████| [310/310 @ 309B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/_rp2.py: 100%|██████████████████████████████████████| [988/988 @ 546B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/_thread.py: 100%|███████████████████████████████████| [426/426 @ 424B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/_uasyncio.py: 100%|█████████████████████████████████| [367/367 @ 365B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/adcfft.py: 100%|████████████████████████████████████| [272/272 @ 271B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/array.py: 100%|█████████████████████████████████████| [269/269 @ 268B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/binascii.py: 100%|██████████████████████████████████| [291/291 @ 290B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_as7262.py: 100%|███████████████████████████| [826/826 @ 457B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_bh1745.py: 100%|███████████████████████████| [509/509 @ 507B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_bme280.py: 100%|███████████████████████████| [640/640 @ 455B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_bme68x.py: 100%|███████████████████████████| [736/736 @ 523B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_bmp280.py: 100%|███████████████████████████| [642/642 @ 456B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_dotmatrix.py: 100%|████████████████████████| [468/468 @ 466B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_encoder.py: 100%|██████████████████████████| [576/576 @ 410B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_icp10125.py: 100%|█████████████████████████| [386/386 @ 384B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_ioexpander.py: 100%|███████████████████| [1.02k/1.02k @ 474B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_ltr559.py: 100%|███████████████████████████| [759/759 @ 540B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_matrix11x7.py: 100%|███████████████████████| [340/340 @ 338B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_mics6814.py: 100%|█████████████████████████| [787/787 @ 435B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_msa301.py: 100%|███████████████████████| [1.25k/1.25k @ 578B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_paa5100.py: 100%|██████████████████████████| [544/544 @ 387B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_pmw3901.py: 100%|██████████████████████████| [544/544 @ 387B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_potentiometer.py: 100%|████████████████████| [546/546 @ 388B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_rgbmatrix5x5.py: 100%|█████████████████████| [342/342 @ 341B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_rtc.py: 100%|██████████████████████████| [2.13k/2.13k @ 570B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_scd41.py: 100%|████████████████████████████| [405/405 @ 403B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_sgp30.py: 100%|████████████████████████████| [572/572 @ 407B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_trackball.py: 100%|████████████████████████| [586/586 @ 417B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/breakout_vl53l5cx.py: 100%|█████████████████████████| [846/846 @ 468B/s]
MicroPy Pyboard Reading /stubs/micropython-v1_19_1-rp2/cmath.py: 100%|█████████████████████████████████████| [392/392 @ 390B/s]
Looking at the issue you link maybe it's worth mentioning that the board I'm using has 4mb of flash
@mttdr Following up on this -- I suspect this issue has been resolved in the most recent stable release of micropy. Have you had a chance to try it?
I am going to go ahead and close this as I suspect it as been resolved. Please let me know if otherwise. Thanks
excuse me about the late reply.
Yes I did manage to create stubs correctly. although I'm not sure if it was thanks to the update or to the new board I'm using (the first one was giving me other headaches and thankfully they sent me a new one)
@mttdr No problem, and happy to hear you've had some success.
Hello, I'm trying to create stubs from my Pico Lipo board (a clone of Raspberry Pi Pico, with added functionality) because I want support for auto-completion of libraries like
picographics
that are added by Pimoroni and not present in the standard rp2 stubs.I run
micropy stubs create /dev/ttyACM0
the process will start, proceed for a bit and then always get stuck at the same step when copying stubs (and a CPU thread will be at 100% until I cancel the command).See below for the complete log: