Skip to content

Running the 3.13 and 3.14 repl fails with winerror 123 #3635

@ionelmc

Description

@ionelmc

I have tried with uv pythons and it's the same as with the 3.14 or 3.13 from the python install manager.

The tox I installed with uv, with and without the tox-uv plugin, same result:

Traceback (most recent call last):
  File "C:\Users\ionel\AppData\Local\Python\pythoncore-3.14-64\Lib\_pyrepl\readline.py", line 395, in multiline_input
    return reader.readline()
           ~~~~~~~~~~~~~~~^^
  File "C:\Users\ionel\AppData\Local\Python\pythoncore-3.14-64\Lib\_pyrepl\reader.py", line 742, in readline
    self.prepare()
    ~~~~~~~~~~~~^^
  File "C:\Users\ionel\AppData\Local\Python\pythoncore-3.14-64\Lib\_pyrepl\historical_reader.py", line 306, in prepare
    super().prepare()
    ~~~~~~~~~~~~~~~^^
  File "C:\Users\ionel\AppData\Local\Python\pythoncore-3.14-64\Lib\_pyrepl\reader.py", line 585, in prepare
    self.console.prepare()
    ~~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\ionel\AppData\Local\Python\pythoncore-3.14-64\Lib\_pyrepl\windows_console.py", line 358, in prepare
    self.height, self.width = self.getheightwidth()
                              ~~~~~~~~~~~~~~~~~~~^^
  File "C:\Users\ionel\AppData\Local\Python\pythoncore-3.14-64\Lib\_pyrepl\windows_console.py", line 409, in getheightwidth
    raise WinError(GetLastError())
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect.

tox.ini:

[testenv]
skip_install = true
commands = {posargs:python}
;commands = cmd
allowlist_externals = *
pass_env = *

If I run tox -e py314 -- cmd and then set to see env vars I only have these as extra:

PIP_DISABLE_PIP_VERSION_CHECK=1
PYTHONHASHSEED=521
PYTHONIOENCODING=utf-8
TOX_ENV_DIR=D:\Projects\tox-test\.tox\py314
TOX_ENV_NAME=py314
TOX_WORK_DIR=D:\Projects\tox-test\.tox
VIRTUAL_ENV=D:\Projects\tox-test\.tox\py314

And PATH get a D:\Projects\tox-test\.tox\py314\Scripts; prefix.

Patching the tox sources to not override PYTHONIOENCODING does not seem to have any effect.

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