Error while Running Python Code on Raspberry Pi

Every time we try to run the vision code on the raspberry pi using the frc linux image, the console always gives me an error message saying import not found for network tables.
This is the error message I got:
from: can’t read /var/mail/networktables
We were jjust trying to set up network tables on our raspberry pi

Looks like you accidentally deleted the #!/usr/bin/env python3 line.

where does that line go?

At the top (it should be the first line in the Python script).

Here’s an example:

#!/usr/bin/env python3

print("This is doing stuff in python3!")
// Do more stuff

Hope this helps.

2 Likes

Did that work? I am willing to help if it still isn’t working.

That worked but after that, the pi gives an error back because it isnt getting the feed from the ip address of the axis camera. Would you like to see the code?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.