Not sure how to get pyfrc on the Rio successfully to run with the units etc.
Here’s my pyproject.toml file:
#
# Use this configuration file to control what RobotPy packages are installed
# on your RoboRIO
#
[tool.robotpy]
# Version of robotpy this project depends on
robotpy_version = "2024.1.1.2"
# Which extra RobotPy components should be installed
# -> equivalent to `pip install robotpy[extra1, ...]
robotpy_extras = [
# "all"
"apriltag",
#"commands2",
# "cscore"
"navx",
# "pathplannerlib"
# "phoenix5"
"phoenix6",
# "playingwithfusion"
# "rev"
# "romi"
# "sim",
# "xrp"
]
# Other pip packages to install
requires = [
"robotpy-commands-v2==2024.0.0b4",
"pyfrc",
]
Why are you trying to use pyfrc on the roborio? It’s not intended to be used there. Though, that error message is weird and in principle it should be fine installing it on the rio.
If you want to use the units library that pyfrc uses, it’s called pint and you can install that separately. Be warned that it’s not very performant and I would expect it to make your robot code very slow, so it’s probably not a good idea to use it unless you’re very careful.
Well, it’s a good question. We had our constants.py file with pyfrc units and dimensions.
Taking that out, I got the code to deploy, and it runs without crashing now which is good…BUT
If I have a physics.py file for simulation in my repository, how do I tell the deploy process to skip the physics.py file so I don’t have any Pyfrc stuff on there at all?