Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pypy
pypy
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 594
    • Issues 594
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 10
    • Merge Requests 10
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

  • PyPy
  • pypypypy
  • Issues
  • #3363

Closed
Open
Opened Dec 22, 2020 by Bernát Gábor@gaborbernat

PyPy3 Windows Long path support

pypy3 --version
Python 3.6.9 (d38cd66c14b8, Sep 23 2020, 08:02:17)
[PyPy 7.3.2 with MSC v.1927 32 bit]
pypy3 -c "import os;  a='C:\\tmp\\' + '\\a' * 150; print(len(a)); os.makedirs(a)"
307
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\extra\pypy3.6\pypy3.6-v7.3.2-win32\lib-python\3\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "C:\extra\pypy3.6\pypy3.6-v7.3.2-win32\lib-python\3\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "C:\extra\pypy3.6\pypy3.6-v7.3.2-win32\lib-python\3\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  [Previous line repeated 20 more times]
  File "C:\extra\pypy3.6\pypy3.6-v7.3.2-win32\lib-python\3\os.py", line 220, in makedirs
    mkdir(name, mode)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\tmp\\\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a\\a'

Discovered part of the virtualenv test suite https://github.com/pypa/virtualenv/runs/1596390627?check_suite_focus=true

This works on CPython. Long paths have been enabled as per https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation.

Seems this issue was exposed because of https://github.com/pypa/setuptools/issues/2505

Edited Dec 23, 2020 by Bernát Gábor
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pypy/pypy#3363