Please run down the following list and make sure you've tried the usual "quick fixes":
Environment details
- Cloud PubSub, Hangouts Chat
- OS
NAME=Fedora
VERSION="29 (Workstation Edition)"
ID=fedora
VERSION_ID=29
PLATFORM_ID="platform:f29"
PRETTY_NAME="Fedora 29 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:29"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=29
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=29
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Workstation Edition"
VARIANT_ID=workstation
- Python version and virtual environment information: Python 3.6.6
- google-cloud- version:
pip show google-<service> or pip freeze
aiofiles==0.4.0
aniso8601==3.0.2
apispec==1.0.0b5
apistar==0.6.0
asgiref==2.3.2
async-timeout==3.0.1
cachetools==3.0.0
certifi==2018.10.15
chardet==3.0.4
Click==7.0
daiquiri==1.5.0
docopt==0.6.2
google-api-core==1.6.0a1
google-api-python-client==1.7.4
google-auth==1.6.1
google-auth-httplib2==0.0.3
google-cloud-pubsub==0.38.0
googleapis-common-protos==1.6.0b6
graphene==2.1.3
graphql-core==2.1
graphql-relay==0.4.5
graphql-server-core==1.1.1
grpc-google-iam-v1==0.11.4
grpcio==1.16.1
h11==0.8.1
httplib2==0.12.0
httptools==0.0.11
idna==2.7
itsdangerous==1.1.0
Jinja2==2.10
MarkupSafe==1.1.0
marshmallow==3.0.0b20
oauth2client==4.1.3
parse==1.9.0
prometheus-client==0.4.2
promise==2.2.1
protobuf==3.6.1
pyasn1==0.4.4
pyasn1-modules==0.2.2
python-multipart==0.0.5
pytz==2018.7
PyYAML==4.2b4
requests==2.20.1
requests-toolbelt==0.8.0
responder==1.1.1
rfc3986==1.1.0
rfc5424-logging-handler==1.3.0
rsa==4.0
Rx==1.6.1
sentry-sdk==0.5.4
six==1.11.0
starlette==0.7.4
thoth-common==0.4.0
tzlocal==2.0.0b1
uritemplate==3.0.0
urllib3==1.24.1
uvicorn==0.3.20
uvloop==0.12.0rc1
websockets==7.0
whitenoise==4.1.1
Steps to reproduce
git clone github.com:goern/sesheta-google-chatbot.git .
pipenv install
pipenv shell ./app.py
Code example
Stack trace
./app.py
2018-11-15 13:57:06,018 [19189] INFO root: Logging to a Sentry instance is turned off
2018-11-15 13:57:06,018 [19189] INFO root: Logging to rsyslog endpoint is turned off
2018-11-15 13:57:06,024 [19189] CRITICAL root: Traceback (most recent call last):
File "./app.py", line 50, in <module>
subscriber = pubsub.SubscriberClient()
File "/home/goern/.local/share/virtualenvs/google-chatbot-MYBzcWvJ/lib/python3.6/site-packages/google/cloud/pubsub_v1/subscriber/client.py", line 76, in __init__
self._api = subscriber_client.SubscriberClient(**kwargs)
File "/home/goern/.local/share/virtualenvs/google-chatbot-MYBzcWvJ/lib/python3.6/site-packages/google/cloud/pubsub_v1/gapic/subscriber_client.py", line 188, in __init__
credentials=credentials,
File "/home/goern/.local/share/virtualenvs/google-chatbot-MYBzcWvJ/lib/python3.6/site-packages/google/cloud/pubsub_v1/gapic/transports/subscriber_grpc_transport.py", line 72, in __init__
'iam_policy_stub': iam_policy_pb2.IAMPolicyStub(channel),
AttributeError: module 'google.iam.v1.iam_policy_pb2' has no attribute 'IAMPolicyStub'
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
Please run down the following list and make sure you've tried the usual "quick fixes":
Environment details
pip show google-<service>orpip freezeSteps to reproduce
git clone github.com:goern/sesheta-google-chatbot.git .pipenv installpipenv shell ./app.pyCode example
# exampleStack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!