GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_tools: test_freeze_simple_script() fails on s390x SLES 3.x: [Errno 2] No such file or directory: (...) · Issue #109615 · python/cpython

test_tools: test_freeze_simple_script() fails on s390x SLES 3.x: [Errno 2] No such file or directory: (...) #109615

New issue
Copy link
New issue
Copy link
Closed
Closed
test_tools: test_freeze_simple_script() fails on s390x SLES 3.x: [Errno 2] No such file or directory: (...)#109615
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dir

Description

@vstinner
vstinner
opened on Sep 20, 2023
Issue body actions

s390x SLES 3.x:

test_freeze_simple_script (test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script) ... ERROR

Stdout:
creating the script to be frozen at /tmp/test_python_3vf4i07o/tmp7pw_cxg6/app.py
copying the source tree into /tmp/test_python_3vf4i07o/tmp7pw_cxg6/cpython...

(...)

======================================================================
ERROR: test_freeze_simple_script (test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/test/test_tools/test_freeze.py", line 32, in test_freeze_simple_script
    outdir, scriptfile, python = helper.prepare(script, outdir)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Tools/freeze/test/freeze.py", line 146, in prepare
    copy_source_tree(srcdir, SRCDIR)
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Tools/freeze/test/freeze.py", line 95, in copy_source_tree
    shutil.copytree(oldroot, newroot, ignore=ignore_non_src)
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/shutil.py", line 588, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/Lib/shutil.py", line 542, in _copytree
    raise Error(errors)
shutil.Error: [('/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_29475æ', '/tmp/test_python_3vf4i07o/tmp7pw_cxg6/cpython/build/test_python_29475æ', "[Errno 2] No such file or directory: '/home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_29475æ'")]

Stdout:
creating the script to be frozen at /tmp/test_python_3vf4i07o/tmp7pw_cxg6/app.py
copying the source tree into /tmp/test_python_3vf4i07o/tmp7pw_cxg6/cpython...

----------------------------------------------------------------------
Ran 36 tests in 7.203s

FAILED (errors=1)
test test_tools failed

build: https://buildbot.python.org/all/#/builders/540/builds/6583

Linked PRs

  • gh-109615: Fix test_tools.test_freeze SRCDIR #109935
  • [3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) #109950
  • [3.11] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) #109951
  • gh-109615: Fix support test_copy_python_src_ignore() #109958
  • [3.11] gh-109615: Fix support test_copy_python_src_ignore() (#109958) #109962
  • gh-109615: Fix support test_copy_python_src_ignore() on WASM #109970
  • [3.11] gh-109615: Fix support test_copy_python_src_ignore() on WASM (GH-109970) #109976
  • gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore #110108
  • [3.11] gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ignore (GH-110108) #110110
  • [3.12] gh-109615: Fix support test_copy_python_src_ignore() (#109958) #110340

Activity

Next
  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Sep 20, 2023
  2. vstinner commented on Sep 21, 2023

    @vstinner
    vstinner
    on Sep 21, 2023
    MemberAuthor
    More actions

    The test fails also on s390x Debian 3.x: https://buildbot.python.org/all/#builders/49/builds/6610

  3. serhiy-storchaka commented on Sep 26, 2023

    @serhiy-storchaka
    serhiy-storchaka
    on Sep 26, 2023
    Member
    More actions

    It tries to copy the source tree from /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_29475æ, but the correct path is /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/.

  4. vstinner commented on Sep 26, 2023

    @vstinner
    vstinner
    on Sep 26, 2023
    MemberAuthor
    More actions

    build: https://buildbot.python.org/all/#/builders/540/builds/6583

    • Git was run in directory: /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build.

    • configure command: ./configure --prefix '$(PWD)/target' --with-pydebug

    • test.pythoninfo:

      • sysconfig[abs_builddir]: /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build
      • sysconfig[srcdir]: /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build
    • Tests are run in directory: /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_worker_8799æ

    Tools/freeze/freeze.py computes:

    SRCDIR = os.path.dirname(os.path.dirname(TOOL_ROOT))

    It tries to copy the source tree from /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/build/test_python_29475æ, but the correct path is /home/dje/cpython-buildarea/3.x.edelsohn-sles-z/build/.

    Oh. Maybe the code defining SRCDIR is wrong.

  5. vstinner
    added a commit that references this issue on Sep 26, 2023

    pythongh-109615: Fix test_tools.test_freeze SRCDIR

    a57099f
  6. vstinner commented on Sep 26, 2023

    @vstinner
    vstinner
    on Sep 26, 2023
    MemberAuthor
    More actions

    I proposed PR #109935 to fix the issue. I'm not sure yet if my fix is correct.

  7. vstinner
    added a commit that references this issue on Sep 27, 2023

    pythongh-109615: Fix test_freeze copy_source_tree()

    2c0ff04
  8. vstinner commented on Sep 27, 2023

    @vstinner
    vstinner
    on Sep 27, 2023
    MemberAuthor
    More actions

    It seems like freeze copy_source_tree() copies build/ directory which is modified by other tests running in parallel. So it's likely that the copy can fail. I updated my PR #109935 to ignore this directory in the copy. Recently, I fixed a similar issue in venv with __pycache__/ directories: see issue gh-109748.

  9. vstinner
    added 7 commits that reference this issue on Sep 27, 2023

    pythongh-109615: Fix test_freeze copy_source_tree()

    9c111be

    pythongh-109615: Fix test_freeze copy_source_tree()

    458a4d4

    gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)

    1512d6c

    pythongh-109615: Fix test_tools.test_freeze SRCDIR (python#109935)

    1fb2b19

    pythongh-109615: Fix test_tools.test_freeze SRCDIR (python#109935)

    44eab0e

    pythongh-109615: Fix test_tools.test_freeze SRCDIR (python#109935)

    78c961a

    [3.11] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109951)

    2423168
  10. 18 remaining items

  11. miss-islington
    added a commit that references this issue on Sep 29, 2023

    pythongh-109615: Look for 'Modules' as landmark for test_copy_python_…

    1ea43c9
  12. zooba commented on Sep 29, 2023

    @zooba
    zooba
    on Sep 29, 2023
    Member
    More actions

    There's a few fixes here waiting on 3.12 branch to open up before they'll be merged, so I'm leaving this open until they're done.

  13. zooba
    added a commit that references this issue on Sep 29, 2023

    gh-109615: Look for 'Modules' as landmark for test_copy_python_src_ig…

    a95e8cf
  14. Yhg1s
    added a commit that references this issue on Oct 2, 2023

    [3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950)

    1fc25a3
  15. vstinner
    added 4 commits that reference this issue on Oct 4, 2023

    pythongh-109615: Fix support test_copy_python_src_ignore() (python#10…

    b24ecb7

    pythongh-109615: Fix support test_copy_python_src_ignore() on WASM (p…

    c310ecb

    pythongh-109615: Look for 'Modules' as landmark for test_copy_python_…

    4f4c799

    [3.12] gh-109615: Fix support test_copy_python_src_ignore() (#109958) (…

    8939221
  16. vstinner commented on Oct 17, 2023

    @vstinner
    vstinner
    on Oct 17, 2023
    MemberAuthor
    More actions

    Ok, all changes should now be backported. I close the issue.

  17. vstinner
    closed this as completedon Oct 17, 2023
  18. Glyphack
    added 4 commits that reference this issue on Sep 2, 2024

    pythongh-109615: Fix test_tools.test_freeze SRCDIR (python#109935)

    f669b78

    pythongh-109615: Fix support test_copy_python_src_ignore() (python#10…

    d87145d

    pythongh-109615: Fix support test_copy_python_src_ignore() on WASM (p…

    1e8bee1

    pythongh-109615: Look for 'Modules' as landmark for test_copy_python_…

    4e5e6f3
  19. StanFromIreland
    marked When having on --with-system-expat, system still builds using bundled expat for tests #92875 as a duplicate of this issue on Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.