Code Monkey home page Code Monkey logo

jsr223-cpython's Introduction

jsr223-cpython

JSR223 script engine for CPython

jsr223-cpython's People

Contributors

andrewssobral avatar fviale avatar mykhailenko avatar sophiesongge avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsr223-cpython's Issues

Engine will not run for .py files

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.

Script engine execution fails on python3

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.