OS: MacOS X Mojave 10.14.2
Python: 3.7.1 homebrew, venv
google-cloud-datastore: 1.7.1
Steps to reproduce
- Follow tutorial at https://cloud.google.com/datastore/docs/datastore-api-tutorial
- Using service account and
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/.json
- Run
python tasks.py --project-id <project-id> as per the tutorial
- The very last line of this script will cause an error.
@theacodes hey, I am taking the liberty to mention you here, as I saw you were the original author! 😉
I don't quite understand what the intent is with this last line... The arguments returned by argparse returns a Namespace object. This does not have have a func method/function...?
Stack trace
Traceback (most recent call last):
File "tasks.py", line 139, in <module>
args.func(client, args)
AttributeError: 'Namespace' object has no attribute 'func'