Markpages Bot funktioniert nicht mehr #72

닫힘
golderweb5 년 전을 오픈 · 0개의 코멘트
golderweb 코멘트됨, 5 년 전
소유자

Seit 04.03. funktioniert der MarkPagesBot nicht mehr (ggf. Python3.5 Umstellung)

https://tools.wmflabs.org/jogobot/logs/red/markpages/red_markpages_2019-03.log

ERROR: TypeError: unhashable type: 'Wikicode'
ERROR: 2019-03-04 03:49:14 (UTC)  Error while trying to run subtask "red-markpages "! ***
Working on 'Diskussion:Fliegerhorst Nordholz'
Traceback (most recent call last):
  File "red.py", line 150, in <module>
    main()
  File "red.py", line 146, in main
    jogobot.bot.run_bot( task_slug, subtask, bot )
  File "/mnt/nfs/labstore-secondary-tools-project/jogobot/python3.5_venv/lib/python3.5/site-packages/jogobot/bot.py", line 250, in run_bot
    bot.run()
  File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 88, in run
    super( MarkPagesBot, self ).run()
  File "/shared/pywikipedia/core/pywikibot/bot.py", line 1508, in run
    self.treat(page)
  File "/shared/pywikipedia/core/pywikibot/bot.py", line 1735, in treat
    self.treat_page()
  File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 169, in treat_page
    add_ret = self.add_disc_notice_template()
  File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 221, in add_disc_notice_template
    if self.disc_notice_present():
  File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 296, in disc_notice_present
    matches=self.disc_notice.name ):
  File "/shared/pywikipedia/core/mwparserfromhell/wikicode.py", line 543, in <genexpr>
    return (node for i, node in gen)
  File "/shared/pywikipedia/core/mwparserfromhell/wikicode.py", line 109, in _indexed_ifilter
    if (not forcetype or isinstance(node, forcetype)) and match(node):
  File "/shared/pywikipedia/core/mwparserfromhell/wikicode.py", line 87, in <lambda>
    return lambda obj: re.search(matches, str(obj), flags)
  File "/usr/lib/python3.5/re.py", line 173, in search
    return _compile(pattern, flags).search(string)
  File "/usr/lib/python3.5/re.py", line 281, in _compile
    p, loc = _cache[type(pattern), pattern, flags]
TypeError: unhashable type: 'Wikicode'
CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
Seit 04.03. funktioniert der MarkPagesBot nicht mehr (ggf. Python3.5 Umstellung) https://tools.wmflabs.org/jogobot/logs/red/markpages/red_markpages_2019-03.log ```` ERROR: TypeError: unhashable type: 'Wikicode' ERROR: 2019-03-04 03:49:14 (UTC) Error while trying to run subtask "red-markpages "! *** Working on 'Diskussion:Fliegerhorst Nordholz' Traceback (most recent call last): File "red.py", line 150, in <module> main() File "red.py", line 146, in main jogobot.bot.run_bot( task_slug, subtask, bot ) File "/mnt/nfs/labstore-secondary-tools-project/jogobot/python3.5_venv/lib/python3.5/site-packages/jogobot/bot.py", line 250, in run_bot bot.run() File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 88, in run super( MarkPagesBot, self ).run() File "/shared/pywikipedia/core/pywikibot/bot.py", line 1508, in run self.treat(page) File "/shared/pywikipedia/core/pywikibot/bot.py", line 1735, in treat self.treat_page() File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 169, in treat_page add_ret = self.add_disc_notice_template() File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 221, in add_disc_notice_template if self.disc_notice_present(): File "/mnt/nfs/labstore-secondary-tools-project/jogobot/bot/red/bots/markpages.py", line 296, in disc_notice_present matches=self.disc_notice.name ): File "/shared/pywikipedia/core/mwparserfromhell/wikicode.py", line 543, in <genexpr> return (node for i, node in gen) File "/shared/pywikipedia/core/mwparserfromhell/wikicode.py", line 109, in _indexed_ifilter if (not forcetype or isinstance(node, forcetype)) and match(node): File "/shared/pywikipedia/core/mwparserfromhell/wikicode.py", line 87, in <lambda> return lambda obj: re.search(matches, str(obj), flags) File "/usr/lib/python3.5/re.py", line 173, in search return _compile(pattern, flags).search(string) File "/usr/lib/python3.5/re.py", line 281, in _compile p, loc = _cache[type(pattern), pattern, flags] TypeError: unhashable type: 'Wikicode' CRITICAL: Exiting due to uncaught exception <class 'TypeError'> ````
golderweb closed this issue 5 년 전
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
알림
마감일

마감일이 설정되지 않았습니다.

의존성

이 이슈는 어떠한 의존성도 가지지 않습니다.

불러오는 중...
아직 콘텐츠가 없습니다.