jonathf / numpoly

Numpy compatible polynomial representation
https://numpoly.readthedocs.io
BSD 2-Clause "Simplified" License
12 stars 6 forks source link

Tests fail: AttributeError: module 'numpy' has no attribute 'bool' #119

Open yurivict opened 4 days ago

yurivict commented 4 days ago
____________________________________________________________________________ ERROR collecting test/test_align.py ____________________________________________________________________________
test_align.py:6: in <module>
    X, Y = numpoly.variable(2)
../../stage/usr/local/lib/python3.11/site-packages/numpoly/construct/variable.py:44: in variable
    return numpoly.symbols(
../../stage/usr/local/lib/python3.11/site-packages/numpoly/construct/symbols.py:93: in symbols
    out = numpoly.ndpoly.from_attributes(
../../stage/usr/local/lib/python3.11/site-packages/numpoly/baseclass.py:388: in from_attributes
    return numpoly.polynomial_from_attributes(
../../stage/usr/local/lib/python3.11/site-packages/numpoly/construct/from_attributes.py:95: in polynomial_from_attributes
    numpoly.cfrom_attributes(coefficients, poly.values.ravel())
numpoly/cfunctions/cfrom_attributes.pyx:22: in numpoly.cfunctions.cfrom_attributes.cfrom_attributes
    ???
numpoly/cfunctions/cvalues.pyx:124: in numpoly.cfunctions.cvalues.cset_values
    ???
numpoly/cfunctions/cvalues.pyx:129: in numpoly.cfunctions.cvalues.cset_values
    ???
/usr/local/lib/python3.11/site-packages/numpy/__init__.py:324: in __getattr__
    raise AttributeError(__former_attrs__[attr])
E   AttributeError: module 'numpy' has no attribute 'bool'.
E   `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
E   The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
E       https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Version: 1.3.3 numpoly-1.3.3 Python-3.11 FreeBSD 14.1

jonathf commented 4 days ago

What version of numpy?