aarongarrett / inspyred

Python library for bio-inspired computational intelligence
MIT License
187 stars 58 forks source link

Release of new version on pypi #25

Closed gedeck closed 8 months ago

gedeck commented 1 year ago

Description

You already fixed the problem with the Iterable import in this repository. With Python 3.10, version 1.0.1 can no longer be used. When do you plan to release a new version on pypi?

What I Did

Third party package (pykriging) that uses inspyred fails to work when using with Python 3.10

jchen6727 commented 1 year ago

(dev) XXXX@XXXX:~$ conda list | grep inspyred inspyred 1.0.1 pypi_0 pypi

File "/home/XXXX/miniconda3/envs/dev/lib/python3.10/site-packages/inspyred/ec/ec.py", line 115, in __init__ if not isinstance(self.lower_bound, collections.Iterable): AttributeError: module 'collections' has no attribute 'Iterable'

Python 3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import collections >>> collections.Iterable Traceback (most recent call last): File "", line 1, in AttributeError: module 'collections' has no attribute 'Iterable' >>> collections.abc.Iterable <class 'collections.abc.Iterable'>

sanjayankur31 commented 8 months ago

I've released 1.0.2 with a bunch of fixes, please do test it out and file new issues if you encounter them

https://pypi.org/project/inspyred/1.0.2/