Closed BTanjerine closed 5 years ago
Looks like it's not installing robotpy-cscore in the same venv as your project
how can this be fixed? how do is it try to install on a different environment? Sorry I'm new to this kind of stuff.
I think if you run C:\Desktop\KyleAndDaitensFirstProgram\venv\Scripts\python.exe -m pip install robotpy-cscore
from the command line it should work
OK this came up...
Note that robotpy-cscore currently does not support installation on Windows anyway due to a couple of issues, see #59.
Also, robotpy-cscore does not support opencv-python, as mentioned in the docs, see #4.
Seems likely that doing import numpy
in C:\Desktop\KyleAndDaitensFirstProgram\venv\Scripts\python.exe would equally break. If so, your virtualenv is broken.
is there a way to make the axis camera show up on the smart dashboard without using the CameraServer class from robotpy-cscore?
It's possible, but not as fun. You would have to add the stream values to NetworkTables yourself. You can take a read of the CameraServer class to figure out how to do that.
Note that you don't need to install robotpy-cscore on your dev machine to use it on the robot. The wpilib.CameraServer.launch()
function will only launch the cscore code if it's on the robot.
Thank you so much! We installed robotpy-cscore directly to the RoboRIO via command prompt and it worked like a charm!
Trying to install robotpy-cscore, but program is not finding numpy even though I have it installed. I am using pycharm. pls help us. Also is there another way besides this method to access the axis camera or USB camera on to the smart dashboard?