Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1082741 > unrolled thread
| Started by | Stefano Rivera <stefanor@debian.org> |
|---|---|
| First post | 2021-11-22 23:10 +0100 |
| Last post | 2021-11-22 23:30 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
Bug#1000422: pandas: FTBFS with Python 3.10 - Test failures Stefano Rivera <stefanor@debian.org> - 2021-11-22 23:10 +0100
Bug#1000422: pandas: FTBFS with Python 3.10 - Test failures "Rebecca N. Palmer" <rebecca_palmer@zoho.com> - 2021-11-22 23:30 +0100
| From | Stefano Rivera <stefanor@debian.org> |
|---|---|
| Date | 2021-11-22 23:10 +0100 |
| Subject | Bug#1000422: pandas: FTBFS with Python 3.10 - Test failures |
| Message-ID | <DmpFD-4Ap-7@gated-at.bofh.it> |
Source: pandas
Version: 1.1.5+dfsg-2
Severity: serious
Justification: FTBFS
Pandas fails to build with Python 3.10.
See: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=amd64&ver=1.1.5%2Bdfsg-2%2Bb1&stamp=1637461771&raw=0
=================================== FAILURES ===================================
____ TestDatetime64SeriesComparison.test_comparison_invalid[None-DataFrame] ____
left = 0 1 2 3 4
0 0 1 2 3 4
right = 0 1 2 3 4
0 2001-01-01 2001-01-02 2001-01-03 2001-01-04 2001-01-05
box = <class 'pandas.core.frame.DataFrame'>
def assert_invalid_comparison(left, right, box):
"""
Assert that comparison operations with mismatched types behave correctly.
Parameters
----------
left : np.ndarray, ExtensionArray, Index, or Series
right : object
box : {pd.DataFrame, pd.Series, pd.Index, tm.to_array}
"""
# Not for tznaive-tzaware comparison
# Note: not quite the same as how we do this for tm.box_expected
xbox = box if box is not Index else np.array
result = left == right
expected = xbox(np.zeros(result.shape, dtype=np.bool_))
tm.assert_equal(result, expected)
result = right == left
tm.assert_equal(result, expected)
result = left != right
tm.assert_equal(result, ~expected)
result = right != left
tm.assert_equal(result, ~expected)
msg = "|".join(
[
"Invalid comparison between",
"Cannot compare type",
"not supported between",
"invalid type promotion",
(
# GH#36706 npdev 1.20.0 2020-09-28
r"The DTypes <class 'numpy.dtype\[datetime64\]'> and "
r"<class 'numpy.dtype\[int64\]'> do not have a common DType. "
"For example they cannot be stored in a single array unless the "
"dtype is `object`."
),
]
)
with pytest.raises(TypeError, match=msg):
> left < right
pandas/tests/arithmetic/common.py:89:
Looks like upstream has got there, but a quick search didn't find the
relevant patches, yet:
https://github.com/pandas-dev/pandas/commit/e7efd02c71c48c7968b2f8fdb845a0b0bf61a3fa
SR
[toc] | [next] | [standalone]
| From | "Rebecca N. Palmer" <rebecca_palmer@zoho.com> |
|---|---|
| Date | 2021-11-22 23:30 +0100 |
| Message-ID | <DmpYZ-4GU-1@gated-at.bofh.it> |
| In reply to | #1082741 |
I'm planning to go to pandas 1.3, which does work under 3.10: see #999415 and the package in experimental.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web