from google.cloud import pubsub_v1
Traceback (most recent call last):
File "", line 1, in
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/cloud/pubsub_v1/init.py", line 17, in
from google.cloud.pubsub_v1 import types
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/cloud/pubsub_v1/types.py", line 36, in
from google.pubsub_v1.types import pubsub as pubsub_gapic_types
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/init.py", line 18, in
from .services.publisher import PublisherClient
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/services/publisher/init.py", line 18, in
from .client import PublisherClient
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/services/publisher/client.py", line 37, in
from google.pubsub_v1.services.publisher import pagers
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/services/publisher/pagers.py", line 20, in
from google.pubsub_v1.types import pubsub
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/types/init.py", line 18, in
from .pubsub import (
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/types/pubsub.py", line 76, in
class MessageStoragePolicy(proto.Message):
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/proto/message.py", line 214, in new
field=[i.descriptor for i in fields],
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/proto/message.py", line 214, in
field=[i.descriptor for i in fields],
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/proto/fields.py", line 104, in descriptor
self._descriptor = descriptor_pb2.FieldDescriptorProto(
ValueError: Protocol message FieldDescriptorProto has no "proto3_optional" field.
Output of pip freeze looks:
apt-clone==0.2.1
apturl==0.5.2
beautifulsoup4==4.8.2
blinker==1.4
Brlapi==0.7.0
cachetools==4.2.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
colorama==0.4.3
command-not-found==0.3
configobj==5.0.6
cryptography==2.8
cupshelpers==1.0
dbus-python==1.2.16
defer==1.0.6
distro==1.4.0
entrypoints==0.3
google-api-core==1.24.1
google-auth==1.24.0
google-cloud-pubsub==2.2.0
googleapis-common-protos==1.52.0
grpc-google-iam-v1==0.12.3
grpcio==1.34.0
httplib2==0.14.0
idna==2.8
ifaddr==0.1.6
keyring==18.0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
libcst==0.3.16
louis==3.12.0
macaroonbakery==1.3.1
Mako==1.1.0
MarkupSafe==1.1.0
mypy-extensions==0.4.3
netifaces==0.10.4
nose==1.3.7
oauthlib==3.1.0
onboard==1.4.1
packaging==20.3
PAM==0.4.2
pexpect==4.6.0
Pillow==7.0.0
proto-plus==1.13.0
protobuf==3.14.0
psutil==5.5.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
pycurl==7.43.0.2
PyGObject==3.36.0
PyICU==2.4.2
pyinotify==0.9.6
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pyparsing==2.4.6
pyparted==3.11.2
pyRFC3339==1.1
python-apt==2.0.0+ubuntu0.20.4.2
python-debian===0.1.36ubuntu1
python-xapp==2.0.1
python-xlib==0.23
pytz==2019.3
pyxdg==0.26
PyYAML==5.3.1
reportlab==3.5.34
requests==2.22.0
requests-unixsocket==0.2.0
rsa==4.6
screen-resolution-extra==0.0.0
SecretStorage==2.3.1
setproctitle==1.1.10
simplejson==3.16.0
six==1.14.0
soupsieve==1.9.5
systemd-python==234
tinycss2==1.0.2
typing-extensions==3.7.4.3
typing-inspect==0.6.0
ubuntu-advantage-tools==20.3
ubuntu-drivers-common==0.0.0
ufw==0.36
Unidecode==1.1.1
urllib3==1.25.8
wadllib==1.3.3
webencodings==0.5.1
xkit==0.0.0
zeroconf==0.24.4
from google.cloud import pubsub_v1Traceback (most recent call last):
File "", line 1, in
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/cloud/pubsub_v1/init.py", line 17, in
from google.cloud.pubsub_v1 import types
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/cloud/pubsub_v1/types.py", line 36, in
from google.pubsub_v1.types import pubsub as pubsub_gapic_types
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/init.py", line 18, in
from .services.publisher import PublisherClient
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/services/publisher/init.py", line 18, in
from .client import PublisherClient
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/services/publisher/client.py", line 37, in
from google.pubsub_v1.services.publisher import pagers
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/services/publisher/pagers.py", line 20, in
from google.pubsub_v1.types import pubsub
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/types/init.py", line 18, in
from .pubsub import (
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/google/pubsub_v1/types/pubsub.py", line 76, in
class MessageStoragePolicy(proto.Message):
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/proto/message.py", line 214, in new
field=[i.descriptor for i in fields],
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/proto/message.py", line 214, in
field=[i.descriptor for i in fields],
File "/home/becks_ddf/my_env/lib/python3.8/site-packages/proto/fields.py", line 104, in descriptor
self._descriptor = descriptor_pb2.FieldDescriptorProto(
ValueError: Protocol message FieldDescriptorProto has no "proto3_optional" field.
Output of
pip freezelooks:apt-clone==0.2.1
apturl==0.5.2
beautifulsoup4==4.8.2
blinker==1.4
Brlapi==0.7.0
cachetools==4.2.0
certifi==2019.11.28
chardet==3.0.4
Click==7.0
colorama==0.4.3
command-not-found==0.3
configobj==5.0.6
cryptography==2.8
cupshelpers==1.0
dbus-python==1.2.16
defer==1.0.6
distro==1.4.0
entrypoints==0.3
google-api-core==1.24.1
google-auth==1.24.0
google-cloud-pubsub==2.2.0
googleapis-common-protos==1.52.0
grpc-google-iam-v1==0.12.3
grpcio==1.34.0
httplib2==0.14.0
idna==2.8
ifaddr==0.1.6
keyring==18.0.1
launchpadlib==1.10.13
lazr.restfulclient==0.14.2
lazr.uri==1.0.3
libcst==0.3.16
louis==3.12.0
macaroonbakery==1.3.1
Mako==1.1.0
MarkupSafe==1.1.0
mypy-extensions==0.4.3
netifaces==0.10.4
nose==1.3.7
oauthlib==3.1.0
onboard==1.4.1
packaging==20.3
PAM==0.4.2
pexpect==4.6.0
Pillow==7.0.0
proto-plus==1.13.0
protobuf==3.14.0
psutil==5.5.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycairo==1.16.2
pycrypto==2.6.1
pycups==1.9.73
pycurl==7.43.0.2
PyGObject==3.36.0
PyICU==2.4.2
pyinotify==0.9.6
PyJWT==1.7.1
pymacaroons==0.13.0
PyNaCl==1.3.0
pyparsing==2.4.6
pyparted==3.11.2
pyRFC3339==1.1
python-apt==2.0.0+ubuntu0.20.4.2
python-debian===0.1.36ubuntu1
python-xapp==2.0.1
python-xlib==0.23
pytz==2019.3
pyxdg==0.26
PyYAML==5.3.1
reportlab==3.5.34
requests==2.22.0
requests-unixsocket==0.2.0
rsa==4.6
screen-resolution-extra==0.0.0
SecretStorage==2.3.1
setproctitle==1.1.10
simplejson==3.16.0
six==1.14.0
soupsieve==1.9.5
systemd-python==234
tinycss2==1.0.2
typing-extensions==3.7.4.3
typing-inspect==0.6.0
ubuntu-advantage-tools==20.3
ubuntu-drivers-common==0.0.0
ufw==0.36
Unidecode==1.1.1
urllib3==1.25.8
wadllib==1.3.3
webencodings==0.5.1
xkit==0.0.0
zeroconf==0.24.4