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

Unsupported class file major version 58 #14

Closed
ierezell opened this issue Oct 23, 2020 · 1 comment
Closed

Unsupported class file major version 58 #14

ierezell opened this issue Oct 23, 2020 · 1 comment

Comments

@ierezell
Copy link

Hi,
First thanks a lot for this nice work !
It seems that you used spark and the java version on tensorflow to accomplish that right (with python as wrapper)?

I tried to install the nlu package on my python 3.8 which for now doesn't work (and it's okay #11 ).
So I created a virtual environement with python 3.7.

Launching ipython, import nlu that works.

However when I try to do as the doc : nlu.load('sentiment').predict('Why is NLU is awesome? Because of the sauce!') (In fact just nlu.load('sentiment') is the reason of the crash)

It return an

<class 'pyspark.sql.utils.IllegalArgumentException'>
'Unsupported class file major version 58'

I'm using Archlinux kernel zen 5.9.1 on a new virtual env with only wheel and nlu installed on python 3.7.9

I have java 8 / 11 and 14 installed

@ierezell
Copy link
Author

Edit :

For those getting the same problem : You need java 8 activated by default (or pyspark configured as so)

For those on archlinux : sudo archlinux-java set java-8-openjdk/jre did the trick (check then with archlinux-java status)

I'm sorry to made a issue for nothing I should have RTFM.

(I still have the apache warning for versions but it's ok and working)

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

1 participant