Amar3tto commented on issue #30760:
URL: https://github.com/apache/beam/issues/30760#issuecomment-3608645750

   `File 
"/usr/local/lib/python3.13/site-packages/apache_beam/transforms/util.py", line 
517, in get_secret_bytes
   2025-12-03T19:59:08.3879496Z     raise RuntimeError(
   2025-12-03T19:59:08.3879833Z         f'Failed to retrieve or create secret 
bytes for secret '
   2025-12-03T19:59:08.3880273Z         f'***self._secret_version_name*** with 
exception ***e***')
   2025-12-03T19:59:08.3881786Z RuntimeError: Failed to retrieve or create 
secret bytes for secret HsmGeneratedSecret_1203_185821_py313 with exception 
Failed to generate DEK with exception cannot import name 'kms' from 
'google.cloud' (unknown location) [while running 'Start 
1/MaybeReshuffle/Reshuffle/ReshufflePerKey/GroupByKey/Group by encrypted 
key/ParDo(_EncryptMessage)-ptransform-46']
   2025-12-03T19:59:08.3883012Z 
   2025-12-03T19:59:08.3883282Z       Worker ID: 
beamapp-runner-1203190336-12031103-afyz-harness-k5rp,
   2025-12-03T19:59:08.3883577Z 
   2025-12-03T19:59:08.3883732Z       Root cause: Traceback (most recent call 
last):
   2025-12-03T19:59:08.3884320Z   File 
"/usr/local/lib/python3.13/site-packages/apache_beam/transforms/util.py", line 
539, in generate_dek
   2025-12-03T19:59:08.3884868Z     from google.cloud import kms
   2025-12-03T19:59:08.3885287Z ImportError: cannot import name 'kms' from 
'google.cloud' (unknown location)
   2025-12-03T19:59:08.3885609Z 
   2025-12-03T19:59:08.3885819Z During handling of the above exception, another 
exception occurred:
   2025-12-03T19:59:08.3886116Z 
   2025-12-03T19:59:08.3886248Z Traceback (most recent call last):
   2025-12-03T19:59:08.3886810Z   File 
"/usr/local/lib/python3.13/site-packages/apache_beam/transforms/util.py", line 
494, in get_secret_bytes
   2025-12-03T19:59:08.3889606Z     new_key = self.generate_dek()
   2025-12-03T19:59:08.3890174Z   File 
"/usr/local/lib/python3.13/site-packages/apache_beam/transforms/util.py", line 
567, in generate_dek
   2025-12-03T19:59:08.3890858Z     raise RuntimeError(f'Failed to generate DEK 
with exception ***e***')
   2025-12-03T19:59:08.3891518Z RuntimeError: Failed to generate DEK with 
exception cannot import name 'kms' from 'google.cloud' (unknown location)
   2025-12-03T19:59:08.3891958Z `
   Not sure about the root of this error
   
   CC @damccorm 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to