Page MenuHomePhabricator

Pywikibot hangs sometimes
Open, MediumPublicBUG REPORT

Description

List of steps to reproduce:
unfortunately it cannot be reproduced. Maybe there is a deadlock when using log files.

What happens?:
Script (redirect.py) freeze, CPU uses 0%, Ctrl-C does not work

What should have happened instead?:
Run the script as expected

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

$ C:\pwb\core>pwb version
Pywikibot: pywikibot/__init__.py (, -1 (unknown), 2021/07/03, 18:49:23, UNKNOWN)

Release version: 6.5.0.dev0
setuptools version: 57.0.0
mwparserfromhell version: n/a
wikitextparser version: 0.47.4
requests version: 2.22.0
  cacerts: C:\Python37-32\lib\site-packages\certifi\cacert.pem
    certificate test: ok
Python: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Int
el)]
PYWIKIBOT_DIR: Not set
PYWIKIBOT_DIR_PWB: C:\pwb\core
PYWIKIBOT_NO_USER_CONFIG: Not set
Config base dir: C:\pwb\core

Event Timeline

Xqt triaged this task as Medium priority.Jul 3 2021, 5:22 PM

I have encountered a hanging script when my local network had a connectivity problem.

Ctrl-C did work, however; the script ran after restoring the network connection.

I have encountered a hanging script when my local network had a connectivity problem.

I would not expect that due to the timeout setting in the config file.