-
Notifications
You must be signed in to change notification settings - Fork 40
ServoKit problem on Jetson Nano #58
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
Comments
@FoamyGuy is it worth catching NotImplemented in this block for typing across the other libraries? |
i dont thik you need to back-port it...but maybe going forward! |
Hi, I'm afraid it is a bit more complicated :). It's still not working with the new version of the motor library:
|
@belovictor can you try version 3.3.1 in your environment: https://github.com/adafruit/Adafruit_CircuitPython_Motor/releases/tag/3.3.1 I'm curious whether that one works for you. The line raising the exception you posted is here:
My understanding is that it should be ignoring the type information during runtime, so I'm not sure why that would raise an error for you. I am wondering though if whatever you are attempting to do does actually require pwmOut? If that is how you are attempting to drive the servo and your main device doesn't have |
I found this SO answer which might be the same root cause. https://stackoverflow.com/a/27461145/507810 Perhaps doing the annotation like this could allow it to work:
|
@FoamyGuy after installing version 3.3.1 of motor library with I'm not using motor library directly, as you may note from the code I've posted in the initial issue, motor library is being called from inside of ServoKit which also happens to be Adafruit code. I'm sure that using PCA9685 over I2C does not require pwmOut though :) |
Thanks for trying that out and confirming. I'll look into this today and see if we can use a string for the type annotation. If that doesn't cause any other issues then it may be the best way to go. |
My understanding of using strings as annotations is for when something hasn't been defined yet but will be. So for example, you're typing as a class that will be defined later in the same file. I think you will still get errors from a static type checker if you type something in strings that isn't or won't be available in the namespace. |
So in this context it will still look for PWMOut to be defined somehow, I believe |
Hi,
While using the PCA9685 board with NVIDIA Jetson Nano through I2C I get a mysterious error while trying to run a simple example:
Running this code leads to the following error:
This looks weird as it should not depend on the availability of PWM pins on the Jetson board?
I have the following versions of Adafruit libraries installed on Jetson, all installed through pip:
adafruit-circuitpython-servokit (1.3.6)
adafruit-circuitpython-pca9685 (3.3.9)
adafruit-circuitpython-motor (3.3.2)
Adafruit-Blinka (6.15.0)
Thanks in advance
The text was updated successfully, but these errors were encountered: