Environment details
- OS type and version: macOS High Sierra 10.13.6 (17G9016)
- Python version: Python 3.8.5
- pip version: pip 20.1.1 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
- google-cloud-pubsub version:
Name: google-cloud-pubsub
Version: 1.6.1
Summary: Google Cloud Pub/Sub API client library
Home-page: https://github.com/googleapis/python-pubsub
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: /private/tmp/python-pubsub/samples/snippets/pubsub/lib/python3.8/site-packages
Requires: grpc-google-iam-v1, google-api-core
Required-by: (pubsub)
Steps to reproduce
git clone --depth=1 git@github.com:googleapis/python-pubsub.git /tmp/python-pubsub
set -e
cd /tmp/python-pubsub/samples/snippets
pip install virtualenv
virtualenv pubsub
source pubsub/bin/activate
export PUBSUB_EMULATOR_HOST=0.0.0.0:****
export PUBSUB_PROJECT_ID=****
pip install -r requirements.txt
python publisher.py ***** create *****
Stack trace
Traceback (most recent call last):
File "publisher.py", line 404, in <module>
create_topic(args.project_id, args.topic_id)
File "publisher.py", line 56, in create_topic
topic = publisher.create_topic(request={"name": topic_path})
File "/private/tmp/python-pubsub/samples/snippets/pubsub/lib/python3.8/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
TypeError: create_topic() got an unexpected keyword argument 'request'
Thanks!
Reactions are currently unavailable
Environment details
Steps to reproduce
Stack trace
Traceback (most recent call last): File "publisher.py", line 404, in <module> create_topic(args.project_id, args.topic_id) File "publisher.py", line 56, in create_topic topic = publisher.create_topic(request={"name": topic_path}) File "/private/tmp/python-pubsub/samples/snippets/pubsub/lib/python3.8/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda> fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa TypeError: create_topic() got an unexpected keyword argument 'request'Thanks!