Page MenuHomePhabricator

ErfgoedBot throws UnicodeEncodeError in unused_monument_images
Closed, DuplicatePublic

Description

Traceback (most recent call last):
  File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 400, in <module>
    main()
  File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 394, in main
    makeStatistics(statistics)
  File "/data/project/heritage/heritage/erfgoedbot/unused_monument_images.py", line 309, in makeStatistics
    'Template:{0}'.format(countryconfig.get('rowTemplate')))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

Related Objects

Mentioned In
T2: Get salt logs into logstash
T175907: Add ESlint linting to heritage repo
T179216: Use existing tablesorter
T180850: Correct commons template mapping for Iraq
T176733: Switch ErfgoedBot to use new Wiki replicas
Mentioned Here
rTHER4031f517d3b5: Use new database replicas for accessing Commons table
rTHER3b0661e998b0: [BUGFIX]Fix unsafe operation on str that should use unicode
rTHER8a60fd9f0538: Allow to choose the year in wlm-latest tool
rTHER1b69a750db0f: Localisation updates from https://translatewiki.net.
rTHERccb8fb6dcb5f: [BUGFIX]Correct mapping of Commons template for Iraq
rTHERc54c56b6aef1: Use external tablesorter
rTHER823ce1ba0dda: Localisation updates from https://translatewiki.net.
rTHERc3b7734ee133: Add ESlint
rTHER9a14fef1e94e: Localisation updates from https://translatewiki.net.
rTHER962fe456de4e: Localisation updates from https://translatewiki.net.
rTHERb5f3bc567821: Localisation updates from https://translatewiki.net.
rTHER6662976ac313: Localisation updates from https://translatewiki.net.
rTHER1b5bda8d8013: Localisation updates from https://translatewiki.net.
rTHER121cbbdda549: Localisation updates from https://translatewiki.net.
rTHERcf30736e7d52: Localisation updates from https://translatewiki.net.
rTHER059ff068a77a: Localisation updates from https://translatewiki.net.
rTHER3718a5e654d6: Localisation updates from https://translatewiki.net.
rTHERe61bb0544213: Localisation updates from https://translatewiki.net.
rTHERce2b43aa6f10: Localisation updates from https://translatewiki.net.
rTHERb73d519124fd: Localisation updates from https://translatewiki.net.
rTHERa0e9888ceec4: Localisation updates from https://translatewiki.net.
rTHER6567c2ab0b94: Localisation updates from https://translatewiki.net.
rTHER929a49f3bef4: Localisation updates from https://translatewiki.net.
rTHER12680dd5b857: Set HOME in tox environement
rTHERdec0d984b821: Localisation updates from https://translatewiki.net.
T2: Get salt logs into logstash
T175907: Add ESlint linting to heritage repo
T176733: Switch ErfgoedBot to use new Wiki replicas
T179216: Use existing tablesorter
T180850: Correct commons template mapping for Iraq

Event Timeline

Patch 390969 has fixes for this (but is blocked by an unrelated failing test)

Change 392660 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] [BUGFIX]Fix unsafe operation on str that should use unicode

https://gerrit.wikimedia.org/r/392660

Change 392660 merged by jenkins-bot:
[labs/tools/heritage@master] [BUGFIX]Fix unsafe operation on str that should use unicode

https://gerrit.wikimedia.org/r/392660