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

Out of tree build of Python 3.12.0a1+ breaks regen-test-levenshtein #98776

Closed
hroncok opened this issue Oct 27, 2022 · 0 comments · Fixed by #98779
Closed

Out of tree build of Python 3.12.0a1+ breaks regen-test-levenshtein #98776

hroncok opened this issue Oct 27, 2022 · 0 comments · Fixed by #98779
Labels
type-bug An unexpected behavior, bug, or error

Comments

@hroncok
Copy link
Contributor

hroncok commented Oct 27, 2022

Bug report

In Fedora, when building Python 3.12.0a1 with Python 3.12.0a1 for regen, we found that regen-test-levenshtein fails. It is not necessary to use Python 3.12.0a1 for regen to trigger the failure:

To reproduce:

# from the root cpython directory
$ mkdir outoftree
$ cd outoftree
$ ../configure
$ make regen-test-levenshtein
...
# Regenerate Lib/test/levenshtein_examples.json
python3.10 ../Tools/build/generate_levenshtein_examples.py Lib/test/levenshtein_examples.json
Traceback (most recent call last):
  File ".../cpython/outoftree/../Tools/build/generate_levenshtein_examples.py", line 70, in <module>
    main()
  File ".../cpython/outoftree/../Tools/build/generate_levenshtein_examples.py", line 65, in main
    with open(output_path, "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: '.../cpython/outoftree/Lib/test/levenshtein_examples.json'
make: *** [Makefile:1092: regen-test-levenshtein] Error 1

Your environment

  • CPython versions tested on: Python 3.12.0a1 or the current main branch
  • Operating system and architecture: Fedora Linux x86_64
@hroncok hroncok added the type-bug An unexpected behavior, bug, or error label Oct 27, 2022
hroncok added a commit to hroncok/cpython that referenced this issue Oct 27, 2022
hroncok added a commit to hroncok/cpython that referenced this issue Oct 27, 2022
hroncok added a commit to fedora-python/cpython that referenced this issue Oct 27, 2022
miss-islington pushed a commit that referenced this issue Oct 28, 2022
gvanrossum pushed a commit to gvanrossum/cpython that referenced this issue Oct 28, 2022
hrnciar pushed a commit to fedora-python/cpython that referenced this issue Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant