Closed tokotchd closed 4 years ago
Confirmed that forcing
news-please==1.4.24
and
cffi==1.13.2
makes the library work as intended.
Thanks for the issue report. Do you mean that cffi could not be installed correctly and thus newsplease fails when running NewsPlease.from_url('any_url_here', timeout=30)
.
Mandatory
Describe the bug cffi updates have broken the library? No error code printed, NewsPlease silently fails.
NewsPlease.from_url('any_url_here', timeout=30)
Will always return None.To Reproduce From a brand new Ubuntu 18.04.04 LTS install, if you install pip3, python3, and run pip3 install news-please, it installs with no issues. However, above statement will always return None without an Exception thrown.
Further investigation shows that reinstalling news-please will cause a segmentation fault within pip3.
Error occurs upon installation of cffi, this is likely the broken dependency that causes this to fail.
Expected behavior If cffi fails, would expect an exception being thrown rather than returning None for article contents.
Log
Versions (please complete the following information):
Intent (optional; we'll use this info to prioritize upcoming tasks to work on)