Skip to content

Modly requires python-embed and can't create Python venv on first launch on Windows #255

Description

@Ricotta12345

Describe the bug

On Microsoft Windows, with usual Python installed, Modly first requires Python-embed (which can't create venvs by design) and then can't create venv.

Steps to reproduce

  1. Install latest Modly by cloning from GIT, as described in "Download - Alternative" section.
  2. After launch with "launch.bat" there is "python-embed not found" error.
  3. After manual downloading of embedded python 3.11.9, there is error "no module named venv".

Modly version

0.4.1

Operating system

Windows 10

Screenshots & logs

App started тАФ version 0.4.1
[builtin-sync] Built-in extensions synced to C:\Users\Admin\AppData\Roaming\Modly\builtin-extensions
Skip checkForUpdates because application is not packed and dev update config is not forced
[PythonSetup] Creating venv at F:\AI\modly3D\DATA\dependencies\venv
[venv] F:\AI\modly3D\resources\python-embed\python.exe: No module named venv
[venv] sitecustomize.py applied
[PythonSetup] Error: python -m venv exited with code 1

F:\AI\modly3D\resources\python-embed\python.exe: No module named venv

Your antivirus may be blocking the Python runtime.
Try adding an exclusion for:
F:\AI\modly3D\resources\python-embed\python.exe
Or temporarily pause real-time protection, then click Retry.

Confirmation

  • I have searched existing issues and this has not been reported yet.
  • I can reproduce this on the latest version of Modly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions