modly icon indicating copy to clipboard operation
modly copied to clipboard

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

Open Ricotta12345 opened this issue 3 months ago • 3 comments

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

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

Ricotta12345 avatar Aug 05 '26 20:08 Ricotta12345

Ignore previous comments. Easiest thing you can do: npm run prepare-resources

dlannan avatar Aug 18 '26 04:08 dlannan

Thanks, it helps.

Ricotta12345 avatar Sep 11 '26 16:09 Ricotta12345

I know this is closed but you can also do the node scripts/download-python-embed.js and it might help set things up initially too?

iammojogo-sudo avatar Sep 27 '26 15:09 iammojogo-sudo