3 Answers
Hi, sorry to hear you’re having trouble with the lab.
Did you run sudo pip3 install google-cloud-pubsub
before executing the script?
You’re probably running old version of python on your VM. Try using python3 instead of python as a command.
i’m not sure, the instructor run the commands using python2, according to his console output.
Hi Leo, the behaviour of Cloud Shell seems to have changed since the lab was recorded (it does look like I was using python2, but it was apparently being more forgiving at the time!) Please try running python3 transactions.py
and it should work. Thanks!
using python3 works! Thanks Tim!
It works with ‘python3 transactions.py’
i have the same problem, and yes i did run the same command sudo pip3…