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

Unable to specify python version to use. #3

Closed
SophiaBronosky opened this issue Dec 26, 2015 · 5 comments
Closed

Unable to specify python version to use. #3

SophiaBronosky opened this issue Dec 26, 2015 · 5 comments

Comments

@SophiaBronosky
Copy link

I've found that castle.py does not work with Python3. I have tried specifying the version in both the *.py files and in ~\AppData\Local\py.ini (Windows 10, sorry) but neither have any effect. See the attached files. (I added .txt to the end of the filenames to allow them to be attached) Any idea how to specify the python version to use?

Creating the py.ini file caused calling python at the shell to use python 2.7. Please help.

version.py.txt
version2.py.txt
version3.py.txt
py.ini.txt

@arpruss
Copy link
Owner

arpruss commented Dec 26, 2015

  1. Have you checked that you are using the python3 version of the script? (From python3-scripts/mcpipy.)
  2. You can control which interpreter is used in the mod config, available from the main Minecraft menu.

@RichardBronosky
Copy link

I have replaced the mcpipy directory multiple times. I will look for the mod config.

-- (Sophia's father)

@RichardBronosky
Copy link

Thank you so much for the quick response! I have confirmed that changing the mod config worked. I open a Power Shell session and typed py and hit tab repeatedly to see all the executable options. They were py.exe, python.exe, pythonw.exe, pyw.exe, C:\Python27\python.exe, C:\Python27\pythonw.exe

The setting change I made was:
Main Menu > Mods > Raspberry Jam Mod > Config > Python Interpreter: c:\Python27\python.exe

(I'm leaving this here for anyone else who makes the unfortunate decision to purchase a Windows laptop for their child.)

@RichardBronosky
Copy link

I have also deleted the castle.py from my computer and re-extracted it from the zip file python3-scripts.zip in https://github.com/arpruss/raspberryjammod/releases/tag/0.51 I still get the same error. I'm attaching a screenshot.

mc-castle-error1.1
mc-castle-error1.2

@arpruss
Copy link
Owner

arpruss commented Jul 18, 2016

I've tested all the python 3 scripts currently included.

@arpruss arpruss closed this as completed Jul 18, 2016
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

No branches or pull requests

3 participants