Closed Mockapapella closed 2 years ago
Hmm. It's trying to copy everything in your venv over. I believe this was fixed by robotpy/pyfrc#184.
I've published a new version of pyfrc including that change. Can you update pyfrc (to 2021.1.2) and try again?
14:08:59:204 INFO : wpilib : WPILib version 2021.3.1.0
14:08:59:204 INFO : wpilib : HAL version 2021.3.1.0
14:08:59:204 INFO : wpilib : Running with simulated HAL.
14:08:59:204 INFO : wpilib : robotpy-wpiutil version 2021.3.1.0
14:08:59:204 INFO : wpilib : robotpy-wpimath version 2021.3.1.0
14:08:59:204 INFO : wpilib : robotpy-halsim-gui version 2021.3.1.0
14:08:59:204 INFO : wpilib : robotpy-ctre version 2021.2.2
14:08:59:204 INFO : wpilib : pyntcore version 2021.3.1.0
14:08:59:204 INFO : faulthandler : registered SIGUSR2 for PID 6762
14:08:59:205 INFO : robotpy.installer : Finding robot for team 1716
14:08:59:211 INFO : robotpy.installer : -> Robot is at 192.168.1.81
14:08:59:211 INFO : robotpy.installer : Connecting to robot via SSH at 192.168.1.81
14:08:59:283 INFO : paramiko.transport : Connected (version 2.0, client OpenSSH_7.6)
14:08:59:377 INFO : paramiko.transport : Auth banner: b'NI Linux Real-Time (run mode)\n\nLog in with your NI-Auth credentials.\n\n'
14:08:59:377 INFO : paramiko.transport : Authentication (password) successful!
RoboRIO has WPILib version 2021.3.1.0
14:08:59:964 INFO : paramiko.transport.sftp: [chan 5] Opened sftp connection (server version 3)
make /home/lvuser/py_new
requirements.txt -> /home/lvuser/py_new/requirements.txt
client.py -> /home/lvuser/py_new/client.py
robot.py -> /home/lvuser/py_new/robot.py
14:08:59:979 INFO : paramiko.transport.sftp: [chan 5] sftp session closed.
SUCCESS: Deploy was successful!
Worked like a charm. Thanks!
I managed to program my RoboRIO to respond to a throttle on Windows using the USB cable connection. I'm now trying to do the same on Linux, however I'm deploying the code to the robot using the ethernet connection due to issues I was having with the USB connection. I'm getting an
OSError: Failure
when the paramiko sftp session closes. Here is myrobot.py
code:Everything is installed in a virtual environment (
venv
) initialized with python3. When I runpython robot.py deploy
it finds the robot on my network but then returns anOSError
at the same point as when it normally completes successfully on Windows:requirements.txt:
I'm running this on Ubuntu 20.04