{"action":"created","issue":{"url":"https://api.github.com/repos/AbdealiJK/file-metadata/issues/47","repository_url":"https://api.github.com/repos/AbdealiJK/file-metadata","labels_url":"https://api.github.com/repos/AbdealiJK/file-metadata/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/AbdealiJK/file-metadata/issues/47/comments","events_url":"https://api.github.com/repos/AbdealiJK/file-metadata/issues/47/events","html_url":"https://github.com/AbdealiJK/file-metadata/issues/47","id":162022167,"number":47,"title":"UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe7' in position 13: ordinal not in range(128)","user":{"login":"drtrigon","id":18975831,"avatar_url":"https://avatars.githubusercontent.com/u/18975831?v=3","gravatar_id":"","url":"https://api.github.com/users/drtrigon","html_url":"https://github.com/drtrigon","followers_url":"https://api.github.com/users/drtrigon/followers","following_url":"https://api.github.com/users/drtrigon/following{/other_user}","gists_url":"https://api.github.com/users/drtrigon/gists{/gist_id}","starred_url":"https://api.github.com/users/drtrigon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drtrigon/subscriptions","organizations_url":"https://api.github.com/users/drtrigon/orgs","repos_url":"https://api.github.com/users/drtrigon/repos","events_url":"https://api.github.com/users/drtrigon/events{/privacy}","received_events_url":"https://api.github.com/users/drtrigon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-23T21:01:00Z","updated_at":"2016-06-25T22:07:27Z","closed_at":"2016-06-25T22:07:27Z","body":"While beta-testing I got this message:\r\n```\r\n$ python file_metadata_bot.py -cat:SVG_files -limit:5\r\nRetrieving 5 pages from commons:commons.\r\n==== [[:File:\"Single\"Japanese castle Tenshu layout format.svg]] ====\r\n* '''Mimetype:''' image/svg+xml\r\nTime taken to analyze: 1.33984sec\r\n\r\n==== [[:File:9th Odia Wikipedia Anniversary.svg]] ====\r\n* '''Mimetype:''' image/svg+xml\r\nTime taken to analyze: 0.968834sec\r\n\r\n==== [[:File:A Dine Fork.svg]] ====\r\n* '''Mimetype:''' image/svg+xml\r\nTime taken to analyze: 0.926564sec\r\n\r\n==== [[:File:A conceptual drawing of a barge with very simple geometry.svg]] ====\r\n* '''Mimetype:''' image/svg+xml\r\nTime taken to analyze: 1.023462sec\r\n\r\nTraceback (most recent call last):\r\n  File \"file_metadata_bot.py\", line 103, in <module>\r\n    main(*sys.argv)\r\n  File \"file_metadata_bot.py\", line 97, in main\r\n    log = handle_page(page)\r\n  File \"file_metadata_bot.py\", line 68, in handle_page\r\n    txt.append('==== {0} ===='.format(page.title(asLink=True, textlink=True)))\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\xe7' in position 13: ordinal not in range(128)\r\nVERBOSE:pywiki:Dropped throttle(s).\r\n<type 'exceptions.UnicodeEncodeError'>\r\nCRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort\r\nCRITICAL:pywiki:Waiting for 1 network thread(s) to finish. Press ctrl-c to abort\r\nVERBOSE:pywiki:All threads finished.\r\n```"},"comment":{"url":"https://api.github.com/repos/AbdealiJK/file-metadata/issues/comments/228572782","html_url":"https://github.com/AbdealiJK/file-metadata/issues/47#issuecomment-228572782","issue_url":"https://api.github.com/repos/AbdealiJK/file-metadata/issues/47","id":228572782,"user":{"login":"drtrigon","id":18975831,"avatar_url":"https://avatars.githubusercontent.com/u/18975831?v=3","gravatar_id":"","url":"https://api.github.com/users/drtrigon","html_url":"https://github.com/drtrigon","followers_url":"https://api.github.com/users/drtrigon/followers","following_url":"https://api.github.com/users/drtrigon/following{/other_user}","gists_url":"https://api.github.com/users/drtrigon/gists{/gist_id}","starred_url":"https://api.github.com/users/drtrigon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drtrigon/subscriptions","organizations_url":"https://api.github.com/users/drtrigon/orgs","repos_url":"https://api.github.com/users/drtrigon/repos","events_url":"https://api.github.com/users/drtrigon/events{/privacy}","received_events_url":"https://api.github.com/users/drtrigon/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T22:07:27Z","updated_at":"2016-06-25T22:07:27Z","body":"Sorry for the huge delay, had to setup https://commons.wikimedia.org/wiki/User:DrTrigon/file-metadata together with its gits and do testing. According to the issue you mentioned regarding `analyze_barcode()` I used the patch https://gist.github.com/drtrigon/0002517ea812cc707e6ea2ecaf23d9b3 - no idea whether this is valid, though. Anyway the result is positive, this issue is resolved."}}
{"actor":{"display_login":"drtrigon"}}