goose3 stops working at the 3rd execution
- Dominant language
- Perl
- Stars
- 3.9k
- Forks
- 213
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
I installed goose3 (via `pip3 install goose3`) in a-Shell and created a Python script to process an input URL and print on screen the output of goose3 function `article.cleaned_text`. Accordingly, I run:
`python3 news.py https://url-of-choice`
The script works just fine for the first 2 executions. At the third one, I received the error below and the only way to recover is by manually killing a-Shell and restarting it:
```
Traceback (most recent call last):
File "/private/var/mobile/Library/Mobile Documen
ts/iCloud~AsheKube~app~a-Shell/Documents/ReadThis/
news.py", line 2, in
from goose3 import Goose;
File "/var/mobile/Containers/Data/Application/E9
DE2EBA-7BF5-4D20-8795-AD19AC53E4ED/Library/lib/pyt
hon3.9/site-packages/goose3/__init__.py", line 27,
in
from goose3.configuration import ArticleContex
tPattern, Configuration, PublishDatePattern # noq
a: F401
File "/var/mobile/Containers/Data/Application/E9
DE2EBA-7BF5-4D20-8795-AD19AC53E4ED/Library/lib/pyt
hon3.9/site-packages/goose3/configuration.py", lin
e 27, in
from goose3.parsers import Parser, ParserSoup
File "/var/mobile/Containers/Data/Application/E9
DE2EBA-7BF5-4D20-8795-AD19AC53E4ED/Library/lib/python3.9/site-packages/goose3/parsers.py", line 25, in
import lxml.html
File "/private/var/containers/Bundle/Application/E33369CF-E4C8-4248-969A-79B03C138937/a-Shell.app/Library/lib/python3.9/site-packages/lxml/html/__init__.py", line 87, in
_rel_links_xpath = etree.XPath("descendant-or-self::a[@rel]|descendant-or-self::x:a[@rel]",
TypeError: 'NoneType' object is not callable
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.