RobotPy 2023 is now available

We’re happy to announce the release of RobotPy for 2023! Just pip3 install robotpy

and you’re off and running! Well, read the install guide.

  • All WPILib 2023.1.1 features are available
  • Commands v1 is gone (yay) but Commands v2 is available
  • CTRE, PWFusion, REV vendors are available
  • robotpy-cscore has wheels now for desktop platforms, which makes it much easier to install
  • robotpy-apriltag is a thing now, check it out
  • pyntcore no longer requires pynetworktables and replaces it. Lots of API changes here because of NT4
  • Our examples repository has a lot more examples! Thanks especially to @BerkeSinanYetkin and @mrguisamuel

Python is not an official FRC language yet, but we are working with the WPILib team to make it official in 2024. See Bringing Python to FRC — WPILib for the announcement.

Thanks to everyone who contributed to this release!

11 Likes

Hi, I’m trying to install robotpy on an M1 Mac and I get the following error

Building wheel for robotpy-wpiutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
running bdist_wheel
running build
running build_py
running build_gen
running build_dl> Downloadinghttps://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/wpiutil/wpiutil-cpp/2023.4.2/wpiutil-cpp-2023.4.2-osxuniversal.zip
error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)>

Is there something that I need to do on my end?
Thank you.

You need to be running Python 3.11 on a M1 mac to install our prebuilt wheels.

If you still run into SSL issues after switching to Python 3.11, then this stack overflow post about installing certificates should do the trick.

Using python 3.11 worked. Thank you.

Hey again. Just looking for some verification. We are running PhotonVision 2023.4.2 on our Orange
Pi 5. Our Rio is running RobotPy. When we run the RobotPy installer, it says the PhotonVision requirement is satisficed to the latest version. But… The Driver Station Console keeps whining that the “Photon Vision version 2023.3.0 does not match”. Is this normal or do we need to update something else?

Are you using the photonvision library on the Rio to access data from your camera? Updating photonvision on your pi won’t update the Library on the Rio. You have to update it separately.

Yes we are using photonvision library on the Rio.
We run this command while connected to the internet: “py -3 -m robotpy_installer download robotpy[photonvision]”, and then run “py -3 -m robotpy_installer install robotpy[photonvision]” manually to actually install. It responds that the requirement is already met.

So, is this not doing what you suggested. If not, please help us find the right process to update it on the Rio.

The latest version of robotpy-photonvision is 2023.3.0 (robotpy-photonvision · PyPI)

It looks like there is a PR to update to the latest version of the photonvision vendor dep (Update to PhotonLib v2023.4.0 by auscompgeek · Pull Request #19 · robotpy/robotpy-photonvision · GitHub) but the photon vision folks added some stuff that makes it really challenging for us to wrap it. I guess nobody has bothered fixing it?

I don’t personally care about photonvision, so I’m not inclined to spend time on it unless it’s something easy to do (which it was at first, but no longer seems to be the case).

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.