Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: gradlew clean involves external transform generation and fails #30954

Closed
1 of 16 tasks
tvalentyn opened this issue Apr 12, 2024 · 1 comment · Fixed by #34185
Closed
1 of 16 tasks

[Bug]: gradlew clean involves external transform generation and fails #30954

tvalentyn opened this issue Apr 12, 2024 · 1 comment · Fixed by #34185
Assignees

Comments

@tvalentyn
Copy link
Contributor

What happened?

Repro:

 gradlew :sdks:python:cleanPython
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.4/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build 
Configuration on demand is an incubating feature.

> Task :sdks:python:cleanPython FAILED
b''
Traceback (most recent call last):
  File "setup.py", line 260, in generate_external_transform_wrappers
    subprocess.run([
  File "/home/valentyn/.pyenv/versions/3.8.18/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/valentyn/projects/beam/beam2/beam/build/gradleenv/1922375555/bin/python', '/home/valentyn/projects/beam/beam2/beam/sdks/python/gen_xlang_wrappers.py', '--cleanup', '--transforms-config-source', '/home/valentyn/projects/beam/beam2/beam/sdks/standard_external_transforms.yaml']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 300, in <module>
    generate_external_transform_wrappers()
  File "setup.py", line 269, in generate_external_transform_wrappers
    raise RuntimeError(
RuntimeError: ('Could not generate external transform wrappers due to error: %s', b'Traceback (most recent call last):\n  File "/home/valentyn/projects/beam/beam2/beam/sdks/python/gen_xlang_wrappers.py", line 35, in <module>\n    import yaml\nModuleNotFoundError: No module named \'yaml\'\n')

FAILURE: Build failed with an exception.

Issue Priority

Priority: 3 (minor)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@tvalentyn
Copy link
Contributor Author

see also:

def cleanPython = project.tasks.register('cleanPython') {

@tvalentyn tvalentyn changed the title [Bug]: gradlew clean involves external transform generation and fails [Bug]: gradlew clean involves external transform generation and fails Apr 12, 2024
@damccorm damccorm mentioned this issue Mar 5, 2025
3 tasks
@github-actions github-actions bot added this to the 2.64.0 Release milestone Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants