Skip to content

CI: 3.8 numpy_dev build failing recently #39854

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

Closed
jreback opened this issue Feb 16, 2021 · 5 comments · Fixed by #39868
Closed

CI: 3.8 numpy_dev build failing recently #39854

jreback opened this issue Feb 16, 2021 · 5 comments · Fixed by #39868
Labels
CI Continuous Integration
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Feb 16, 2021

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=54353&view=logs&j=eab14f69-13b6-5db7-daeb-7b778629410b&t=ce687173-08c6-5301-838d-71b2dda24510

2021-02-16T22:44:34.3078267Z =================================== FAILURES ===================================
2021-02-16T22:44:34.3078772Z ___________________ TestTableOrientReader.test_comprehensive ___________________
2021-02-16T22:44:34.3079881Z [gw1] linux -- Python 3.8.5 /home/vsts/miniconda3/envs/pandas-dev/bin/python
2021-02-16T22:44:34.3080157Z 
2021-02-16T22:44:34.3080536Z self = <pandas.tests.io.json.test_json_table_schema.TestTableOrientReader object at 0x7f8908515790>
2021-02-16T22:44:34.3080847Z 
2021-02-16T22:44:34.3081136Z     def test_comprehensive(self):
2021-02-16T22:44:34.3081478Z         df = DataFrame(
2021-02-16T22:44:34.3081758Z             {
2021-02-16T22:44:34.3082075Z                 "A": [1, 2, 3, 4],
2021-02-16T22:44:34.3082433Z                 "B": ["a", "b", "c", "c"],
2021-02-16T22:44:34.3083091Z                 "C": pd.date_range("2016-01-01", freq="d", periods=4),
2021-02-16T22:44:34.3083753Z                 # 'D': pd.timedelta_range('1H', periods=4, freq='T'),
2021-02-16T22:44:34.3084228Z                 "E": pd.Series(pd.Categorical(["a", "b", "c", "c"])),
2021-02-16T22:44:34.3084712Z                 "F": pd.Series(pd.Categorical(["a", "b", "c", "c"], ordered=True)),
2021-02-16T22:44:34.3085138Z                 "G": [1.1, 2.2, 3.3, 4.4],
2021-02-16T22:44:34.3085802Z                 "H": pd.date_range("2016-01-01", freq="d", periods=4, tz="US/Central"),
2021-02-16T22:44:34.3086267Z                 "I": [True, False, False, True],
2021-02-16T22:44:34.3086608Z             },
2021-02-16T22:44:34.3086937Z             index=pd.Index(range(4), name="idx"),
2021-02-16T22:44:34.3087246Z         )
2021-02-16T22:44:34.3087499Z     
2021-02-16T22:44:34.3087786Z >       out = df.to_json(orient="table")
2021-02-16T22:44:34.3087971Z 
2021-02-16T22:44:34.3088300Z pandas/tests/io/json/test_json_table_schema.py:772: 
2021-02-16T22:44:34.3088746Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2021-02-16T22:44:34.3089152Z pandas/core/generic.py:2499: in to_json
2021-02-16T22:44:34.3089486Z     return json.to_json(
2021-02-16T22:44:34.3090018Z pandas/io/json/_json.py:115: in to_json
2021-02-16T22:44:34.3090343Z     s = writer(
2021-02-16T22:44:34.3090703Z _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2021-02-16T22:44:34.3090961Z 
2021-02-16T22:44:34.3091280Z self = <pandas.io.json._json.JSONTableWriter object at 0x7f8908515f40>
2021-02-16T22:44:34.3091597Z 
2021-02-16T22:44:34.3091857Z     def write(self):
2021-02-16T22:44:34.3092200Z         iso_dates = self.date_format == "iso"
2021-02-16T22:44:34.3092519Z >       return dumps(
2021-02-16T22:44:34.3092827Z             self.obj_to_write,
2021-02-16T22:44:34.3093139Z             orient=self.orient,
2021-02-16T22:44:34.3093492Z             double_precision=self.double_precision,
2021-02-16T22:44:34.3093853Z             ensure_ascii=self.ensure_ascii,
2021-02-16T22:44:34.3094287Z             date_unit=self.date_unit,
2021-02-16T22:44:34.3094747Z             iso_dates=iso_dates,
2021-02-16T22:44:34.3095093Z             default_handler=self.default_handler,
2021-02-16T22:44:34.3095449Z             indent=self.indent,
2021-02-16T22:44:34.3095724Z         )
2021-02-16T22:44:34.3096244Z E       DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
2021-02-16T22:44:34.3096661Z 
2021-02-16T22:44:34.3096974Z pandas/io/json/_json.py:177: DeprecationWarning

@jreback jreback added the CI Continuous Integration label Feb 16, 2021
@jreback jreback added this to the 1.2.3 milestone Feb 16, 2021
@jreback jreback changed the title CI: 3.8 numpy_dev build CI: 3.8 numpy_dev build failing recently Feb 16, 2021
@WillAyd
Copy link
Member

WillAyd commented Feb 16, 2021

@jbrockmendel I am running pytest -W error pandas/tests/io/json with numpy dev and Python 3.8.5 but unable to get this to fail. I am on macOS if that matters. Do you see anything with my invocation that would be problematic for reproducing the error?

@jbrockmendel
Copy link
Member

also macOS but running 3.9.1 (when i try to switch to 3.8.5 with pyenv i get a build failure, havent looked into that yet)

pytest pandas/tests/io/json/test_json_table_schema.py -k test_comprehensive

======================================================= test session starts =======================================================
platform darwin -- Python 3.9.1, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: pandas, configfile: setup.cfg
plugins: hypothesis-5.41.1, xdist-2.1.0, cov-2.10.1, asyncio-0.14.0, repeat-0.9.1, forked-1.3.0
collected 153 items / 152 deselected / 1 selected                                                                                 

pandas/tests/io/json/test_json_table_schema.py .                                                                            [100%]

======================================================== warnings summary =========================================================
pandas/tests/io/json/test_json_table_schema.py::TestTableOrientReader::test_comprehensive
pandas/tests/io/json/test_json_table_schema.py::TestTableOrientReader::test_comprehensive
pandas/tests/io/json/test_json_table_schema.py::TestTableOrientReader::test_comprehensive
pandas/tests/io/json/test_json_table_schema.py::TestTableOrientReader::test_comprehensive
  pandas/io/json/_json.py:177: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
    return dumps(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================== 1 passed, 152 deselected, 4 warnings in 0.57s ==========================================

@WillAyd
Copy link
Member

WillAyd commented Feb 16, 2021

Hmm strange but even with 3.9.1 and numpy dev I can't reproduce. Here's my environment:

attrs==20.3.0
Cython==0.29.21
hypothesis==6.2.0
iniconfig==1.1.1
more-itertools==8.4.0
numpy==1.21.0.dev0+759.g7a18e4ac4
packaging==20.9
pluggy==0.13.1
py==1.10.0
pyparsing==2.4.7
pytest==6.2.2
python-dateutil @ git+git://github.com/dateutil/dateutil.git@24caabfb63c7dcbf6499b3ee5b6140e6b7da0d8a
pytz==2021.1
six==1.15.0
sortedcontainers==2.3.0
toml==0.10.2
wcwidth==0.2.5

All of the major ones (cython, numpy, dateutil) look to match what is failing in CI...

@WillAyd
Copy link
Member

WillAyd commented Feb 16, 2021

Since you can reproduce any chance you can get a traceback from the warning?

https://stackoverflow.com/a/22376126/621736

@jbrockmendel
Copy link
Member

Used the snippet in the SO link (added at the top of pd._init__), no effect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants