Describe the bug
Following the instructions in tools/validators/instance_validator/README.md doesn't work
To Reproduce
# follow instructions
# 2. Run `python3 setup.py install` from digitalbuildings/tools/validators/ontology_validator.
# 3. Run `python3 setup.py install` from digitalbuildings/tools/validators/instance_validator.
$ python3 instance_validator.py --input my-file.yaml
Traceback (most recent call last):
File "/Users/nathan/sources/onboard/digitalbuildings/tools/validators/instance_validator/instance_validator.py", line 32, in <module>
from validate import handler
File "/Users/nathan/sources/onboard/digitalbuildings/tools/validators/instance_validator/validate/handler.py", line 26, in <module>
from validate import subscriber
File "/Users/nathan/sources/onboard/digitalbuildings/tools/validators/instance_validator/validate/subscriber.py", line 23, in <module>
from google.cloud import pubsub_v1
File "/Users/nathan/.pyenv/versions/onboard-goog-digbuild/lib/python3.10/site-packages/google_cloud_pubsub-2.6.1-py3.10.egg/google/cloud/pubsub_v1/__init__.py", line 17, in <module>
from google.cloud.pubsub_v1 import types
File "/Users/nathan/.pyenv/versions/onboard-goog-digbuild/lib/python3.10/site-packages/google_cloud_pubsub-2.6.1-py3.10.egg/google/cloud/pubsub_v1/types.py", line 25, in <module>
from google.api_core import gapic_v1
File "/Users/nathan/.pyenv/versions/onboard-goog-digbuild/lib/python3.10/site-packages/google_api_core-1.32.0-py3.10.egg/google/api_core/gapic_v1/__init__.py", line 18, in <module>
from google.api_core.gapic_v1 import config
File "/Users/nathan/.pyenv/versions/onboard-goog-digbuild/lib/python3.10/site-packages/google_api_core-1.32.0-py3.10.egg/google/api_core/gapic_v1/config.py", line 23, in <module>
import grpc
File "/Users/nathan/.pyenv/versions/onboard-goog-digbuild/lib/python3.10/site-packages/grpcio-1.48.0-py3.10-macosx-12-arm64.egg/grpc/__init__.py", line 22, in <module>
File "/Users/nathan/.pyenv/versions/onboard-goog-digbuild/lib/python3.10/site-packages/grpcio-1.48.0-py3.10-macosx-12-arm64.egg/grpc/_compression.py", line 17, in <module>
if not self.readable():
AttributeError: module 'grpc._cython.cygrpc' has no attribute 'CompressionAlgorithm'
Describe the bug Following the instructions in
tools/validators/instance_validator/README.md
doesn't workTo Reproduce
Expected behavior
grpc
import shouldn't fail.I was able to get things to work via:
OS (please complete the following information):