Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-05 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2040443750 One other problem that causes additional failures in this suite is that in the test environment we first install test environment dependencies (e.g., tensorflow), then install the

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038404492 > the fact that old version of pydantic gets installed due to --pre flag may or may not be a factor. that _is_ the factor. The pydantic-2.0a4 distribution has the following:

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038213168 The hypothesis plugin might be provided by hypothesis itself, and we might need it for tests that use hypothesis. But looks like Pydantic 2 doesn't work with hypothesis:

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038186835 https://stackoverflow.com/questions/71394400/how-to-block-the-hypothesis-pytest-plugin has some discussion how to disable it -- This is an automated message from the Apache Git

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038183904 even though pip selects a bizzare version for pydantic, pydantic 2, this pydantic-hypothesis plugin seems broken `from pydantic import _hypothesis_plugin` fails, the more

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038144463 < - pydantic [required: <3, installed: 2.0a4] this seems to be an incorrect installer behavior. 2.0a4 shouln't be installed under these constraints. Actually I

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038142141 from pipdeptree: ``` * google-cloud-aiplatform==1.46.0 - proto-plus [required: >=1.22.0,<2.0.0dev, installed: 1.24.0.dev0] - pydantic [required: <3, installed:

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2038121140 Beam test infra installs pre-released dependencies to detect possible issues ahead of releases. The comand: ``` pip install --pre "tensorflow_transform>=1.13.0,<1.14.0"

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2037998636 Not sure how pydantic comes in the picture here yet, but for 'pydantic._hypothesis_plugin' to be available, it seems that we need to have 1.0.0

Re: [I] [Failing Test]: beam_PreCommit_Python_Coverage suite fails with ModuleNotFoundError: No module named 'pydantic._hypothesis_plugin' [beam]

2024-04-04 Thread via GitHub
tvalentyn commented on issue #30852: URL: https://github.com/apache/beam/issues/30852#issuecomment-2037827468 Sample error: https://github.com/apache/beam/actions/runs/8548288262/job/23421776246?pr=30843 -- This is an automated message from the Apache Git Service. To respond to the