I am new to GoPiGO3 and trying out the RemoteCameraRobot project.
When I typed in “sudo python3 flask_server.py”, the message returned
Error : cannot import name 'Mutex
Error occurred: Make sure that you ran this program using python3!
Traceback (most recall call last):
File "flask_server.py",line 25, in <module>
gopigo3_robot - EasyGoPiGo3()
NameError: name 'EasyGoPiGo3' is not defined."
flask_server.py runs with Python 3, whereas BasicRobotControl project can be run with Python 2.
You could check the availability of this module by trying to import it (the easygopigo3 module) in Python 2 & 3 - theoretically, it should fail for Python 3. Judging the error message you got, I think it’s because you have an older version of the gopigo3 package.
In either case, after you check the availability of the module, you should run the following command:
sudo sh -c "curl -kL dexterindustries.com/update_gopigo3 | bash"
This will install the GoPiGo3’s deps again and then please let us know if the problem still persists.
If I read the recommendations, is it correct that flash_server.py can only be run with Python 3? If so, how do I upgrade my version of Python 2 to Python 3?
I am currently having the same issue. I am receiving the error shown below:
Error : cannot import name 'Mutex
Error occurred: Make sure that you ran this program using python3!
Traceback (most recall call last):
File “flask_server.py”,line 25, in
gopigo3_robot - EasyGoPiGo3()
NameError: name ‘EasyGoPiGo3’ is not defined."
I have followed the steps in this forum but to no avail.
I have first run the “sudo bash install.sh”.
Rebooted the computer.
Then attempted to execute “sudo python3 flask_server.py” but received the same error in this forum.
I attempted to run without “sudo” but got the same response.
After you run this command, give flask_server.py another shot and let me know if it starts working again. This will leave you with no API to interface with the old GoPiGo, but this is not the case as you have a GoPiGo3.
And if it still doesn’t work, please leave here the output of pip3 list command.