Project-Platypus / Platypus

A Free and Open Source Python Library for Multiobjective Optimization
GNU General Public License v3.0
569 stars 153 forks source link

Unable to run basic example on Mac OS x #67

Closed apfz closed 1 year ago

apfz commented 6 years ago

I have installed platypus according to the instructions. However I am not able to run example files:

Traceback (most recent call last):
  File "/Users/f/app/Resources/solver/platypus.py", line 1, in <module>
    from platypus import NSGAII, Problem, Real
  File "/Users/f/app/Resources/solver/Resources/solver/platypus.py", line 1, in <module>
    from platypus import NSGAII, Problem, Real
ImportError: cannot import name 'NSGAII'

Any idea why the installation may not be complete?

dhadka commented 6 years ago

Hi, it's likely there is a different Python module installed with the same name. If you are not using the other module, I would recommend uninstalling it first then installing Platypus again using the instructions in the readme file. Thanks!

github-actions[bot] commented 1 year ago

This issue is stale and will be closed soon. If you feel this issue is still relevant, please comment to keep it active. Please also consider working on a fix and submitting a PR.