geatpy-dev / geatpy

Evolutionary algorithm toolbox and framework with high performance for Python
http://www.geatpy.com
GNU Lesser General Public License v3.0
2.02k stars 726 forks source link

cannot import name 'migrate' from 'migrate' #171

Closed sbwww closed 3 years ago

sbwww commented 3 years ago

Describe the bug I encountered the following bug report when importing geatpy

Traceback (most recent call last):
  File "...\solve.py", line 3, in <module>
    import geatpy as ea   # import geatpy       
  File "...\Python37\lib\site-packages\geatpy\__init__.py", line 38, in <module>
    from migrate import migrate
ImportError: cannot import name 'migrate' from 'migrate' (...\Python37\lib\site-packages\migrate\__init__.py)

To Reproduce It was just importing geatpy

import geatpy as ea

Desktop (please complete the following information):

Additional context Maybe it has something to do with my installed packages, I will check it up, but I'm not sure I can handle this.

sbwww commented 3 years ago

As the 'migrate' is not in the pip list, I just removed the directory named 'migrate' from 'site-packages', and it seems to be fine. However, I have no idea why it was there, and whether I had just brought a potential disaster to myself :dizzy_face:

geatpy-dev commented 3 years ago

Clapping, you did a good job!