jMetal / jMetalPy

A framework for single/multi-objective optimization with metaheuristics
https://jmetal.github.io/jMetalPy/index.html
MIT License
498 stars 150 forks source link

SyntaxError: invalid syntax #32

Closed tscorreia closed 5 years ago

tscorreia commented 5 years ago

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 commented 5 years ago

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

Antonio

tscorreia commented 5 years ago

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. :)