JSR223 script engine for CPython
ow2-proactive / jsr223-cpython Goto Github PK
View Code? Open in Web Editor NEWJSR223 script engine for CPython
License: GNU Affero General Public License v3.0
JSR223 script engine for CPython
License: GNU Affero General Public License v3.0
Currently .cpy
is the only extension supported by the script engine. This causes issues with text editor syntax highlighters that are hardcoded to file extensions, and is generally a bit frustrating. It'd be great to have .py
supported as well.
When running print("hello world") using python3, the following error message appears:
[[email protected];00:47:46] Traceback (most recent call last):
[[email protected];00:47:46] File "/tmp/jsr223-cpython-7412619575473794336.cpy", line 4, in <module>
[[email protected];00:47:46] params = GatewayParameters(auth_token = os.environ['CPYTHON_TOKEN'], port=39819, auto_convert=True)
[[email protected];00:47:46] TypeError: __init__() got an unexpected keyword argument 'auth_token'
[[email protected];00:47:46] Failed to execute task: Python process execution has failed with exit code 1
[[email protected];00:47:46] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:292)
[[email protected];00:47:46] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:167)
[[email protected];00:47:46] at org.ow2.proactive.scheduler.task.executors.forked.env.ExecuteForkedTaskInsideNewJvm.fromForkedJVM(ExecuteForkedTaskInsideNewJvm.java:126)
[[email protected];00:47:46] at org.ow2.proactive.scheduler.task.executors.forked.env.ExecuteForkedTaskInsideNewJvm.main(ExecuteForkedTaskInsideNewJvm.java:110)
[[email protected];00:47:46] Caused by: org.ow2.proactive.scripting.ScriptException: Python process execution has failed with exit code 1
[[email protected];00:47:46] at jsr223.cpython.PythonScriptEngine.eval(PythonScriptEngine.java:165)
[[email protected];00:47:46] at jsr223.cpython.PythonScriptEngine.eval(PythonScriptEngine.java:250)
[[email protected];00:47:46] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
[[email protected];00:47:46] at org.ow2.proactive.scripting.Script.execute(Script.java:412)
[[email protected];00:47:46] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:65)
[[email protected];00:47:46] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:288)
[[email protected];00:47:46] ... 3 more
This issue does not appear with python 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.