Trying to integrate a Python version of Vidyo on a ColdFusion site

199 Views Asked by At

I'm developing a ColdFusion site that needs to integrate Vidyo. I haven't found a ColdFusion based solution but I have found a Python version. However I'm having an issue trying to call the Python file to generate the tokens for the Vidyo session. I'm getting the following error:

An exception occurred when invoking an external process. The cause of this exception was that: java.io.IOException: Cannot run program "C:\Inetpub\vhosts\sitename\httpdocs\site.com\generateToken.py": CreateProcess error=193, %1 is not a valid Win32 application.
The error occurred on line 9.

Here is the code that the generates the error:

<cffunction name="generateToken" access="public" returntype="string" output="false">
    <cfargument name="userName" required="true" type="string">

    <cfexecute name = "C:\Inetpub\vhosts\sitename\httpdocs\site.com\generateToken.py"
        arguments="--key=3907f8fa000d4ae08e3a2a0507986d45 --appID=d85f88.vidyo.io --userName=#userName# --expiresInSecs=10000"
        variable="token"
        errorVariable="errorOut"
        timeout = "1">
    </cfexecute>

    <cfreturn token>
</cffunction>

I have never integrated with Python before so any help would be appreciated. Also if anyone knows of a pure ColdFusion integration with Vidyo I'd be willing to switch my direction.

0

There are 0 best solutions below