Robot Code Not Deploying From Robot.py

Hi,
This is my second problem. I have FRC Driver Station reporting that it has communications and joystick over Wi-Fi to the radio using the IP address 10.41.66.2. The problem is that I’m trying to deploy my robot code from the terminal (pointed to the correct directory) using py -3 robot.py deploy and I can’t get it to show green on the “robot code”. I’ve tried executing and testing and the same thing happens. Connecting via SSH via PUTTY works successfully, so I’m pretty sure it’s not a communication issue.

I’ve tried the two solutions listed on this post. The first solution listed doesn’t really report anything special I can see. I have pynetconsole installed. The second one is shown in the screenshot. It’s not blank, so I think there’s something with code. But I can’t tell if it’s deployed or not, so that’s not helping. There’s no file like .deploy_cfg or anything like that. I’ve got all the programs like Pyfrc, Robotpy and all those things to the computer as well as the robot. The terminal doesn’t really seem like it’s doing anything because I try to execute --help at the end of py -3 robot.py and nothing is happening. I would think that would work at least. Any ideas?

Looks like your robot.py isn’t running RobotPy at all. Did you forget the if __name__ == "__main__" block?

Yeah, what he said. If it doesn’t say that it deployed, it didn’t do so.

Never mind, I used the sample robot code later the day I posted and then it deployed successfully. I had the main block at the end of the code and it wasn’t working for some reason. I’ve got working code now just modifying the sample to my needs. I don’t know why the old code wasn’t working, but that’s not really that important now. Thanks for your help as always!