I had a problem on my work computer so I uninstalled all versions of Python and installed the most current version (3.6). Originally there were several older versions. I’m having a bit of a problem (ok, major problem) getting any of the scripts to run inside Sublime, and am wondering if the package control I originally installed is Python version dependent? I am also exploring the differences between the Python versions, which is more likely to be the problem, just wanted to check that I’ve not overlooked a related problem.
Python package version
I’m not sure if this is the question that you’re asking, but ST uses its own internal version of Python. You can get the internal version number using the following on the ST console:
import sys; print (sys.version)
Thanks, I will check when I return to the office. The scripts stopped working just as soon as I uninstalled and reinstalled Python on the computer.
That could be a symptom of the new python no longer being in your path after the reinstall.
It could…but the error message in Sublime references the new Python installation so Sublime appears to know where to look. It may be no more than the differences in Python 3.6. It is not backwards compatible so I suspect this is the root of the problem. If Sublime didn’t “know” where the new installation was located then it wouldn’t reference it in the error message.
I also just conducted an experiment at home - the same scripts won’t work in Python 3.6 on my Ubuntu system but work fine when I use Python 2.7 to run them, so I don’t think it’s a Sublime issue at all. These are quite basic scripts which I assumed should run fine across Python versions. Apparently not, I just read through quite a long list of the differences and some are indeed basic changes.
So never mind…and thanks again for hearing me out on this.
Ahh yeah, there are a few differences between versions 2 and 3 of python that are not backwards compatible. I think there are some automated tools that can fix a lot of them, but I’ve never used them myself so I can’t say for sure how well they work.