[New-bugs-announce] [issue46297] Python interpreter crashes on bootup with multiple PythonPaths set in registry

Derzsi Dániel report at bugs.python.org
Fri Jan 7 14:57:35 EST 2022


New submission from Derzsi Dániel <daniel at tohka.us>:

When multiple PythonPaths are set up in the registry, in addition to the default PythonPath, the interpreter crashes immediately on bootup.

```Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.11\PythonPath\Panda3D]
@="C:\\Panda3D-1.11.0-x64\\python"```

The interpreter will crash with the following message:

```Exception ignored error evaluating path:
Traceback (most recent call last):
  File "<frozen getpath>", line 652, in <module>
TypeError: QueryValue expected 2 arguments, got 1
Fatal Python error: error evaluating path
Python runtime state: core initialized

Current thread 0x00002bd0 (most recent call first):
  <no Python frame>```

This regression was introduced in the Python 3.11 branch with commit 99fcf1505218464c489d419d4500f126b6d6dc28 on Dec 3, 2021.

----------
components: Interpreter Core
messages: 410019
nosy: darktohka
priority: normal
severity: normal
status: open
title: Python interpreter crashes on bootup with multiple PythonPaths set in registry
type: crash
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46297>
_______________________________________


More information about the New-bugs-announce mailing list