>>> py3-patsy: Building community/py3-patsy 0.5.6-r1 (using abuild 3.14.1-r1) started Fri, 01 Nov 2024 17:43:28 +0000 >>> py3-patsy: Validating /home/buildozer/aports/community/py3-patsy/APKBUILD... >>> py3-patsy: Analyzing dependencies... >>> py3-patsy: Installing for build: build-base python3 py3-numpy py3-scipy py3-six py3-gpep517 py3-setuptools py3-wheel py3-pytest-xdist py3-pytest-cov (1/63) Installing libbz2 (1.0.8-r6) (2/63) Installing libffi (3.4.6-r0) (3/63) Installing gdbm (1.24-r0) (4/63) Installing xz-libs (5.6.3-r0) (5/63) Installing mpdecimal (4.0.0-r0) (6/63) Installing libpanelw (6.5_p20241006-r2) (7/63) Installing sqlite-libs (3.47.0-r0) (8/63) Installing python3 (3.12.7-r1) (9/63) Installing python3-pycache-pyc0 (3.12.7-r1) (10/63) Installing pyc (3.12.7-r1) (11/63) Installing python3-pyc (3.12.7-r1) (12/63) Installing libquadmath (14.2.0-r4) (13/63) Installing libgfortran (14.2.0-r4) (14/63) Installing openblas (0.3.28-r0) (15/63) Installing py3-numpy (2.1.2-r0) (16/63) Installing py3-numpy-pyc (2.1.2-r0) (17/63) Installing py3-parsing (3.1.4-r0) (18/63) Installing py3-parsing-pyc (3.1.4-r0) (19/63) Installing py3-packaging (24.1-r0) (20/63) Installing py3-packaging-pyc (24.1-r0) (21/63) Installing py3-platformdirs (4.3.6-r0) (22/63) Installing py3-platformdirs-pyc (4.3.6-r0) (23/63) Installing py3-certifi (2024.8.30-r0) (24/63) Installing py3-certifi-pyc (2024.8.30-r0) (25/63) Installing py3-charset-normalizer (3.4.0-r0) (26/63) Installing py3-charset-normalizer-pyc (3.4.0-r0) (27/63) Installing py3-idna (3.10-r0) (28/63) Installing py3-idna-pyc (3.10-r0) (29/63) Installing py3-urllib3 (1.26.20-r0) (30/63) Installing py3-urllib3-pyc (1.26.20-r0) (31/63) Installing py3-requests (2.32.3-r0) (32/63) Installing py3-requests-pyc (2.32.3-r0) (33/63) Installing py3-pooch (1.8.2-r0) (34/63) Installing py3-pooch-pyc (1.8.2-r0) (35/63) Installing py3-scipy (1.13.1-r0) (36/63) Installing py3-scipy-pyc (1.13.1-r0) (37/63) Installing py3-six (1.16.0-r9) (38/63) Installing py3-six-pyc (1.16.0-r9) (39/63) Installing py3-installer (0.7.0-r2) (40/63) Installing py3-installer-pyc (0.7.0-r2) (41/63) Installing py3-gpep517 (16-r0) (42/63) Installing py3-gpep517-pyc (16-r0) (43/63) Installing py3-setuptools (70.3.0-r0) (44/63) Installing py3-setuptools-pyc (70.3.0-r0) (45/63) Installing py3-wheel (0.43.0-r0) (46/63) Installing py3-wheel-pyc (0.43.0-r0) (47/63) Installing py3-execnet (2.1.1-r0) (48/63) Installing py3-execnet-pyc (2.1.1-r0) (49/63) Installing py3-iniconfig (2.0.0-r1) (50/63) Installing py3-iniconfig-pyc (2.0.0-r1) (51/63) Installing py3-pluggy (1.5.0-r0) (52/63) Installing py3-pluggy-pyc (1.5.0-r0) (53/63) Installing py3-py (1.11.0-r4) (54/63) Installing py3-py-pyc (1.11.0-r4) (55/63) Installing py3-pytest (8.3.3-r0) (56/63) Installing py3-pytest-pyc (8.3.3-r0) (57/63) Installing py3-pytest-xdist (3.6.1-r0) (58/63) Installing py3-pytest-xdist-pyc (3.6.1-r0) (59/63) Installing py3-coverage (7.5.1-r0) (60/63) Installing py3-coverage-pyc (7.5.1-r0) (61/63) Installing py3-pytest-cov (5.0.0-r0) (62/63) Installing py3-pytest-cov-pyc (5.0.0-r0) (63/63) Installing .makedepends-py3-patsy (20241101.174342) Executing busybox-1.37.0-r5.trigger OK: 572 MiB in 164 packages >>> py3-patsy: Cleaning up srcdir >>> py3-patsy: Cleaning up pkgdir >>> py3-patsy: Cleaning up tmpdir >>> py3-patsy: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/patsy-0.5.6.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) wget: server returned error: HTTP/1.1 404 Not Found >>> py3-patsy: Fetching https://github.com/pydata/patsy/archive/v0.5.6/patsy-0.5.6.tar.gz Connecting to github.com (140.82.121.4:443) Connecting to codeload.github.com (140.82.121.10:443) saving to '/var/cache/distfiles/v3.21/patsy-0.5.6.tar.gz.part' patsy-0.5.6.tar.gz.p 100% |********************************| 390k 0:00:00 ETA '/var/cache/distfiles/v3.21/patsy-0.5.6.tar.gz.part' saved >>> py3-patsy: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/patsy-0.5.6.tar.gz >>> py3-patsy: Checking sha512sums... patsy-0.5.6.tar.gz: OK >>> py3-patsy: Unpacking /var/cache/distfiles/v3.21/patsy-0.5.6.tar.gz... 2024-11-01 17:43:45,185 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ 2024-11-01 17:43:45,202 root INFO running bdist_wheel 2024-11-01 17:43:45,225 root INFO running build 2024-11-01 17:43:45,225 root INFO running build_py 2024-11-01 17:43:45,228 root INFO creating build 2024-11-01 17:43:45,229 root INFO creating build/lib 2024-11-01 17:43:45,229 root INFO creating build/lib/patsy 2024-11-01 17:43:45,229 root INFO copying patsy/categorical.py -> build/lib/patsy 2024-11-01 17:43:45,229 root INFO copying patsy/contrasts.py -> build/lib/patsy 2024-11-01 17:43:45,229 root INFO copying patsy/eval.py -> build/lib/patsy 2024-11-01 17:43:45,230 root INFO copying patsy/splines.py -> build/lib/patsy 2024-11-01 17:43:45,230 root INFO copying patsy/util.py -> build/lib/patsy 2024-11-01 17:43:45,230 root INFO copying patsy/test_state.py -> build/lib/patsy 2024-11-01 17:43:45,230 root INFO copying patsy/user_util.py -> build/lib/patsy 2024-11-01 17:43:45,231 root INFO copying patsy/test_splines_crs_data.py -> build/lib/patsy 2024-11-01 17:43:45,231 root INFO copying patsy/design_info.py -> build/lib/patsy 2024-11-01 17:43:45,231 root INFO copying patsy/mgcv_cubic_splines.py -> build/lib/patsy 2024-11-01 17:43:45,232 root INFO copying patsy/version.py -> build/lib/patsy 2024-11-01 17:43:45,232 root INFO copying patsy/origin.py -> build/lib/patsy 2024-11-01 17:43:45,232 root INFO copying patsy/__init__.py -> build/lib/patsy 2024-11-01 17:43:45,232 root INFO copying patsy/desc.py -> build/lib/patsy 2024-11-01 17:43:45,233 root INFO copying patsy/infix_parser.py -> build/lib/patsy 2024-11-01 17:43:45,233 root INFO copying patsy/state.py -> build/lib/patsy 2024-11-01 17:43:45,233 root INFO copying patsy/tokens.py -> build/lib/patsy 2024-11-01 17:43:45,233 root INFO copying patsy/missing.py -> build/lib/patsy 2024-11-01 17:43:45,233 root INFO copying patsy/test_splines_bs_data.py -> build/lib/patsy 2024-11-01 17:43:45,234 root INFO copying patsy/compat.py -> build/lib/patsy 2024-11-01 17:43:45,234 root INFO copying patsy/parse_formula.py -> build/lib/patsy 2024-11-01 17:43:45,234 root INFO copying patsy/test_highlevel.py -> build/lib/patsy 2024-11-01 17:43:45,235 root INFO copying patsy/builtins.py -> build/lib/patsy 2024-11-01 17:43:45,235 root INFO copying patsy/test_build.py -> build/lib/patsy 2024-11-01 17:43:45,235 root INFO copying patsy/highlevel.py -> build/lib/patsy 2024-11-01 17:43:45,235 root INFO copying patsy/constraint.py -> build/lib/patsy 2024-11-01 17:43:45,236 root INFO copying patsy/build.py -> build/lib/patsy 2024-11-01 17:43:45,236 root INFO copying patsy/test_regressions.py -> build/lib/patsy 2024-11-01 17:43:45,236 root INFO copying patsy/compat_ordereddict.py -> build/lib/patsy 2024-11-01 17:43:45,236 root INFO copying patsy/redundancy.py -> build/lib/patsy 2024-11-01 17:43:45,244 root INFO installing to build/bdist.linux-i686/wheel 2024-11-01 17:43:45,244 root INFO running install 2024-11-01 17:43:45,252 root INFO running install_lib 2024-11-01 17:43:45,256 root INFO creating build/bdist.linux-i686 2024-11-01 17:43:45,256 root INFO creating build/bdist.linux-i686/wheel 2024-11-01 17:43:45,256 root INFO creating build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,256 root INFO copying build/lib/patsy/categorical.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,256 root INFO copying build/lib/patsy/contrasts.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,256 root INFO copying build/lib/patsy/eval.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,257 root INFO copying build/lib/patsy/splines.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,257 root INFO copying build/lib/patsy/util.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,257 root INFO copying build/lib/patsy/test_state.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,257 root INFO copying build/lib/patsy/user_util.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,257 root INFO copying build/lib/patsy/test_splines_crs_data.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,258 root INFO copying build/lib/patsy/design_info.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,258 root INFO copying build/lib/patsy/mgcv_cubic_splines.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,258 root INFO copying build/lib/patsy/version.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,258 root INFO copying build/lib/patsy/origin.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,258 root INFO copying build/lib/patsy/__init__.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,259 root INFO copying build/lib/patsy/desc.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,259 root INFO copying build/lib/patsy/infix_parser.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,259 root INFO copying build/lib/patsy/state.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,259 root INFO copying build/lib/patsy/tokens.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,259 root INFO copying build/lib/patsy/missing.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,259 root INFO copying build/lib/patsy/test_splines_bs_data.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,260 root INFO copying build/lib/patsy/compat.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,260 root INFO copying build/lib/patsy/parse_formula.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,260 root INFO copying build/lib/patsy/test_highlevel.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,260 root INFO copying build/lib/patsy/builtins.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,260 root INFO copying build/lib/patsy/test_build.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,261 root INFO copying build/lib/patsy/highlevel.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,261 root INFO copying build/lib/patsy/constraint.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,261 root INFO copying build/lib/patsy/build.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,261 root INFO copying build/lib/patsy/test_regressions.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,261 root INFO copying build/lib/patsy/compat_ordereddict.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,262 root INFO copying build/lib/patsy/redundancy.py -> build/bdist.linux-i686/wheel/patsy 2024-11-01 17:43:45,262 root INFO running install_egg_info 2024-11-01 17:43:45,265 root INFO running egg_info 2024-11-01 17:43:45,265 root INFO creating patsy.egg-info 2024-11-01 17:43:45,268 root INFO writing patsy.egg-info/PKG-INFO 2024-11-01 17:43:45,269 root INFO writing dependency_links to patsy.egg-info/dependency_links.txt 2024-11-01 17:43:45,269 root INFO writing requirements to patsy.egg-info/requires.txt 2024-11-01 17:43:45,269 root INFO writing top-level names to patsy.egg-info/top_level.txt 2024-11-01 17:43:45,269 root INFO writing manifest file 'patsy.egg-info/SOURCES.txt' 2024-11-01 17:43:45,273 root INFO reading manifest file 'patsy.egg-info/SOURCES.txt' 2024-11-01 17:43:45,273 root INFO reading manifest template 'MANIFEST.in' 2024-11-01 17:43:45,275 root WARNING no previously-included directories found matching 'doc/_build' 2024-11-01 17:43:45,275 root INFO adding license file 'LICENSE.txt' 2024-11-01 17:43:45,276 root INFO writing manifest file 'patsy.egg-info/SOURCES.txt' 2024-11-01 17:43:45,277 root INFO Copying patsy.egg-info to build/bdist.linux-i686/wheel/patsy-0.5.6-py3.12.egg-info 2024-11-01 17:43:45,277 root INFO running install_scripts 2024-11-01 17:43:45,279 root INFO creating build/bdist.linux-i686/wheel/patsy-0.5.6.dist-info/WHEEL 2024-11-01 17:43:45,280 wheel INFO creating '/home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.dist/.tmp-vt1u5nz3/patsy-0.5.6-py2.py3-none-any.whl' and adding 'build/bdist.linux-i686/wheel' to it 2024-11-01 17:43:45,280 wheel INFO adding 'patsy/__init__.py' 2024-11-01 17:43:45,281 wheel INFO adding 'patsy/build.py' 2024-11-01 17:43:45,281 wheel INFO adding 'patsy/builtins.py' 2024-11-01 17:43:45,281 wheel INFO adding 'patsy/categorical.py' 2024-11-01 17:43:45,281 wheel INFO adding 'patsy/compat.py' 2024-11-01 17:43:45,282 wheel INFO adding 'patsy/compat_ordereddict.py' 2024-11-01 17:43:45,282 wheel INFO adding 'patsy/constraint.py' 2024-11-01 17:43:45,282 wheel INFO adding 'patsy/contrasts.py' 2024-11-01 17:43:45,282 wheel INFO adding 'patsy/desc.py' 2024-11-01 17:43:45,283 wheel INFO adding 'patsy/design_info.py' 2024-11-01 17:43:45,283 wheel INFO adding 'patsy/eval.py' 2024-11-01 17:43:45,284 wheel INFO adding 'patsy/highlevel.py' 2024-11-01 17:43:45,284 wheel INFO adding 'patsy/infix_parser.py' 2024-11-01 17:43:45,284 wheel INFO adding 'patsy/mgcv_cubic_splines.py' 2024-11-01 17:43:45,284 wheel INFO adding 'patsy/missing.py' 2024-11-01 17:43:45,285 wheel INFO adding 'patsy/origin.py' 2024-11-01 17:43:45,285 wheel INFO adding 'patsy/parse_formula.py' 2024-11-01 17:43:45,285 wheel INFO adding 'patsy/redundancy.py' 2024-11-01 17:43:45,285 wheel INFO adding 'patsy/splines.py' 2024-11-01 17:43:45,286 wheel INFO adding 'patsy/state.py' 2024-11-01 17:43:45,286 wheel INFO adding 'patsy/test_build.py' 2024-11-01 17:43:45,286 wheel INFO adding 'patsy/test_highlevel.py' 2024-11-01 17:43:45,286 wheel INFO adding 'patsy/test_regressions.py' 2024-11-01 17:43:45,287 wheel INFO adding 'patsy/test_splines_bs_data.py' 2024-11-01 17:43:45,288 wheel INFO adding 'patsy/test_splines_crs_data.py' 2024-11-01 17:43:45,288 wheel INFO adding 'patsy/test_state.py' 2024-11-01 17:43:45,289 wheel INFO adding 'patsy/tokens.py' 2024-11-01 17:43:45,289 wheel INFO adding 'patsy/user_util.py' 2024-11-01 17:43:45,289 wheel INFO adding 'patsy/util.py' 2024-11-01 17:43:45,289 wheel INFO adding 'patsy/version.py' 2024-11-01 17:43:45,290 wheel INFO adding 'patsy-0.5.6.dist-info/LICENSE.txt' 2024-11-01 17:43:45,290 wheel INFO adding 'patsy-0.5.6.dist-info/METADATA' 2024-11-01 17:43:45,290 wheel INFO adding 'patsy-0.5.6.dist-info/WHEEL' 2024-11-01 17:43:45,290 wheel INFO adding 'patsy-0.5.6.dist-info/top_level.txt' 2024-11-01 17:43:45,290 wheel INFO adding 'patsy-0.5.6.dist-info/RECORD' 2024-11-01 17:43:45,291 root INFO removing build/bdist.linux-i686/wheel 2024-11-01 17:43:45,292 gpep517 INFO The backend produced .dist/patsy-0.5.6-py2.py3-none-any.whl patsy-0.5.6-py2.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-patsy/src/patsy-0.5.6 configfile: setup.cfg testpaths: patsy plugins: cov-5.0.0, xdist-3.6.1 created: 48/48 workers 48 workers [148 items] ........................................................................ [ 48%] .......................................................FF.F.FF.......... [ 97%] .F.. [100%] =================================== FAILURES =================================== _______________________ test_stateful_transform_wrapper ________________________ [gw0] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.testenv/bin/python3 def test_stateful_transform_wrapper(): > assert np.allclose(center([1, 2, 3]), [-1, 0, 1]) patsy/test_state.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/state.py:48: in stateful_transform_wrapper return transform.transform(*args, **kwargs) patsy/state.py:106: in transform x = asarray_or_pandas(x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = [1, 2, 3], copy = False, dtype = None, subok = False def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # https://github.com/pydata/pandas/issues/1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError ______________________________ test_formula_likes ______________________________ [gw25] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.testenv/bin/python3 def test_formula_likes(): # Plain array-like, rhs only > t([[1, 2, 3], [4, 5, 6]], {}, 0, False, [[1, 2, 3], [4, 5, 6]], ["x0", "x1", "x2"]) patsy/test_highlevel.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/test_highlevel.py:104: in t rhs = f(formula_like, data, depth) patsy/highlevel.py:290: in dmatrix (lhs, rhs) = _do_highlevel_design(formula_like, data, eval_env, patsy/highlevel.py:181: in _do_highlevel_design (lhs, rhs) = (None, asarray_or_pandas(formula_like, subok=True)) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = [[1, 2, 3], [4, 5, 6]], copy = False, dtype = None, subok = True def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # https://github.com/pydata/pandas/issues/1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError _________________________________ test_Center __________________________________ [gw47] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.testenv/bin/python3 def test_Center(): > check_stateful(Center, True, [1, 2, 3], [-1, 0, 1]) patsy/test_state.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/test_state.py:81: in check_stateful output_chunk = t.transform(input_chunk, *args, **kwargs) patsy/state.py:106: in transform x = asarray_or_pandas(x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = np.int32(1), copy = False, dtype = None, subok = False def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # https://github.com/pydata/pandas/issues/1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError ----------------------------- Captured stdout call ----------------------------- [array([1, 2, 3])] [1 2 3] _______________________________ test_incremental _______________________________ [gw12] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.testenv/bin/python3 msg = 'Error evaluating factor' origin = EvalFactor('center(np.sin(center(x)))') f = > args = ('_patsy_stobj0__center__.memorize_chunk(np.sin(_patsy_stobj1__center__.transform(x)))',) kwargs = {'inner_namespace': VarLookupDict([{}, {'a': ['a2', 'a2', 'a2'], 'x': [1, 2, 3]}, {'_patsy_stobj0__center__': , '_patsy_stobj1__center__': }])} new_exc = PatsyError('Error evaluating factor: ValueError: Unable to avoid copy while creating an array as requested.\nIf using ...r more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.') def call_and_wrap_exc(msg, origin, f, *args, **kwargs): try: > return f(*args, **kwargs) patsy/compat.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/eval.py:169: in eval return eval(code, {}, VarLookupDict([inner_namespace] patsy/state.py:106: in transform x = asarray_or_pandas(x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = [1, 2, 3], copy = False, dtype = None, subok = False def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # https://github.com/pydata/pandas/issues/1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError The above exception was the direct cause of the following exception: def test_incremental(): # incr_dbuilder(s) # stateful transformations datas = [ {"a": ["a2", "a2", "a2"], "x": [1, 2, 3]}, {"a": ["a2", "a2", "a1"], "x": [4, 5, 6]}, ] x = np.asarray([1, 2, 3, 4, 5, 6]) sin_center_x = np.sin(x - np.mean(x)) x_col = sin_center_x - np.mean(sin_center_x) def data_iter_maker(): return iter(datas) > builders = incr_dbuilders("1 ~ a + center(np.sin(center(x)))", data_iter_maker) patsy/test_highlevel.py:516: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/highlevel.py:129: in incr_dbuilders design_infos = _try_incr_builders(formula_like, data_iter_maker, eval_env, patsy/highlevel.py:66: in _try_incr_builders return design_matrix_builders([formula_like.lhs_termlist, patsy/build.py:689: in design_matrix_builders factor_states = _factors_memorize(all_factors, data_iter_maker, eval_env) patsy/build.py:368: in _factors_memorize factor.memorize_chunk(state, which_pass, data) patsy/eval.py:559: in memorize_chunk self._eval(state["memorize_code"][obj_name], patsy/eval.py:551: in _eval return call_and_wrap_exc("Error evaluating factor", patsy/compat.py:43: in call_and_wrap_exc exec("raise new_exc from e") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E patsy.PatsyError: Error evaluating factor: ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. E 1 ~ a + center(np.sin(center(x))) E ^^^^^^^^^^^^^^^^^^^^^^^^^ :1: PatsyError ________________________________ test_builtins _________________________________ [gw30] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.testenv/bin/python3 msg = 'Error evaluating factor', origin = EvalFactor('center(x)') f = > args = ('_patsy_stobj0__center__.transform(x)',) kwargs = {'inner_namespace': VarLookupDict([{}, {'x': [1, 2, 3], 'y': [4, 5, 6], 'a b c': [10, 20, 30]}, {'_patsy_stobj0__center__': }])} new_exc = PatsyError('Error evaluating factor: ValueError: Unable to avoid copy while creating an array as requested.\nIf using ...r more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.') def call_and_wrap_exc(msg, origin, f, *args, **kwargs): try: > return f(*args, **kwargs) patsy/compat.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/eval.py:169: in eval return eval(code, {}, VarLookupDict([inner_namespace] patsy/state.py:106: in transform x = asarray_or_pandas(x) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = [1, 2, 3], copy = False, dtype = None, subok = False def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # https://github.com/pydata/pandas/issues/1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError The above exception was the direct cause of the following exception: def test_builtins(): data = {"x": [1, 2, 3], "y": [4, 5, 6], "a b c": [10, 20, 30]} t("0 + I(x + y)", data, 0, True, [[1], [2], [3], [4], [5], [6]], ["I(x + y)"]) t("Q('a b c')", data, 0, True, [[1, 10], [1, 20], [1, 30]], ["Intercept", "Q('a b c')"]) > t("center(x)", data, 0, True, [[1, -1], [1, 0], [1, 1]], ["Intercept", "center(x)"]) patsy/test_highlevel.py:498: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ patsy/test_highlevel.py:83: in t builder = incr_dbuilder(formula_like, data_iter_maker, depth) patsy/highlevel.py:111: in incr_dbuilder design_infos = _try_incr_builders(formula_like, data_iter_maker, eval_env, patsy/highlevel.py:66: in _try_incr_builders return design_matrix_builders([formula_like.lhs_termlist, patsy/build.py:693: in design_matrix_builders cat_levels_contrasts) = _examine_factor_types(all_factors, patsy/build.py:443: in _examine_factor_types value = factor.eval(factor_states[factor], data) patsy/eval.py:568: in eval return self._eval(memorize_state["eval_code"], patsy/eval.py:551: in _eval return call_and_wrap_exc("Error evaluating factor", patsy/compat.py:43: in call_and_wrap_exc exec("raise new_exc from e") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ??? E patsy.PatsyError: Error evaluating factor: ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. E center(x) E ^^^^^^^^^ :1: PatsyError ____________________________ test_asarray_or_pandas ____________________________ [gw41] linux -- Python 3.12.7 /home/buildozer/aports/community/py3-patsy/src/patsy-0.5.6/.testenv/bin/python3 def test_asarray_or_pandas(): import warnings > assert type(asarray_or_pandas([1, 2, 3])) is np.ndarray patsy/util.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = [1, 2, 3], copy = False, dtype = None, subok = False def asarray_or_pandas(a, copy=False, dtype=None, subok=False): if have_pandas: if isinstance(a, (pandas.Series, pandas.DataFrame)): # The .name attribute on Series is discarded when passing through # the constructor: # https://github.com/pydata/pandas/issues/1578 extra_args = {} if hasattr(a, "name"): extra_args["name"] = a.name return a.__class__(a, copy=copy, dtype=dtype, **extra_args) > return np.array(a, copy=copy, dtype=dtype, subok=subok) E ValueError: Unable to avoid copy while creating an array as requested. E If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x). E For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. patsy/util.py:67: ValueError =========================== short test summary info ============================ FAILED patsy/test_state.py::test_stateful_transform_wrapper - ValueError: Una... FAILED patsy/test_highlevel.py::test_formula_likes - ValueError: Unable to av... FAILED patsy/test_state.py::test_Center - ValueError: Unable to avoid copy wh... FAILED patsy/test_highlevel.py::test_incremental - patsy.PatsyError: Error ev... FAILED patsy/test_highlevel.py::test_builtins - patsy.PatsyError: Error evalu... FAILED patsy/util.py::test_asarray_or_pandas - ValueError: Unable to avoid co... ======================== 6 failed, 142 passed in 32.69s ======================== >>> ERROR: py3-patsy: check failed >>> py3-patsy: Uninstalling dependencies... (1/63) Purging .makedepends-py3-patsy (20241101.174342) (2/63) Purging py3-scipy-pyc (1.13.1-r0) (3/63) Purging py3-scipy (1.13.1-r0) (4/63) Purging py3-pooch-pyc (1.8.2-r0) (5/63) Purging py3-pooch (1.8.2-r0) (6/63) Purging py3-platformdirs-pyc (4.3.6-r0) (7/63) Purging py3-platformdirs (4.3.6-r0) (8/63) Purging py3-requests-pyc (2.32.3-r0) (9/63) Purging py3-requests (2.32.3-r0) (10/63) Purging py3-certifi-pyc (2024.8.30-r0) (11/63) Purging py3-certifi (2024.8.30-r0) (12/63) Purging py3-charset-normalizer-pyc (3.4.0-r0) (13/63) Purging py3-charset-normalizer (3.4.0-r0) (14/63) Purging py3-idna-pyc (3.10-r0) (15/63) Purging py3-idna (3.10-r0) (16/63) Purging py3-urllib3-pyc (1.26.20-r0) (17/63) Purging py3-urllib3 (1.26.20-r0) (18/63) Purging py3-numpy-pyc (2.1.2-r0) (19/63) Purging py3-numpy (2.1.2-r0) (20/63) Purging openblas (0.3.28-r0) (21/63) Purging py3-six-pyc (1.16.0-r9) (22/63) Purging py3-six (1.16.0-r9) (23/63) Purging py3-gpep517-pyc (16-r0) (24/63) Purging py3-gpep517 (16-r0) (25/63) Purging py3-installer-pyc (0.7.0-r2) (26/63) Purging py3-installer (0.7.0-r2) (27/63) Purging py3-setuptools-pyc (70.3.0-r0) (28/63) Purging py3-setuptools (70.3.0-r0) (29/63) Purging py3-wheel-pyc (0.43.0-r0) (30/63) Purging py3-wheel (0.43.0-r0) (31/63) Purging py3-pytest-xdist-pyc (3.6.1-r0) (32/63) Purging py3-pytest-xdist (3.6.1-r0) (33/63) Purging py3-execnet-pyc (2.1.1-r0) (34/63) Purging py3-execnet (2.1.1-r0) (35/63) Purging py3-pytest-cov-pyc (5.0.0-r0) (36/63) Purging py3-pytest-cov (5.0.0-r0) (37/63) Purging py3-pytest-pyc (8.3.3-r0) (38/63) Purging py3-pytest (8.3.3-r0) (39/63) Purging py3-iniconfig-pyc (2.0.0-r1) (40/63) Purging py3-iniconfig (2.0.0-r1) (41/63) Purging py3-packaging-pyc (24.1-r0) (42/63) Purging py3-packaging (24.1-r0) (43/63) Purging py3-parsing-pyc (3.1.4-r0) (44/63) Purging py3-parsing (3.1.4-r0) (45/63) Purging py3-pluggy-pyc (1.5.0-r0) (46/63) Purging py3-pluggy (1.5.0-r0) (47/63) Purging py3-py-pyc (1.11.0-r4) (48/63) Purging py3-py (1.11.0-r4) (49/63) Purging py3-coverage-pyc (7.5.1-r0) (50/63) Purging py3-coverage (7.5.1-r0) (51/63) Purging python3-pyc (3.12.7-r1) (52/63) Purging python3-pycache-pyc0 (3.12.7-r1) (53/63) Purging pyc (3.12.7-r1) (54/63) Purging python3 (3.12.7-r1) (55/63) Purging gdbm (1.24-r0) (56/63) Purging libbz2 (1.0.8-r6) (57/63) Purging libffi (3.4.6-r0) (58/63) Purging libgfortran (14.2.0-r4) (59/63) Purging libpanelw (6.5_p20241006-r2) (60/63) Purging libquadmath (14.2.0-r4) (61/63) Purging mpdecimal (4.0.0-r0) (62/63) Purging sqlite-libs (3.47.0-r0) (63/63) Purging xz-libs (5.6.3-r0) Executing busybox-1.37.0-r5.trigger OK: 396 MiB in 101 packages