External Python Specific Install
Looking at this post it suggests that Tree Age Pro users use python 2.7. Is there a way to specify which external python path or executable is utilized? Where is the default python executable installed?
If not, being able to specify the python install to evaluate against would be a useful feature. With py4j and other packages installed, I can't seem to get an external import to work successfully yet.
Thanks,
Michael
Comments
Currently the external instance that TreeAge Pro communicates with is specified by the PATH environmental variable. Accessible from System Properties, Advanced Settings, Environmental Variables; Path.
So for example on my Windows setup I have Python27 at "C:\Python27" and Python 3.5 at "C:\Program Files\Python35\python.exe". The Path variable contains only reference to "C:\Python27".
Since I use Python 3.5 only from the IDLE console I do not need to have it in the Path. Having both Python 2.7 and 3.5 would lead to some problems, I suspect.
The suggestion of providing ability to specify the location of External Python within TreeAge Pro is a good suggestion. We will consider this as a further enhancement in the future. Thank you for bringing this up.
Thanks Al,
I've messed around with my PATH variables a bit in the last few days, including what you suggested above and haven't been able to successfully evaluate a simple function like:
Which I call from the evaluator using:
The error message I continue to receive is:
"Error while obtaining a new communication channel"
If I switch to not using external python it evaluates as expected. Speaking of which is that being evaluated by the org.Python_2.5.1.jar plugin?
Any more troubleshooting tips to get an external version Python working?
Build-Id: 18.1.1.0-v20180328
Thanks,
Al, Just saw your reply to the other post. I look forward to troubleshooting this with the next deployment.
Cheers,
Mike
Repeat of the post in the other Python thread:
The link to External Python is now working with the new production release of TreeAge Pro 2018 R2.0.
If you have TreeAge Pro 2018 R1.2 you can simply perform Help -> Update to upgrade to the R2.0 version.
If you are running TreeAge Pro 2018 R1.1 or any earlier version, you will need to re-install TreeAge Pro 2.0 from
www.treeage.com/install
TreeAge Pro 2018 R1.2 introduces a new Eclipse platform which requires new installation. It is safe to overwrite the previous version of TreeAge Pro with the new one. The license information is preserved when you overwrite the older version of software. Please back up your work before updating.
We will add the selection of specific path to Python instance in the future version of TreeAge Pro, for now the DOS Path variable is the way to make the selection.
Please sign in to leave a comment.