Skip to content

v0.25.0 Broke support for Windows embedded Python #2987

Closed
@richard-lancaster-sp

Description

@richard-lancaster-sp
c:\python-3.11.5-embed-amd64>python.exe -c "import trio; print(trio.__version__)"
0.24.0

c:\python-3.11.5-embed-amd64>python -m pip install trio==v0.25.0
Collecting trio==v0.25.0
... 
Successfully installed trio-0.25.0

c:\python-3.11.5-embed-amd64>python.exe -c "import trio; print(trio.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "c:\python-3.11.5-embed-amd64\Lib\site-packages\trio\__init__.py", line 76, in <module>
    from ._path import Path as Path, PosixPath as PosixPath, WindowsPath as WindowsPath
  File "c:\python-3.11.5-embed-amd64\Lib\site-packages\trio\_path.py", line 99, in <module>
    class Path(pathlib.PurePath):
  File "c:\python-3.11.5-embed-amd64\Lib\site-packages\trio\_path.py", line 116, in Path
    @_wraps_async(pathlib.Path.cwd)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\python-3.11.5-embed-amd64\Lib\site-packages\trio\_path.py", line 41, in decorator
    assert wrapped.__doc__ is not None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

c:\python-3.11.5-embed-amd64>

We're using trio and Windows embedded python (https://www.python.org/downloads/windows/), v0.25.0 broke support for this version of python as it assumes the inclusion of doc strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions