Some special character seem to crash omeka-to-pkg
Attached the failing JSON file.
Running command :
omeka-to-pkg --package-id "photographie" --name "Photographie" --description "Vous souhaitez vous lancer, faire quelques photographies, mais vous avez besoin d'aide ? C'est ici !" --language "fr" --url "http://packages.ideascube.org/omeka/photographie.zip" "/mnt/synology/2-Contenus/20_photographie.json" "/var/www/omeka.bsf-intranet.org/plugins/BsfCompanion/_export/output/photographie.zip" > "/mnt/synology/2-Contenus/20_photographie.txt"
Error message :
Traceback (most recent call last): File "/usr/local/bin/omeka-to-pkg", line 9, in <module> load_entry_point('omekatopkg==0.0', 'console_scripts', 'omeka-to-pkg')() File "/usr/local/src/omeka-to-pkg/lib/python3.4/site-packages/omekatopkg/__init__.py", line 133, in main handle(args) File "/usr/local/src/omeka-to-pkg/lib/python3.4/site-packages/omekatopkg/__init__.py", line 105, in handle package = getattr(MediaCenterPackage, 'from_%s' % format_)(metadata_path) File "/usr/local/src/omeka-to-pkg/lib/python3.4/site-packages/omekatopkg/package.py", line 59, in from_json return cls(working_dir, medias) File "/usr/local/src/omeka-to-pkg/lib/python3.4/site-packages/omekatopkg/package.py", line 16, in __init__ if self.check_media(index, media): File "/usr/local/src/omeka-to-pkg/lib/python3.4/site-packages/omekatopkg/package.py", line 26, in check_media if not op.exists(full_path): File "/usr/local/src/omeka-to-pkg/lib/python3.4/genericpath.py", line 19, in exists os.stat(path) UnicodeEncodeError: 'ascii' codec can't encode character '\xea' in position 41: ordinal not in range(128)