Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix find_python when using venv #114

Merged
merged 3 commits into from
Dec 27, 2024
Merged

Conversation

killcerr
Copy link
Contributor

@killcerr killcerr commented Dec 27, 2024

issue

reproduce

python -m venv .
pip install endstone
endstone

log

[2024-12-28 00:44:59.642 ERROR] [Server] Error occurred when trying to register a plugin loader: RuntimeError: Unable to find Python executable. Attempted paths: ['C:\\Users\\killcerr\\endstone\\python.exe']

At:
  C:\Users\killcerr\endstone\Lib\site-packages\endstone\_internal\plugin_loader.py(40): find_python
  C:\Users\killcerr\endstone\Lib\site-packages\endstone\_internal\plugin_loader.py(52): __init__

fix

add sys.executable to path search list.

related issue

#28

@killcerr killcerr changed the title fix: fix find_python in venv fix: fix find_python when using venv Dec 27, 2024
@killcerr killcerr closed this Dec 27, 2024
@killcerr killcerr reopened this Dec 27, 2024
@wu-vincent wu-vincent merged commit 9c0cbbc into EndstoneMC:main Dec 27, 2024
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants