Skip to content

[Bug]: google-cloud-vision 3.x doesn't work in Beam #23261

@TheNeuralBit

Description

@TheNeuralBit

What happened?

See #23239 which attempted to perform the upgrade. We get the error:

apache_beam/ml/gcp/visionml_test.py:36: in <module>
    from apache_beam.ml.gcp import visionml
apache_beam/ml/gcp/visionml.py:57: in <module>
    class AnnotateImage(PTransform):
apache_beam/ml/gcp/visionml.py:156: in AnnotateImage
    Union[str, bytes], Optional[vision.types.ImageContext])
E   AttributeError: module 'google.cloud.vision' has no attribute 'types'

Issue Priority

Priority: 2

Issue Component

Component: io-py-gcp

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions