Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I wanted to play with the advanced control Button Example with python script. I have different versions of python on 2 computers:
My next step would be to download a newer verson of python onto the computer that fails and see if the problem with the control is resolved.
But: how do I know which version Prime needs/uses? There doesn.t seem to be any documentation in Prime 11 other than a statement along the lines of "Prime will register python and enable python scripts".
Solved! Go to Solution.
@rgunwaldsen wrote:
But: how do I know which version Prime needs/uses? There doesn.t seem to be any documentation in Prime 11 other than a statement along the lines of "Prime will register python and enable python scripts".
"PTC Mathcad Prime scriptable controls support VBScript, JScript ES3, and Python 3.7 to 3.13. All controls have scripts written in JScript as a default."
@rgunwaldsen wrote:
But: how do I know which version Prime needs/uses? There doesn.t seem to be any documentation in Prime 11 other than a statement along the lines of "Prime will register python and enable python scripts".
"PTC Mathcad Prime scriptable controls support VBScript, JScript ES3, and Python 3.7 to 3.13. All controls have scripts written in JScript as a default."
Thank you for the reference; this is good information, although I would prefer it be in a "system requirements" section. I will download python 3.12 and, hopefully, the problem will disappear and I will move on.
On a side note: it is a bit unsettling that provided example code should fail. Does PTC perform regression testing of its examples (here, python 3.7 through 3.13)? Would it be helpful to anybody for me to open a software trouble case? Or would I be simply "beating a dead horse".
Personally I only have Python 3.13 installed (no errors, everything is perfect with the Button example). I don't have insight into PTC's testing practices, specifically if the content if the Help Centre has different testing practices (or how extensive they are) than the product itself.
But you should send an email to the documentation team (click the "Send feedback about this page to PTC" button at the top right corner that looks like an envelope found on pretty much every page of Mathcad Help Centre) and explain that the example apparently didn't work on what should be a supported version of Python and see what kind of response you get. I know they're responsive whenever I point out something. (...Maybe because I work at PTC or maybe they're always like that.) It's definitely outside the realm of my expertise on why it'd fail, though.
Thank you for the information.
I investigated my python environment. I had a bunch of prior python versions which I then uninstalled and then installed version 3.13. Next I investigated the computer's environmental variables deleting references to prior python versions and all TCK variables.
Finally, I did a modify/repair on the python 3.13. All is now good with the advanced controls :).
So I conclude that the good folks at PTC did a diligent job of testing, and that the original problem was of my own doing.
Thank you again!