Pentaho

 View Only
  • 1.  Specifying Python version in CPython Executor

    Posted 04-25-2022 14:26
    Hi there,

    after a long time I again started to play around with Pentaho and Python, but I lost all my previous work, so I have to start from scratch to gain knowledge again. :(

    What I wonder is which version the CPython Script Executor takes to execute a script inserted directly into the field (script is not loaded at runtime). I ask therefore because I have several Python versions installed (2.7 (default, called with python), 3.6, 3.8, 3.10, all of them called via python<version>).

    Is there any parameter where I can configure the Python executable to use or do I have to reference to an external script?

    Many thanks in advance, regards, Thomas

    ------------------------------
    Thomas Klinger
    ------------------------------


  • 2.  RE: Specifying Python version in CPython Executor

    Posted 04-26-2022 05:49
    According to the issue opened in Cpython github page, it's a parameter in the kettle.properties file, pdi.cpython.command.
    Cpython github page

    ------------------------------
    Ana Gonzalez
    Data Service Manager
    UDIMA
    ------------------------------



  • 3.  RE: Specifying Python version in CPython Executor

    Posted 04-26-2022 05:56
    Thanks for pointing that out. I'd have never found this, many thanks.

    Regards, Thomas

    ------------------------------
    Thomas Klinger
    ------------------------------