Skip to content

Bug: Ren’Py 8.4.1 SDK fails to start — missing encodings / python312.zip #6641

@tysonblade195

Description

@tysonblade195

Environment

OS: Windows 11 (x64)

Ren’Py Version: 8.4.1 (downloaded official zip from renpy.org)

Installation Method: Extracted zip into C:\rishabh\GAMES\renpy-8.4.1-sdk

Python Embedded: 3.12 (bundled)

Problem

Running renpy.exe crashes immediately with the following traceback:

Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = 'C:\rishabh\GAMES\renpy-8.4.1-sdk\renpy.exe'
isolated = 1
environment = 0
user site = 0
safe_path = 1
import site = 1
is in build tree = 0
stdlib dir = '\home\tom\ab\renpy-build-fix\tmp\install.windows-x86_64\lib\python3.12'
sys._base_executable = 'C:\rishabh\GAMES\renpy-8.4.1-sdk\renpy.exe'
sys.base_prefix = '\home\tom\ab\renpy-build-fix\tmp\install.windows-x86_64'
sys.base_exec_prefix = 'C:\rishabh\GAMES\renpy-8.4.1-sdk'
sys.platlibdir = 'lib'
sys.executable = 'C:\rishabh\GAMES\renpy-8.4.1-sdk\renpy.exe'
sys.prefix = '\home\tom\ab\renpy-build-fix\tmp\install.windows-x86_64'
sys.exec_prefix = 'C:\rishabh\GAMES\renpy-8.4.1-sdk'
sys.path = [
'\home\tom\ab\renpy-build-fix\tmp\install.windows-x86_64\lib\python312.zip',
'\home\tom\ab\renpy-build-fix\tmp\install.windows-x86_64\lib\python3.12',
'C:\rishabh\GAMES\renpy-8.4.1-sdk\lib\python3.12\lib-dynload',
]
Failed checking if argv[0] is an import path entry
ModuleNotFoundError: No module named 'encodings'

Traceback (most recent call last):
File "C:\rishabh\GAMES\renpy-8.4.1-sdk\renpy.py", line 27, in
ModuleNotFoundError: No module named 'future'

Steps Tried

Fresh download from renpy.org
.

Extracted clean into C:\renpy_clean.

Verified lib\python3.12\encodings exists.

Noticed no python312.zip file is included in the official zip.

Manually repacked the stdlib into python312.zip. Ren’Py launches further, but still fails later (missing proper path setup).

Notes

The logs show Ren’Py is looking for stdlib in a hardcoded Linux build path (\home\tom\ab\renpy-build-fix...) instead of the bundled lib\python3.12.

This looks like a packaging error in the Windows 8.4.1 SDK zip.

Older SDKs (8.3.x) did include python312.zip and worked fine.

Expected

A clean download of Ren’Py 8.4.1 SDK should start without requiring manual python312.zip creation.

Attachments

Full renpy_final_output.txt log is attached.

Directory listing of lib\python3.12 confirms encodings/ exists but no python312.zip was shipped.

renpy_final_output.txt

renpy_final_output.txt

lib_python312_listing.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Triaged.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions