Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to python3 #108

Open
santteegt opened this issue Oct 16, 2019 · 3 comments
Open

Upgrade to python3 #108

santteegt opened this issue Oct 16, 2019 · 3 comments

Comments

@santteegt
Copy link

Hi,

I'm looking for ways to upgrade the system so a Python Transformer can execute python3 code instead of python2.7. I've tried updating the version of conda and setting the python version used by pyspark within the sessionmanager container, but then I can't initiate any workflow due to an error in the PythonExecutionCaretaker class. What steps should I take to enable Python3 within Seahorse transformer operators?

Thanks for your advice

@rockerdudesandy
Copy link

rockerdudesandy commented Jun 2, 2021

Hi @santteegt
Were you able to figure out a fix for this issue?

@subinsoman
Copy link

subinsoman commented Jun 23, 2021

change the code in seahorse-workflow-executor/blob/master/python/pyexecutor/code_executor.py

exec custom_operation_code in context

to

exec (custom_operation_code in context)

@santteegt
Copy link
Author

@subinsoman check this commit santteegt@e8d5ff5 and the others I pushed to my own fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants