Closed epassaro closed 2 years ago
Seems conda-forge package of pytest-notebook is not compatible with attrs 21.
conda-forge
pytest-notebook
attrs
Pinning attrs to 20 in the environment solves the issue.
2021-05-24T15:27:15.2722121Z =================================== FAILURES =================================== 2021-05-24T15:27:15.2722677Z _______________ notebook: nbregression(test_legacy_consistency) ________________ 2021-05-24T15:27:15.2724083Z pkg_resources.VersionConflict: (attrs 21.2.0 (/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages), Requirement.parse('attrs<21,>=19')) 2021-05-24T15:27:15.2724898Z ___________________ notebook: nbregression(test_output_base) ___________________ 2021-05-24T15:27:15.2726326Z pkg_resources.VersionConflict: (attrs 21.2.0 (/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages), Requirement.parse('attrs<21,>=19')) 2021-05-24T15:27:15.2727353Z ----------------------------- Captured stderr call ----------------------------- 2021-05-24T15:27:15.2727957Z Error in atexit._run_exitfuncs: 2021-05-24T15:27:15.2728966Z Traceback (most recent call last): 2021-05-24T15:27:15.2729622Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/logging/__init__.py", line 1945, in shutdown 2021-05-24T15:27:15.2730129Z h.flush() 2021-05-24T15:27:15.2730596Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/logging/__init__.py", line 978, in flush 2021-05-24T15:27:15.2731096Z self.stream.flush() 2021-05-24T15:27:15.2731949Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/ipykernel/iostream.py", line 355, in flush 2021-05-24T15:27:15.2733676Z self._flush() 2021-05-24T15:27:15.2737408Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/ipykernel/iostream.py", line 382, in _flush 2021-05-24T15:27:15.2738049Z parent=self.parent_header, ident=self.topic) 2021-05-24T15:27:15.2738860Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/jupyter_client/session.py", line 753, in send 2021-05-24T15:27:15.2739409Z stream.send_multipart(to_send, copy=copy) 2021-05-24T15:27:15.2740940Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/ipykernel/iostream.py", line 212, in send_multipart 2021-05-24T15:27:15.2741644Z self.schedule(lambda : self._really_send(*args, **kwargs)) 2021-05-24T15:27:15.2742521Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/ipykernel/iostream.py", line 205, in schedule 2021-05-24T15:27:15.2743100Z f() 2021-05-24T15:27:15.2743876Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/ipykernel/iostream.py", line 212, in <lambda> 2021-05-24T15:27:15.2744543Z self.schedule(lambda : self._really_send(*args, **kwargs)) 2021-05-24T15:27:15.2745492Z File "/usr/share/miniconda/envs/carsus/lib/python3.6/site-packages/ipykernel/iostream.py", line 220, in _really_send 2021-05-24T15:27:15.2746125Z self.socket.send_multipart(msg, *args, **kwargs) 2021-05-24T15:27:15.2746884Z AttributeError: 'NoneType' object has no attribute 'send_multipart' 2021-05-24T15:27:15.2747740Z ----------- generated xml file: /home/vsts/work/1/s/test-output.xml ------------ 2021-05-24T15:27:15.2748388Z ========================== 2 failed in 93.61 seconds ===========================
Seems
conda-forge
package ofpytest-notebook
is not compatible withattrs
21.Pinning
attrs
to 20 in the environment solves the issue.