Page MenuHomePhabricator

reflinks.py: 'Response' object has no attribute 'data'
Closed, ResolvedPublicBUG REPORT

Description

=== Pywikibot framework v6.0.0.dev0 -- Logging header ===
COMMAND: ['./scripts/reflinks.py', '-always', '-start:Салехардская_епархия', '-v', '-debug']
DATE: 2021-03-07 12:03:47.384019 UTC
VERSION: [https] r-pywikibot-core (982f5b9, g14367, 2021/03/07, 12:34:05, n/a)
SYSTEM: posix.uname_result(sysname='Linux', nodename='tools-sgebastion-08', release='4.19.0-0.bpo.14-amd64', version='#1 SMP Debian 4.19.171-2~deb9u1 (2021-02-08)', machine='x86_64')
Python 3.5.3 (default, Nov 18 2020, 21:09:16) 
[GCC 6.3.0 20170516]
Found 1 wikipedia:ru processes running, including this one.
Retrieving 50 pages from wikipedia:ru.
No changes were needed on [[Салехардская епархия]]
Dropped throttle(s).

1 pages read
0 pages written
0 pages skipped
Execution time: 1 seconds
Read operation time: 1.0 seconds
Script terminated by exception:

ERROR: AttributeError: 'Response' object has no attribute 'data'
Traceback (most recent call last):
  File "pwb.py", line 363, in <module>
    if not main():
  File "pwb.py", line 358, in main
    file_package)
  File "pwb.py", line 75, in run_python_file
    main_mod.__dict__)
  File "./scripts/reflinks.py", line 775, in <module>
    main()
  File "./scripts/reflinks.py", line 771, in main
    bot.run()
  File "/mnt/nfs/labstore-secondary-tools-project/rubin16/pywikibot-core/pywikibot/bot.py", line 1484, in run
    self.treat(page)
  File "./scripts/reflinks.py", line 644, in treat
    f.data.encoding = encoding
AttributeError: 'Response' object has no attribute 'data'
Dropped throttle(s).
Closing network session.
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
Network session closed.