[ 
https://issues.apache.org/jira/browse/LIVY-886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17524101#comment-17524101
 ] 

Rajat Khandelwal commented on LIVY-886:
---------------------------------------

We see this error when trying to run any python code

 !screenshot-1.png! 

Looking at line 223: 
https://github.com/apache/incubator-livy/blob/master/repl/src/main/resources/fake_shell.py#L222-L223,
 we see this.

 !screenshot-2.png! 

After a bit of googling, we found this

https://bugs.python.org/issue35894#msg334808

 !screenshot-3.png! 



So, python 3.8 has changed the behaviour of `ast` module, which livy was 
relying upon. The recommendation from Guido is that the code should be passing 
an empty list as the second argument. 

I tried that out and it just makes it work. 



> Livy is incompatible with python 3.8+
> -------------------------------------
>
>                 Key: LIVY-886
>                 URL: https://issues.apache.org/jira/browse/LIVY-886
>             Project: Livy
>          Issue Type: Bug
>          Components: Interpreter, REPL
>    Affects Versions: 0.5.0, 0.6.0, 0.7.0
>            Reporter: Rajat Khandelwal
>            Priority: Major
>         Attachments: screenshot-1.png, screenshot-2.png, screenshot-3.png
>
>
> Due to python behaviour change after 3.8+, livy has become incompatible with 
> python versions 3.8+. As of now, python 3.6 is out of support, so the only 
> version livy is compatible with is 3.7. 
> This is going to make the project obsolete very fast. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to