Bug#963817: numpy breaks pandas autopkgtest: TypeError: Cannot interpret 'CategoricalDtype(categories=None, ordered=None)' as a data type
Paul Gevers
elbrus at debian.org
Sat Jun 27 21:04:32 BST 2020
Source: numpy, pandas
Control: found -1 numpy/1:1.19.0-1
Control: found -1 pandas/0.25.3+dfsg2-2
Severity: serious
Tags: sid bullseye
X-Debbugs-CC: debian-ci at lists.debian.org
User: debian-ci at lists.debian.org
Usertags: breaks needs-update
Dear maintainer(s),
With a recent upload of numpy the autopkgtest of pandas fails in testing
when that autopkgtest is run with the binary packages of numpy from
unstable. It passes when run with only packages from testing. In tabular
form:
pass fail
numpy from testing 1:1.19.0-1
pandas from testing 0.25.3+dfsg2-2
all others from testing from testing
I copied some of the output at the bottom of this report.
Currently this regression is blocking the migration of numpy to testing
[1]. Due to the nature of this issue, I filed this bug report against
both packages. Can you please investigate the situation and reassign the
bug to the right package?
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[1] https://qa.debian.org/excuses.php?package=numpy
https://ci.debian.net/data/autopkgtest/testing/amd64/p/pandas/6058901/log.gz
=================================== FAILURES
===================================
___________________ TestCategoricalDtype.test_numpy_informed
___________________
self = <pandas.tests.dtypes.test_dtypes.TestCategoricalDtype object at
0x7f9877b8b070>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E TypeError: Cannot interpret
'CategoricalDtype(categories=None, ordered=None)' as a data type
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
TypeError
During handling of the above exception, another exception occurred:
self = <pandas.tests.dtypes.test_dtypes.TestCategoricalDtype object at
0x7f9877b8b070>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E AssertionError: Pattern 'data type not understood' not found
in "Cannot interpret 'CategoricalDtype(categories=None, ordered=None)'
as a data type"
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
AssertionError
___________________ TestDatetimeTZDtype.test_numpy_informed
____________________
self = <pandas.tests.dtypes.test_dtypes.TestDatetimeTZDtype object at
0x7f9877a5bf70>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E TypeError: Cannot interpret 'datetime64[ns, US/Eastern]' as
a data type
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
TypeError
During handling of the above exception, another exception occurred:
self = <pandas.tests.dtypes.test_dtypes.TestDatetimeTZDtype object at
0x7f9877a5bf70>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E AssertionError: Pattern 'data type not understood' not found
in "Cannot interpret 'datetime64[ns, US/Eastern]' as a data type"
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
AssertionError
_____________________ TestPeriodDtype.test_numpy_informed
______________________
self = <pandas.tests.dtypes.test_dtypes.TestPeriodDtype object at
0x7f9877a23970>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E TypeError: Cannot interpret 'period[D]' as a data type
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
TypeError
During handling of the above exception, another exception occurred:
self = <pandas.tests.dtypes.test_dtypes.TestPeriodDtype object at
0x7f9877a23970>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E AssertionError: Pattern 'data type not understood' not found
in "Cannot interpret 'period[D]' as a data type"
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
AssertionError
____________________ TestIntervalDtype.test_numpy_informed
_____________________
self = <pandas.tests.dtypes.test_dtypes.TestIntervalDtype object at
0x7f9877aa4520>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E TypeError: Cannot interpret 'interval[int64]' as a data type
/usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py:50:
TypeError
During handling of the above exception, another exception occurred:
self = <pandas.tests.dtypes.test_dtypes.TestIntervalDtype object at
0x7f9877aa4520>
def test_numpy_informed(self):
with pytest.raises(TypeError, match="data type not understood"):
> np.dtype(self.dtype)
E AssertionError: Pattern 'data type not understood' not found
in "Cannot interpret 'interval[int64]' as a data type"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20200627/200fca05/attachment.sig>
More information about the debian-science-maintainers
mailing list