-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Debug CI Issue #34721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug CI Issue #34721
Conversation
lint error |
@WillAyd I have some time over the next couple hours to debug this. I'll plan to push to your branch if that's OK. |
Ends up being pretty simple. With older numpys In [24]: pd.DataFrame({"A": pd.array([], dtype="Int64"), "B": pd.array([], dtype="int64")}).dtypes == 'Int64'
Out[24]:
A True
B True
dtype: bool
In [25]: np.dtype("int64") == "Int64"
/Users/taugspurger/.virtualenvs/dask-dev/bin/ipython:1: DeprecationWarning: Numeric-style type codes are deprecated and will result in an error in the future.
#!/Users/taugspurger/Envs/dask-dev/bin/python
Out[25]: True With NumPy master In [1]: import pandas as pd
i
In [2]: import numpy as np
In [3]: pd.DataFrame({"A": pd.array([], dtype="Int64"), "B": pd.array([], dtype="int64")}).dtypes == 'Int64'
Out[3]:
A True
B False
dtype: bool
In [4]: np.dtype("int64") == "Int64"
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-49749ad32aa3> in <module>
----> 1 np.dtype("int64") == "Int64"
TypeError: data type 'Int64' not understood Will push a fix up in a bit. |
@@ -11,6 +11,8 @@ | |||
_np_version_under1p16 = _nlv < LooseVersion("1.16") | |||
_np_version_under1p17 = _nlv < LooseVersion("1.17") | |||
_np_version_under1p18 = _nlv < LooseVersion("1.18") | |||
_np_version_under1p19 = _nlv < LooseVersion("1.19") | |||
_np_version_under1p20 = _nlv < LooseVersion("1.20") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is targeted for NumPy 1.20, but verifying in numpy/numpy#16554 (comment).
expected = pd.Series([True, True, False, True], index=list("ABCD")) | ||
else: | ||
expected = pd.Series([True, True, False, False], index=list("ABCD")) | ||
|
||
# FIXME: This should probably be *fixed* not ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that there's anything we can actually do here. Open to suggestions, but the fact is that NumPy controls the behavior of np.dtype.__eq__
. So I'm comfortable just leaving this for NumPy<1.20.
cc @jreback if you have a chance to look. Planning to merge on green to get CI running again though. |
lgtm merge when ready |
did we merge something to fix CI? |
Sorry, thought this was in. Taking another look. |
Ah, I think this issue is that the numpydev build is NumPy 1.20.dev0.stuff, but it's not new enough to have the changes in the travis-CI job (built from numpy source). |
Right now https://anaconda.org/scipy-wheels-nightly/numpy/files doesn't have a wheel with the new behavior the travis build (building numpy from source) is seeing. So it's ugly, but we have to make the check dependent on the behavior of |
Maybe just skip the test until the wheel is available?
…Sent from my iPhone
On Jun 12, 2020, at 11:40 AM, Tom Augspurger ***@***.***> wrote:
Right now https://anaconda.org/scipy-wheels-nightly/numpy/files doesn't have a wheel with the new behavior the travis build (building numpy from source) is seeing.
So it's ugly, but we have to make the check dependent on the behavior of np.dtype('int64') == "Int64" until we can get a wheel with the new behavior. Then we can just check the version number.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Slight preference for this, just in case we forget to update or it takes a little while for new wheels to show up. |
No idea why this started failing now
|
Thanks @TomAugspurger - pretty tricky stuff here |
@meeseeksdev backport to 1.0.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
Co-authored-by: William Ayd <[email protected]>
No description provided.