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

SyntaxError: invalid syntax #32

Closed
tscorreia opened this issue Dec 6, 2018 · 2 comments
Closed

SyntaxError: invalid syntax #32

tscorreia opened this issue Dec 6, 2018 · 2 comments

Comments

@tscorreia
Copy link

Hi.
I get that output when I try to import the package: from jmetal.algorithm import NSGAII

Traceback (most recent call last):
File "Jmetal.py", line 1, in
from jmetal.algorithm import NSGAII
File "/usr/lib/python2.7/site-packages/jmetalpy-0.5.1-py2.7.egg/jmetal/init.py", line 3, in
from jmetal import algorithm
File "/usr/lib/python2.7/site-packages/jmetalpy-0.5.1-py2.7.egg/jmetal/algorithm/init.py", line 1, in
from .multiobjective.nsgaii import NSGAII
File "/usr/lib/python2.7/site-packages/jmetalpy-0.5.1-py2.7.egg/jmetal/algorithm/multiobjective/nsgaii.py", line 24
problem: Problem[S],
^
SyntaxError: invalid syntax

@ajnebro
Copy link
Contributor

ajnebro commented Dec 10, 2018

Hi.
jMetalPy requires Python 3.6 or higher, and it seems that you are using Python 2.7.

Antonio

@tscorreia
Copy link
Author

Hi.
jMetalPy requires Python 3.6 or higher, and it seems that you are using Python 2.7.

Antonio

Thank you so much. I didn't see that information on documentation.
It's working now. :)

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

2 participants