Skip to content
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

Problem with installing asyncio (Raspberry Pico) #9

Closed
bakotomas opened this issue Dec 3, 2021 · 9 comments
Closed

Problem with installing asyncio (Raspberry Pico) #9

bakotomas opened this issue Dec 3, 2021 · 9 comments

Comments

@bakotomas
Copy link

Hello, any idea?
image

@dhalbert
Copy link
Contributor

dhalbert commented Dec 3, 2021

There are two bundle-building problems preventing the inclusion of this library in the bundle. Please just use the release files: https://github.com/adafruit/Adafruit_CircuitPython_asyncio/releases/latest. I added a warning to the guide about this.

@dhalbert
Copy link
Contributor

dhalbert commented Dec 3, 2021

adafruit/Adafruit_CircuitPython_Bundle#357 is in abeyance.

@n6qr
Copy link

n6qr commented Dec 4, 2021

Unfortunately, the release bundles do not carry .mpy for asyncio, either. I may be missing something... can you please review @dhalbert ?

❯ wget https://github.com/adafruit/Adafruit_CircuitPython_asyncio/releases/download/0.5.0/adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip
--2021-12-04 11:15:50--  https://github.com/adafruit/Adafruit_CircuitPython_asyncio/releases/download/0.5.0/adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip
Resolving github.com (github.com)... 192.30.255.113
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/421901932/38fde781-4b7e-4c76-a26a-b969d2173d85?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211204%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211204T191551Z&X-Amz-Expires=300&X-Amz-Signature=d44db37b2888ac47d727e79b47f032df62def81d6994184576d9faa13aaeed33&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=421901932&response-content-disposition=attachment%3B%20filename%3Dadafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip&response-content-type=application%2Foctet-stream [following]
--2021-12-04 11:15:51--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/421901932/38fde781-4b7e-4c76-a26a-b969d2173d85?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211204%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211204T191551Z&X-Amz-Expires=300&X-Amz-Signature=d44db37b2888ac47d727e79b47f032df62def81d6994184576d9faa13aaeed33&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=421901932&response-content-disposition=attachment%3B%20filename%3Dadafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.109.133, 185.199.111.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 484 [application/octet-stream]
Saving to: ‘adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip’

adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip                                                           100%[=====================================================================================================================================================================================================================================================================================>]     484  --.-KB/s    in 0s      

2021-12-04 11:15:51 (58.3 MB/s) - ‘adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip’ saved [484/484]

❯ ls
Adafruit_CircuitPython_asyncio  adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip  Adafruit_nRF52_Bootloader  Arduino-1.8  circuitpython  DeepWorkClock  DeepWorkClock_DEVICE-WORKSPACE-CLONE  downloads  FeatherFactory  fonts  go  gpredict  Hamlib  Jupiter  league-mono  nasprint  PowerlineSymbols.otf.1  QSO-Party  rv  rv.zip  satpass_screensaver  ttmkfdir  xscreensaver-5.44  xscreensaver-5.44.tar.gz
❯ unzip adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip
Archive:  adafruit-circuitpython-asyncio-7.x-mpy-0.5.0.zip
{"build-tools-version": "1.8.5"}
extracting: adafruit-circuitpython-asyncio-7.x-mpy-0.5.0/examples/asyncio_simpletest.py  
❯ cd adafruit-circuitpython-asyncio-7.x-mpy-0.5.0
❯ ls -lai
total 12
2229225 drwxrwxr-x  3 tiny tiny 4096 Dec  4 11:16 .
1055403 drwxr-xr-x 23 tiny tiny 4096 Dec  4 11:16 ..
2229227 drwxrwxr-x  2 tiny tiny 4096 Dec  4 11:16 examples

@dhalbert
Copy link
Contributor

dhalbert commented Dec 4, 2021

@n6qr See comment above: #9 (comment). The bundle building is broken when trying to include asyncio, so you need to get it directly from the repo.

@n6qr
Copy link

n6qr commented Dec 5, 2021

@bakotomas I was able to follow the circuitpython build instructions to run a custom build with the default (main) branch of this repo, and asyncio is now in my build, so I'm able to get back underway with asyncio development. Note that you will have to select the correct board name from the repo port/[type]/board/[board-name] for your work when you run the 'make BOARD=[board-name]`.

Also note that there is a great deal in /main that may not make it into 7.1.x, so please be weary.

@tomasinouk
Copy link

hi guys, I believe the library is not included in release files either, all *.zip files have only examples folder nothing else.

https://github.com/adafruit/Adafruit_CircuitPython_asyncio/releases/tag/0.5.1

@dhalbert
Copy link
Contributor

I will fix that, thanks.

@dhalbert
Copy link
Contributor

The library is now in the bundle correctly, e.g. https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/tag/20211217

@dhalbert
Copy link
Contributor

This is fixed by adafruit/circup#132.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants