Closed escime closed 11 months ago
Which version of python?
Version is 3.11.0
I rebuilt and pushed a robotpy-rev==2024.0.0b1.post1
, try upgrading and see if that resolves the issue. We do run a test where we import the CANSparkMax in CI, so I can't think of a good reason why this would have broken.
If that doesn't resolve the issue, then I would uninstall the older robotpy packages that you have and try again: robotpy-navx
and robotpy-pathplannerlib
both are 2023 versions.
That resolved the issue. Thanks!
Which one resolved the issue?
Installing 2024.0.0b1.post1. After installation, software ran with no issue.
Problem description
When running code in simulation using Robotpy 2024 Beta 3, any time CANSparkMax is imported, the code fails to run with error
ImportError: generic_type: type "CANSparkMaxLowLevel" referenced unknown base type "frc::MotorController"
reported. Limiting the code to just this import line still gives the same error. This import statement still has no issue in 2023 RobotPy.[NOTE: I'm not really a Python developer or experienced with Github, so I apologize if I'm using this bug reporting process wrong.]
Operating System
Windows
Installed Python Packages
Reproducible example code