Modly requires python-embed and can't create Python venv on first launch on Windows
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
- Install latest Modly by cloning from GIT, as described in "Download - Alternative" section.
- After launch with "launch.bat" there is "python-embed not found" error.
- 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.
Ignore previous comments.
Easiest thing you can do:
npm run prepare-resources
Thanks, it helps.
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?