Xqt added a comment.

I can reproduce this failure on my repo:

======================================================================
ERROR: test_do_hocr (__main__.TestPageOCR)
Test page._do_hocr().
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\proofreadpage_tests.py", line 361, in test_do_hocr
    error, text = self.page._do_hocr()
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 649, in _do_hocr
    ocr_tool=self._PHETOOLS)
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 618, in _ocr_callback
    return (error, parser_func(_text))
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 629, in parse_hocr_tex
t
    soup = Soup(txt)
NameError: global name 'Soup' is not defined

======================================================================
ERROR: test_do_ocr_googleocr (__main__.TestPageOCR)
Test page._do_ocr(ocr_tool='googleOCR').
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\proofreadpage_tests.py", line 385, in test_do_ocr_googleocr
    error, text = self.page._do_ocr(ocr_tool='googleOCR')
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 654, in _do_ocr
    url_image = self.url_image
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 544, in url_image
    soup = Soup(response.text)
NameError: global name 'Soup' is not defined

======================================================================
ERROR: test_do_ocr_phetools (__main__.TestPageOCR)
Test page._do_ocr(ocr_tool='phetools').
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\proofreadpage_tests.py", line 378, in test_do_ocr_phetools
    error, text = self.page._do_ocr(ocr_tool='phetools')
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 654, in _do_ocr
    url_image = self.url_image
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 544, in url_image
    soup = Soup(response.text)
NameError: global name 'Soup' is not defined

======================================================================
ERROR: test_ocr_googleocr (__main__.TestPageOCR)
Test page.ocr(ocr_tool='googleOCR').
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\tests\proofreadpage_tests.py", line 392, in test_ocr_googleocr
    text = self.page.ocr(ocr_tool='googleOCR')
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 709, in ocr
    error, text = self._do_ocr(ocr_tool=ocr_tool)
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 654, in _do_ocr
    url_image = self.url_image
  File "C:\pwb\GIT\core\pywikibot\proofreadpage.py", line 544, in url_image
    soup = Soup(response.text)
NameError: global name 'Soup' is not defined

----------------------------------------------------------------------
Ran 55 tests in 13.698s

FAILED (errors=4, skipped=28)

TASK DETAIL
https://phabricator.wikimedia.org/T210335

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, Mpaa, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to