Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unix port: uasyncio does not have certain classes/methods #8596

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

Closed
GimmickNG opened this issue Apr 29, 2022 · 2 comments
Closed

Unix port: uasyncio does not have certain classes/methods #8596

GimmickNG opened this issue Apr 29, 2022 · 2 comments

Comments

@GimmickNG
Copy link

The uasyncio library does not have the ThreadSafeFlag, Lock and possibly other classes (I haven't checked the rest), and the gather method does not work either. I get the following errors when running on release 1.18:

MicroPython v1.18 on 2022-04-29; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import uasyncio as asyncio
>>> asyncio.ThreadSafeFlag
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uasyncio/__init__.py", line 26, in __getattr__
AttributeError: ThreadSafeFlag
>>> asyncio.gather
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uasyncio/__init__.py", line 27, in __getattr__
ImportError: no module named 'uasyncio.funcs'
>>> asyncio.Lock
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uasyncio/__init__.py", line 27, in __getattr__
ImportError: no module named 'uasyncio.lock'
>>> asyncio.__version__
(3, 0, 0)

I'm not sure whether this is related, but when creating the Unix port with the release zip, I couldn't run make submodules as it wasn't a git directory. When I tried to build from the master branch, I couldn't import uasyncio as it said the .mpy versions were incompatible.

@dlech
Copy link
Contributor

dlech commented Apr 29, 2022

#6109 (comment) is probably relevant

@GimmickNG
Copy link
Author

#6109 (comment) is probably relevant

Thanks, that worked!

RetiredWizard pushed a commit to RetiredWizard/micropython that referenced this issue Nov 16, 2023
…tuff

Remove some stuff about reserved psram & supervisor allocations
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

2 participants