Developing Robotpy

What setup do I need to develop robotpy? Specifically, I’m attempting to contribute to robotpy-ctre. I have a venv with wpilib, hal-base, and hal-roborio, along with pytest. When I run the unit tests, here is the error I get:

___________________ ERROR collecting tests/test_cantalon.py ____________________
test_cantalon.py:2: in <module>
    import ctre
../ctre/__init__.py:2: in <module>
    from .cantalon import CANTalon
../ctre/cantalon.py:2: in <module>
    import hal
../../../.venv/ctre/lib/python3.6/site-packages/hal/__init__.py:1: in <module>
    from .functions import *
../../../.venv/ctre/lib/python3.6/site-packages/hal/functions.py:9: in <module>
    from hal_impl.fndef import _RETFUNC, _THUNKFUNC, _VAR, _dll, sleep
../../../.venv/ctre/lib/python3.6/site-packages/hal_impl/fndef.py:10: in <module>
    C.CDLL(os.path.join(_module_path, "libwpiutil.so"))
/usr/lib64/python3.6/ctypes/__init__.py:348: in __init__
    self._handle = _dlopen(self._name, mode)
E   OSError: /home/nick/.venv/ctre/lib/python3.6/site-packages/hal_impl/libwpiutil.so: wrong ELF class: ELFCLASS32

Do I need to run the tests on the roborio vm?

The RobotPy Gitter chat might be a good place to ask: https://gitter.im/robotpy/robotpy-wpilib

As mentioned in gitter chat (posting here in case someone else is wondering), you can’t run hal-roborio off the RoboRIO, you need hal-sim installed instead.