Skip to content

cannot import name 'NSGAII' from 'platypus' #242

Answered by dhadka
katto01 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, did you happen to install from the master branch within the last day, or are seeing this error?

Traceback (most recent call last):
  File "examples/custom_problem_function.py", line 1, in <module>
    from platypus import NSGAII, Problem, Real
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/platypus/__init__.py", line 20, in <module>
    from .core import FixedLengthArray, Problem, Generator, Variator, \
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/platypus/core.py", line 25, in <module>
    import logging
  File "/home/runner/work/Platypus/Platypus/examples/logging.py", line 1, in <module>
    from platypus import NSGAII, DTLZ2…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dhadka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants