You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the pyre2-updated additional dependency with Python 3.13 fails with an error.
How you can reproduce the problem
Outline the steps to show the problem you are having.
Create a PR adding Python 3.13 to the GHA python-app workflow configuration
GHA logs:
PEP517 build of a dependency failed
Backend subprocess exited when trying to invoke build_wheel
| Command '['/tmp/tmp1e9s6jwc/.venv/bin/python', '/opt/pipx/venvs/poetry/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py', 'build_wheel', '/tmp/tmp3nq78osn']' returned non-zero exit status 1.
| Change Dir: '/tmp/tmpwctvvx4c/pyre2-updated-0.3.8/build/temp.linux-x86_64-cpython-313'
...
| Run Build Command(s): /tmp/tmp1e9s6jwc/.venv/bin/ninja -v
| [1/3] cd /tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src && /tmp/tmp1e9s6jwc/.venv/bin/cython -a -3 --fast-fail --cplus -I /tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src --output-file /tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src/re2.cpp re2.pyx
| [2/3] /usr/bin/c++ -DVERSION_INFO=0.3.8 -Dre2_EXPORTS -I/tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src -I/opt/hostedtoolcache/Python/3.13.1/x64/include/python3.13 -O2 -g -DNDEBUG -std=c++11 -fPIC -MD -MT src/CMakeFiles/re2.dir/re2.cpp.o -MF src/CMakeFiles/re2.dir/re2.cpp.o.d -o src/CMakeFiles/re2.dir/re2.cpp.o -c /tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src/re2.cpp
| FAILED: src/CMakeFiles/re2.dir/re2.cpp.o
| /usr/bin/c++ -DVERSION_INFO=0.3.8 -Dre2_EXPORTS -I/tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src -I/opt/hostedtoolcache/Python/3.13.1/x64/include/python3.13 -O2 -g -DNDEBUG -std=c++11 -fPIC -MD -MT src/CMakeFiles/re2.dir/re2.cpp.o -MF src/CMakeFiles/re2.dir/re2.cpp.o.d -o src/CMakeFiles/re2.dir/re2.cpp.o -c /tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src/re2.cpp
| /tmp/tmpwctvvx4c/pyre2-updated-0.3.8/src/re2.cpp:1255:10: fatal error: re2/stringpiece.h: No such file or directory
| 1255 | #include "re2/stringpiece.h"
| | ^~~~~~~~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
...
Note: This error originates from the build backend, and is likely not a problem with poetry but
one of the following issues with pyre2-updated (0.3.8)
- not supporting PEP 517 builds
- not specifying PEP 517 build requirements correctly
- the build requirements are incompatible with your operating system or Python version
- the build requirements are missing system dependencies (eg: compilers, libraries, headers).
You can verify this by running pip wheel --no-cache-dir --use-pep517 "pyre2-updated (==0.3.8)".
Context
Reliabot version 0.2.4
Python version 3.13
Operating system (distribution) versions: MacOS Sonoma 14.7, Ubuntu 24.04
Fundamentally, this is a problem with upstream provider of pyre2-updated. If you are fine using standard Python RE library, there is no problem, and simply removing the additional dependency on RE2 will enable reliabot fallback behavior using standard Python RE.
As a workaround, if you want to use Reliabot pre-commit on a system using Python 3.13, you can add a language_version setting to the pre-commit configuration and pre-commit uses a Python 3.12 runtime:
Describe the problem
Using the
pyre2-updated
additional dependency with Python 3.13 fails with an error.How you can reproduce the problem
Outline the steps to show the problem you are having.
Create a PR adding Python 3.13 to the GHA python-app workflow configuration
GHA logs:
Context
Reliabot version 0.2.4
Python version 3.13
Operating system (distribution) versions: MacOS Sonoma 14.7, Ubuntu 24.04
Rebuild for python 3.13 conda-forge/pyre2-feedstock#35
The text was updated successfully, but these errors were encountered: