Hello, I tried to deploy robot code to my team’s robot to test some basic motor movements for a swerve module, but whenever I try to deploy, I recieve an error stating that the RoboRio expected an older version of the WPIlib than what it has currently. The error I recieved in the terminal is below.
RoboRIO has WPILib version 2023.4.2.0
ERROR: expected WPILib version 2023.3.2.1
You should either:
If the robot version is older, upgrade the RobotPy on your robot
I have just tried both of those options, and I still get the same error. The only difference is that the first part of the error (WPILib version on the RoboRIO) now reads 2023.4.3.0 rather than 2023.4.2.0.
This will always happen when you have a mismatch between the RoboRio and the WpiLib library (Even outside of RobotPy, this is true in Java and CPP as well). You need to make sure you have an updated updated RobotPy package with the correct version of WpiLib. Right now your RoboRio is ahead of your programming software (your RoboRio is even further ahead after you updated it from 2023.4.2.0 to 2023.4.3.0). Your RobotPy package is still behind at 2023.3.2.1.
Above is the link to the GitHub package for the WpiLib RobotPy version. It points to the regular installation steps with pip. You may want to do a reinstall or upgrade the package. Using pip:
What version of robotpy and pyfrc do you have on your computer? pip list robotpy
and pip list pyfrc
According to the pypi repository the current version of robotpy on your computer should be 2024.4.3.
If you run the pip command kinc95 gave you with robotpy as the package it will update the robotpy packages. pip install -U robotpy, which you’ll also need to do if you added any other dependencies like the command framework, navx, or ctre libraries from robotpy.