>>> py3-niapy: Building community/py3-niapy 2.3.1-r2 (using abuild 3.14.1-r1) started Thu, 07 Nov 2024 02:35:05 +0000 >>> py3-niapy: Validating /home/buildozer/aports/community/py3-niapy/APKBUILD... >>> py3-niapy: Analyzing dependencies... >>> py3-niapy: Installing for build: build-base python3 py3-numpy py3-pandas py3-openpyxl py3-matplotlib py3-gpep517 py3-poetry-core py3-pytest-xdist (1/93) Installing libbz2 (1.0.8-r6) (2/93) Installing libffi (3.4.6-r0) (3/93) Installing gdbm (1.24-r0) (4/93) Installing xz-libs (5.6.3-r0) (5/93) Installing mpdecimal (4.0.0-r0) (6/93) Installing libpanelw (6.5_p20241006-r2) (7/93) Installing sqlite-libs (3.47.0-r0) (8/93) Installing python3 (3.12.7-r1) (9/93) Installing python3-pycache-pyc0 (3.12.7-r1) (10/93) Installing pyc (3.12.7-r1) (11/93) Installing python3-pyc (3.12.7-r1) (12/93) Installing libgfortran (14.2.0-r4) (13/93) Installing openblas (0.3.28-r0) (14/93) Installing py3-numpy (2.1.2-r0) (15/93) Installing py3-numpy-pyc (2.1.2-r0) (16/93) Installing py3-six (1.16.0-r9) (17/93) Installing py3-six-pyc (1.16.0-r9) (18/93) Installing py3-dateutil (2.9.0-r1) (19/93) Installing py3-dateutil-pyc (2.9.0-r1) (20/93) Installing py3-tz (2024.2-r0) (21/93) Installing py3-tz-pyc (2024.2-r0) (22/93) Installing py3-attrs (24.2.0-r0) (23/93) Installing py3-attrs-pyc (24.2.0-r0) (24/93) Installing py3-tzdata (2024.2-r0) (25/93) Installing py3-tzdata-pyc (2024.2-r0) (26/93) Installing py3-pandas (2.2.3-r0) (27/93) Installing py3-pandas-pyc (2.2.3-r0) (28/93) Installing libgpg-error (1.50-r0) (29/93) Installing libgcrypt (1.10.3-r1) (30/93) Installing libxml2 (2.13.4-r3) (31/93) Installing libxslt (1.1.42-r1) (32/93) Installing py3-lxml (5.3.0-r0) (33/93) Installing py3-lxml-pyc (5.3.0-r0) (34/93) Installing libpng (1.6.44-r0) (35/93) Installing freetype (2.13.3-r0) (36/93) Installing libimagequant (4.2.2-r0) (37/93) Installing libjpeg-turbo (3.0.4-r0) (38/93) Installing lcms2 (2.16-r0) (39/93) Installing openjpeg (2.5.2-r0) (40/93) Installing libsharpyuv (1.4.0-r0) (41/93) Installing libwebp (1.4.0-r0) (42/93) Installing tiff (4.7.0-r0) (43/93) Installing libwebpdemux (1.4.0-r0) (44/93) Installing libwebpmux (1.4.0-r0) (45/93) Installing libxau (1.0.11-r4) (46/93) Installing libmd (1.1.0-r0) (47/93) Installing libbsd (0.12.2-r0) (48/93) Installing libxdmcp (1.1.5-r1) (49/93) Installing libxcb (1.16.1-r0) (50/93) Installing py3-pillow (11.0.0-r0) (51/93) Installing py3-pillow-pyc (11.0.0-r0) (52/93) Installing py3-openpyxl (3.1.5-r0) (53/93) Installing py3-openpyxl-pyc (3.1.5-r0) (54/93) Installing py3-contourpy (1.3.0-r0) (55/93) Installing py3-contourpy-pyc (1.3.0-r0) (56/93) Installing py3-cycler (0.12.1-r1) (57/93) Installing py3-cycler-pyc (0.12.1-r1) (58/93) Installing py3-fonttools (4.54.1-r0) (59/93) Installing py3-fonttools-pyc (4.54.1-r0) (60/93) Installing py3-kiwisolver (1.4.5-r1) (61/93) Installing py3-kiwisolver-pyc (1.4.5-r1) (62/93) Installing py3-matplotlib-fonts (3.9.1-r0) (63/93) Installing py3-matplotlib-data (3.9.1-r0) (64/93) Installing py3-parsing (3.1.4-r0) (65/93) Installing py3-parsing-pyc (3.1.4-r0) (66/93) Installing py3-packaging (24.1-r0) (67/93) Installing py3-packaging-pyc (24.1-r0) (68/93) Installing qhull (2020.2-r3) (69/93) Installing py3-matplotlib (3.9.1-r0) (70/93) Installing py3-matplotlib-pyc (3.9.1-r0) (71/93) Installing py3-installer (0.7.0-r2) (72/93) Installing py3-installer-pyc (0.7.0-r2) (73/93) Installing py3-gpep517 (16-r0) (74/93) Installing py3-gpep517-pyc (16-r0) (75/93) Installing py3-fastjsonschema (2.20.0-r0) (76/93) Installing py3-fastjsonschema-pyc (2.20.0-r0) (77/93) Installing py3-lark-parser (1.1.9-r1) (78/93) Installing py3-lark-parser-pyc (1.1.9-r1) (79/93) Installing py3-poetry-core (1.9.1-r0) (80/93) Installing py3-poetry-core-pyc (1.9.1-r0) (81/93) Installing py3-execnet (2.1.1-r0) (82/93) Installing py3-execnet-pyc (2.1.1-r0) (83/93) Installing py3-iniconfig (2.0.0-r1) (84/93) Installing py3-iniconfig-pyc (2.0.0-r1) (85/93) Installing py3-pluggy (1.5.0-r0) (86/93) Installing py3-pluggy-pyc (1.5.0-r0) (87/93) Installing py3-py (1.11.0-r4) (88/93) Installing py3-py-pyc (1.11.0-r4) (89/93) Installing py3-pytest (8.3.3-r0) (90/93) Installing py3-pytest-pyc (8.3.3-r0) (91/93) Installing py3-pytest-xdist (3.6.1-r0) (92/93) Installing py3-pytest-xdist-pyc (3.6.1-r0) (93/93) Installing .makedepends-py3-niapy (20241107.023510) Executing busybox-1.37.0-r6.trigger OK: 430 MiB in 192 packages >>> py3-niapy: Cleaning up srcdir >>> py3-niapy: Cleaning up pkgdir >>> py3-niapy: Cleaning up tmpdir >>> py3-niapy: Fetching https://distfiles.alpinelinux.org/distfiles/edge/py3-niapy-2.3.1.tar.gz >>> py3-niapy: Fetching https://distfiles.alpinelinux.org/distfiles/edge/py3-niapy-2.3.1.tar.gz >>> py3-niapy: Checking sha512sums... py3-niapy-2.3.1.tar.gz: OK >>> py3-niapy: Unpacking /var/cache/distfiles/py3-niapy-2.3.1.tar.gz... 2024-11-07 02:35:13,480 gpep517 INFO Building wheel via backend poetry.core.masonry.api 2024-11-07 02:35:13,695 poetry.core.masonry.builders.wheel INFO Building wheel 2024-11-07 02:35:13,800 poetry.core.masonry.builders.wheel INFO Built niapy-2.3.1-py3-none-any.whl 2024-11-07 02:35:13,800 gpep517 INFO The backend produced .dist/niapy-2.3.1-py3-none-any.whl niapy-2.3.1-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /home/buildozer/aports/community/py3-niapy/src/NiaPy-2.3.1 configfile: pyproject.toml plugins: xdist-3.6.1 created: 32/32 workers 32 workers [696 items] ........................................................................ [ 10%] ........................................................................ [ 20%] ........................................................................ [ 31%] ........................................................................ [ 41%] ........................................................................ [ 51%] ........................................................................ [ 62%] ........................................................................ [ 72%] ........................................................................ [ 82%] ........................................................................ [ 93%] ....................F.F......................... [100%] =================================== FAILURES =================================== _________________________ LSHADETestCase.test_griewank _________________________ [gw19] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-niapy/src/NiaPy-2.3.1/.testenv/bin/python3 self = def test_griewank(self): lshade_griewank = LpsrSuccessHistoryAdaptiveDifferentialEvolution(init_pop_size=10, extern_arc_rate=2.0, pbest_factor=0.2, hist_mem_size=5, seed=self.seed) lshade_griewankc = LpsrSuccessHistoryAdaptiveDifferentialEvolution(init_pop_size=10, extern_arc_rate=2.0, pbest_factor=0.2, hist_mem_size=5, seed=self.seed) > AlgorithmTestCase.test_algorithm_run(self, lshade_griewank, lshade_griewankc) tests/test_shade.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_algorithm.py:328: in test_algorithm_run raise a.exception niapy/algorithms/algorithm.py:314: in run pop, fpop, xb, fxb, params = self.run_iteration(task, pop, fpop, xb, fxb, **params) niapy/algorithms/modified/shade.py:454: in run_iteration population, archive, arc_ind_cnt, best_x, best_fitness = self.post_selection(population, archive, arc_ind_cnt, niapy/algorithms/modified/shade.py:517: in post_selection next_pop_size = np.int_(np.around((((4.0 - self.population_size) / np.float_(max_nfe)) * nfe) + self.population_size)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float_' def __getattr__(attr): # Warn for expired attributes import warnings if attr == "linalg": import numpy.linalg as linalg return linalg elif attr == "fft": import numpy.fft as fft return fft elif attr == "dtypes": import numpy.dtypes as dtypes return dtypes elif attr == "random": import numpy.random as random return random elif attr == "polynomial": import numpy.polynomial as polynomial return polynomial elif attr == "ma": import numpy.ma as ma return ma elif attr == "ctypeslib": import numpy.ctypeslib as ctypeslib return ctypeslib elif attr == "exceptions": import numpy.exceptions as exceptions return exceptions elif attr == "testing": import numpy.testing as testing return testing elif attr == "matlib": import numpy.matlib as matlib return matlib elif attr == "f2py": import numpy.f2py as f2py return f2py elif attr == "typing": import numpy.typing as typing return typing elif attr == "rec": import numpy.rec as rec return rec elif attr == "char": import numpy.char as char return char elif attr == "array_api": raise AttributeError("`numpy.array_api` is not available from " "numpy 2.0 onwards", name=None) elif attr == "core": import numpy.core as core return core elif attr == "strings": import numpy.strings as strings return strings elif attr == "distutils": if 'distutils' in __numpy_submodules__: import numpy.distutils as distutils return distutils else: raise AttributeError("`numpy.distutils` is not available from " "Python 3.12 onwards", name=None) if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: raise AttributeError(__former_attrs__[attr], name=None) if attr in __expired_attributes__: > raise AttributeError( f"`np.{attr}` was removed in the NumPy 2.0 release. " f"{__expired_attributes__[attr]}", name=None ) E AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead. /usr/lib/python3.12/site-packages/numpy/__init__.py:400: AttributeError __________________________ LSHADETestCase.test_custom __________________________ [gw14] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-niapy/src/NiaPy-2.3.1/.testenv/bin/python3 self = def test_custom(self): lshade_custom = LpsrSuccessHistoryAdaptiveDifferentialEvolution(init_pop_size=10, extern_arc_rate=2.0, pbest_factor=0.2, hist_mem_size=5, seed=self.seed) lshade_customc = LpsrSuccessHistoryAdaptiveDifferentialEvolution(init_pop_size=10, extern_arc_rate=2.0, pbest_factor=0.2, hist_mem_size=5, seed=self.seed) > AlgorithmTestCase.test_algorithm_run(self, lshade_custom, lshade_customc, MyProblem()) tests/test_shade.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_algorithm.py:328: in test_algorithm_run raise a.exception niapy/algorithms/algorithm.py:314: in run pop, fpop, xb, fxb, params = self.run_iteration(task, pop, fpop, xb, fxb, **params) niapy/algorithms/modified/shade.py:454: in run_iteration population, archive, arc_ind_cnt, best_x, best_fitness = self.post_selection(population, archive, arc_ind_cnt, niapy/algorithms/modified/shade.py:517: in post_selection next_pop_size = np.int_(np.around((((4.0 - self.population_size) / np.float_(max_nfe)) * nfe) + self.population_size)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float_' def __getattr__(attr): # Warn for expired attributes import warnings if attr == "linalg": import numpy.linalg as linalg return linalg elif attr == "fft": import numpy.fft as fft return fft elif attr == "dtypes": import numpy.dtypes as dtypes return dtypes elif attr == "random": import numpy.random as random return random elif attr == "polynomial": import numpy.polynomial as polynomial return polynomial elif attr == "ma": import numpy.ma as ma return ma elif attr == "ctypeslib": import numpy.ctypeslib as ctypeslib return ctypeslib elif attr == "exceptions": import numpy.exceptions as exceptions return exceptions elif attr == "testing": import numpy.testing as testing return testing elif attr == "matlib": import numpy.matlib as matlib return matlib elif attr == "f2py": import numpy.f2py as f2py return f2py elif attr == "typing": import numpy.typing as typing return typing elif attr == "rec": import numpy.rec as rec return rec elif attr == "char": import numpy.char as char return char elif attr == "array_api": raise AttributeError("`numpy.array_api` is not available from " "numpy 2.0 onwards", name=None) elif attr == "core": import numpy.core as core return core elif attr == "strings": import numpy.strings as strings return strings elif attr == "distutils": if 'distutils' in __numpy_submodules__: import numpy.distutils as distutils return distutils else: raise AttributeError("`numpy.distutils` is not available from " "Python 3.12 onwards", name=None) if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: raise AttributeError(__former_attrs__[attr], name=None) if attr in __expired_attributes__: > raise AttributeError( f"`np.{attr}` was removed in the NumPy 2.0 release. " f"{__expired_attributes__[attr]}", name=None ) E AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead. /usr/lib/python3.12/site-packages/numpy/__init__.py:400: AttributeError =========================== short test summary info ============================ FAILED tests/test_shade.py::LSHADETestCase::test_griewank - AttributeError: `... FAILED tests/test_shade.py::LSHADETestCase::test_custom - AttributeError: `np... ======================== 2 failed, 694 passed in 19.39s ======================== /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-3ad2fbdd-e40d-4b41-ab80-ec273e4daed5/popen-gw0/test_discovery_via_path_in_non0 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-3ad2fbdd-e40d-4b41-ab80-ec273e4daed5/popen-gw0/test_discovery_via_path_in_non0' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-3ad2fbdd-e40d-4b41-ab80-ec273e4daed5/popen-gw0 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-3ad2fbdd-e40d-4b41-ab80-ec273e4daed5/popen-gw0' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-3ad2fbdd-e40d-4b41-ab80-ec273e4daed5 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-3ad2fbdd-e40d-4b41-ab80-ec273e4daed5' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-8f927f22-1bc1-471a-ad95-736700cebed6/popen-gw18/test_discovery_via_path_in_non0 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-8f927f22-1bc1-471a-ad95-736700cebed6/popen-gw18/test_discovery_via_path_in_non0' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-8f927f22-1bc1-471a-ad95-736700cebed6/popen-gw18 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-8f927f22-1bc1-471a-ad95-736700cebed6/popen-gw18' warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:91: PytestWarning: (rm_rf) error removing /tmp/pytest-of-buildozer/garbage-8f927f22-1bc1-471a-ad95-736700cebed6 : [Errno 39] Directory not empty: '/tmp/pytest-of-buildozer/garbage-8f927f22-1bc1-471a-ad95-736700cebed6' warnings.warn( >>> ERROR: py3-niapy: check failed >>> py3-niapy: Uninstalling dependencies... (1/93) Purging .makedepends-py3-niapy (20241107.023510) (2/93) Purging py3-openpyxl-pyc (3.1.5-r0) (3/93) Purging py3-openpyxl (3.1.5-r0) (4/93) Purging py3-lxml-pyc (5.3.0-r0) (5/93) Purging py3-lxml (5.3.0-r0) (6/93) Purging py3-pandas-pyc (2.2.3-r0) (7/93) Purging py3-pandas (2.2.3-r0) (8/93) Purging py3-tz-pyc (2024.2-r0) (9/93) Purging py3-tz (2024.2-r0) (10/93) Purging py3-tzdata-pyc (2024.2-r0) (11/93) Purging py3-tzdata (2024.2-r0) (12/93) Purging py3-attrs-pyc (24.2.0-r0) (13/93) Purging py3-attrs (24.2.0-r0) (14/93) Purging py3-matplotlib-pyc (3.9.1-r0) (15/93) Purging py3-matplotlib (3.9.1-r0) (16/93) Purging py3-contourpy-pyc (1.3.0-r0) (17/93) Purging py3-contourpy (1.3.0-r0) (18/93) Purging py3-cycler-pyc (0.12.1-r1) (19/93) Purging py3-cycler (0.12.1-r1) (20/93) Purging py3-dateutil-pyc (2.9.0-r1) (21/93) Purging py3-dateutil (2.9.0-r1) (22/93) Purging py3-six-pyc (1.16.0-r9) (23/93) Purging py3-six (1.16.0-r9) (24/93) Purging py3-fonttools-pyc (4.54.1-r0) (25/93) Purging py3-fonttools (4.54.1-r0) (26/93) Purging py3-kiwisolver-pyc (1.4.5-r1) (27/93) Purging py3-kiwisolver (1.4.5-r1) (28/93) Purging py3-matplotlib-data (3.9.1-r0) (29/93) Purging py3-matplotlib-fonts (3.9.1-r0) (30/93) Purging py3-numpy-pyc (2.1.2-r0) (31/93) Purging py3-numpy (2.1.2-r0) (32/93) Purging openblas (0.3.28-r0) (33/93) Purging py3-pillow-pyc (11.0.0-r0) (34/93) Purging py3-pillow (11.0.0-r0) (35/93) Purging py3-gpep517-pyc (16-r0) (36/93) Purging py3-gpep517 (16-r0) (37/93) Purging py3-installer-pyc (0.7.0-r2) (38/93) Purging py3-installer (0.7.0-r2) (39/93) Purging py3-poetry-core-pyc (1.9.1-r0) (40/93) Purging py3-poetry-core (1.9.1-r0) (41/93) Purging py3-fastjsonschema-pyc (2.20.0-r0) (42/93) Purging py3-fastjsonschema (2.20.0-r0) (43/93) Purging py3-lark-parser-pyc (1.1.9-r1) (44/93) Purging py3-lark-parser (1.1.9-r1) (45/93) Purging py3-pytest-xdist-pyc (3.6.1-r0) (46/93) Purging py3-pytest-xdist (3.6.1-r0) (47/93) Purging py3-execnet-pyc (2.1.1-r0) (48/93) Purging py3-execnet (2.1.1-r0) (49/93) Purging py3-pytest-pyc (8.3.3-r0) (50/93) Purging py3-pytest (8.3.3-r0) (51/93) Purging py3-iniconfig-pyc (2.0.0-r1) (52/93) Purging py3-iniconfig (2.0.0-r1) (53/93) Purging py3-packaging-pyc (24.1-r0) (54/93) Purging py3-packaging (24.1-r0) (55/93) Purging py3-parsing-pyc (3.1.4-r0) (56/93) Purging py3-parsing (3.1.4-r0) (57/93) Purging py3-pluggy-pyc (1.5.0-r0) (58/93) Purging py3-pluggy (1.5.0-r0) (59/93) Purging py3-py-pyc (1.11.0-r4) (60/93) Purging py3-py (1.11.0-r4) (61/93) Purging python3-pyc (3.12.7-r1) (62/93) Purging python3-pycache-pyc0 (3.12.7-r1) (63/93) Purging pyc (3.12.7-r1) (64/93) Purging python3 (3.12.7-r1) (65/93) Purging freetype (2.13.3-r0) (66/93) Purging gdbm (1.24-r0) (67/93) Purging lcms2 (2.16-r0) (68/93) Purging libbz2 (1.0.8-r6) (69/93) Purging libffi (3.4.6-r0) (70/93) Purging libgfortran (14.2.0-r4) (71/93) Purging libimagequant (4.2.2-r0) (72/93) Purging libpanelw (6.5_p20241006-r2) (73/93) Purging libpng (1.6.44-r0) (74/93) Purging libwebpdemux (1.4.0-r0) (75/93) Purging libwebpmux (1.4.0-r0) (76/93) Purging libxcb (1.16.1-r0) (77/93) Purging libxdmcp (1.1.5-r1) (78/93) Purging libxslt (1.1.42-r1) (79/93) Purging mpdecimal (4.0.0-r0) (80/93) Purging openjpeg (2.5.2-r0) (81/93) Purging qhull (2020.2-r3) (82/93) Purging sqlite-libs (3.47.0-r0) (83/93) Purging tiff (4.7.0-r0) (84/93) Purging libbsd (0.12.2-r0) (85/93) Purging libgcrypt (1.10.3-r1) (86/93) Purging libgpg-error (1.50-r0) (87/93) Purging libjpeg-turbo (3.0.4-r0) (88/93) Purging libmd (1.1.0-r0) (89/93) Purging libwebp (1.4.0-r0) (90/93) Purging libsharpyuv (1.4.0-r0) (91/93) Purging libxau (1.0.11-r4) (92/93) Purging libxml2 (2.13.4-r3) (93/93) Purging xz-libs (5.6.3-r0) Executing busybox-1.37.0-r6.trigger OK: 243 MiB in 99 packages