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

Bug in adafruit_hid since library update #2

Closed
skyblaster opened this issue Feb 18, 2023 · 6 comments
Closed

Bug in adafruit_hid since library update #2

skyblaster opened this issue Feb 18, 2023 · 6 comments

Comments

@skyblaster
Copy link

Test script can be found here: https://github.com/dbisu/pico-ducky/blob/main/duckyinpython.py

Line 6: 'from adafruit_hid.keyboard import Keyboard'

Traceback (most recent call last):
  File "code.py", line 6, in <module>
  File "adafruit_hid/__init__.py", line 21, in <module>
ImportError: no module named '__future__'
@urish
Copy link
Contributor

urish commented Feb 18, 2023

Can you please share the link to the wokwi project that shows this problem?

@skyblaster
Copy link
Author

@urish
Copy link
Contributor

urish commented Feb 18, 2023

Try using a newer CircuitPython version by changing diagram.json line 11 to read:

      "attrs": { "env": "circuitpython-7.3.3" }

(you can also try 8.0.2)

@skyblaster
Copy link
Author

Thanks! That works to clear the error.
I was just using the default link to create new projects here: https://wokwi.com/projects/new/circuitpython-pi-pico

@urish
Copy link
Contributor

urish commented Feb 18, 2023

Yes, we're using an older version for that link since 7.x.x had performance issues with the Pico (adafruit/circuitpython#5341), so we had to use a specific version in order to get the simulation as fast as possible. This may have been solved in recent 8.x releases (by adafruit/circuitpython#7201), but I haven't had a chance to thoroughly test it yet. Once we're sure 8.x works correctly, we'll probably switch the new project template to use the latest 8.x release.

@skyblaster
Copy link
Author

Thanks for the explanation. Love the project! Cheers!

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