| DrTrigon added a comment. |
@AbdealiJK: Thanks for the info - given I would like to update the bot script, what is the workflow on github? clone, modify, commit and then push or how do you work? never worked on github till now... ;)
First successfull beta-test from my side:
- I had to use $ sudo pip install file-metadata --upgrade in order to get the most recent version of pillow (is this the expected behaviour? or was my try to early, before requirements.txt was updated?)
- Run then gave me a nice error message:
$ python file_metadata_bot.py -cat:SVG_files -limit:5 Retrieving 5 pages from commons:commons. Traceback (most recent call last): File "file_metadata_bot.py", line 103, in <module> main(*sys.argv) File "file_metadata_bot.py", line 97, in main log = handle_page(page) File "file_metadata_bot.py", line 66, in handle_page _file = GenericFile.create(file_path) File "/usr/local/lib/python2.7/dist-packages/file_metadata/generic_file.py", line 76, in create return ImageFile.create(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/file_metadata/image/image_file.py", line 56, in create from file_metadata.image.svg_file import SVGFile File "/usr/local/lib/python2.7/dist-packages/file_metadata/image/svg_file.py", line 9, in <module> import wand.image File "/usr/local/lib/python2.7/dist-packages/wand/image.py", line 20, in <module> from .api import MagickPixelPacket, libc, libmagick, library File "/usr/local/lib/python2.7/dist-packages/wand/api.py", line 206, in <module> 'Try to install:\n ' + msg) ImportError: MagickWand shared library not found. You probably had not installed ImageMagick library. Try to install: apt-get install libmagickwand-dev <type 'exceptions.ImportError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
- $ sudo apt-get install libmagickwand-dev
- Run then gave me:
$ python file_metadata_bot.py -cat:SVG_files -limit:5 Retrieving 5 pages from commons:commons. ==== [[:File:"Single"Japanese castle Tenshu layout format.svg]] ==== * '''Mimetype:''' image/svg+xml Time taken to analyze: 1.33984sec ==== [[:File:9th Odia Wikipedia Anniversary.svg]] ==== * '''Mimetype:''' image/svg+xml Time taken to analyze: 0.968834sec ==== [[:File:A Dine Fork.svg]] ==== * '''Mimetype:''' image/svg+xml Time taken to analyze: 0.926564sec ==== [[:File:A conceptual drawing of a barge with very simple geometry.svg]] ==== * '''Mimetype:''' image/svg+xml Time taken to analyze: 1.023462sec Traceback (most recent call last): File "file_metadata_bot.py", line 103, in <module> main(*sys.argv) File "file_metadata_bot.py", line 97, in main log = handle_page(page) File "file_metadata_bot.py", line 68, in handle_page txt.append('==== {0} ===='.format(page.title(asLink=True, textlink=True))) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe7' in position 13: ordinal not in range(128) VERBOSE:pywiki:Dropped throttle(s). <type 'exceptions.UnicodeEncodeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort CRITICAL:pywiki:Waiting for 1 network thread(s) to finish. Press ctrl-c to abort VERBOSE:pywiki:All threads finished.Opened 2 issues:
TASK DETAIL
EMAIL PREFERENCES
To: DrTrigon
Cc: zhuyifei1999, jayvdb, AbdealiJK, Aklapper, pywikibot-bugs-list, DrTrigon, Zppix, Lethexie, Jay8g
Cc: zhuyifei1999, jayvdb, AbdealiJK, Aklapper, pywikibot-bugs-list, DrTrigon, Zppix, Lethexie, Jay8g
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
