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

Enable Support for python >=3.10 #645

Closed
rodrigo-arenas opened this issue Jun 5, 2022 · 10 comments
Closed

Enable Support for python >=3.10 #645

rodrigo-arenas opened this issue Jun 5, 2022 · 10 comments

Comments

@rodrigo-arenas
Copy link

Hi, I create this issue because it seems like is not possible to install deap 1.3.X on python>=3.10; the latest version that the setup can resolve is 1.0.
It would be great if we can use the newest python versions

image
image

@aabmets
Copy link

aabmets commented Jun 6, 2022

@rodrigo-arenas
The problem is with setuptools version >= 58.0.0
Run pip install setuptools<58 and try again.

Explanation: the use_2to3 setuptools method is deprecated from version 58 onward.
Since DEAP is not being maintained anymore, they have not updated their setup to
be compatible with the latest version of setuptools.

@rodrigo-arenas
Copy link
Author

Thanks @aabmets, it seems like changing the versions make it works

@rodrigo-arenas
Copy link
Author

@aabmets, by the way, it looks like even if it is installed, there are parts of the package that are not valid any longer, for example, on the deap/base.py file

image

@rodrigo-arenas rodrigo-arenas reopened this Jun 6, 2022
@aabmets
Copy link

aabmets commented Jun 6, 2022

@rodrigo-arenas
The problem is that DEAP is written in Python 2.7 syntax.
I tried converting the source files to Python 3 using the 2to3 tool, but it's insufficient, as in some places logic changes are required.
If enough people are interested, we could start a DEAP3.10 project and work on converting the source to be compatible with Python 3.

@rodrigo-arenas
Copy link
Author

I agree @aabmets ; there are several open PR that already address this issue and other fixes; the only problem is that it seems like the maintainers are no longer reviewing and merging them.
I had thought as well of creating and maintaining a fork of DEAP; it might be a good idea to get this project alive again.

@aabmets
Copy link

aabmets commented Jun 6, 2022

@rodrigo-arenas
I've created a new project for DEAP revival, you can find it at DEAP-er

@rodrigo-arenas
Copy link
Author

Cool I'll check it out

@selforganizing
Copy link

selforganizing commented Jun 9, 2022

I solved my Python 3 issues with DEAP (in Windows) when I used 2to3 manually, as described here:
https://github.com/aabmets/deap-er/issues/1#issuecomment-1150996583
(I have yet to encounter the logic problems that @aabmets mentions, hopefully won't encounter any!)

@aabmets
Copy link

aabmets commented Jun 9, 2022

@selforganizing @rodrigo-arenas
I finished the beta version of DEAP-er.
Please try it out with pip install deap-er to test it for any bugs.
If there are any issues, please open an issue on the DEAP-er repository page.

@rodrigo-arenas
Copy link
Author

Thanks, @aabmets I'll try it out and let you know

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

3 participants