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

Revert "Updated the python dependencies (targeted for Beam 2.63.0)" #33774

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Abacn
Copy link
Contributor

@Abacn Abacn commented Jan 27, 2025

Reverts #33658

@github-actions github-actions bot added the build label Jan 27, 2025
@Abacn
Copy link
Contributor Author

Abacn commented Jan 27, 2025

test_basics (apache_beam.examples.complete.distribopt_test.DistribOptimizationTest) failed


ValueError: malformed node or string: <ast.Call object at 0x7c19d073f6a0>
self = <apache_beam.examples.complete.distribopt_test.DistribOptimizationTest testMethod=test_basics>

>     optimum = make_tuple(lines[0])

apache_beam/examples/complete/distribopt_test.py:81: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:107: in literal_eval
    return _convert(node_or_string)
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:96: in _convert
    return dict(zip(map(_convert, node.keys),
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:106: in _convert
    return _convert_signed_num(node)
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:80: in _convert_signed_num
    return _convert_num(node)
/opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/ast.py:71: in _convert_num
    _raise_malformed_node(node)

investigate #33765. commit history shows this was the only Python commit between last green run and first red run

@Abacn
Copy link
Contributor Author

Abacn commented Jan 27, 2025

@Abacn Abacn marked this pull request as ready for review January 27, 2025 16:45
Copy link
Contributor

Checks are failing. Will not request review until checks are succeeding. If you'd like to override that behavior, comment assign set of reviewers

@Abacn
Copy link
Contributor Author

Abacn commented Jan 27, 2025

I see, it's due to numpy 2. Tested locally, downgrade numpy to 1 resolved the issue

for reference the command I used:

cd sdks/python

python setup.py bdist build_ext --inplace

pip install .[gcp]

pytest -v apache_beam/examples/complete/distribopt_test.py::DistribOptimizationTest --test-pipeline-options="--runner=TestDirectRunner --project=apache-beam-testing --region=us-central1 --staging_location=gs://temp-storage-for-end-to-end-tests/staging-it --temp_location=gs://temp-storage-for-end-to-end-tests/temp-it --output=gs://temp-storage-for-end-to-end-tests/py-it-cloud/output"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant