Import Fails: json.decoder.JSONDecodeError
See original GitHub issueHi,
Recieving the following message when trying to import on Windows 10:
Traceback (most recent call last): File "C:\Users\Jamie Adams\bin\elodie\elodie.py", line 345, in <module> main() File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 716, in __call__ return self.main(*args, **kwargs) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 696, in main rv = self.invoke(ctx) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\site-packages\click\core.py", line 534, in invoke return callback(*args, **kwargs) File "C:\Users\Jamie Adams\bin\elodie\elodie.py", line 115, in _import trash, allow_duplicates) File "C:\Users\Jamie Adams\bin\elodie\elodie.py", line 64, in import_file media, allowDuplicate=allow_duplicates, move=False) File "C:\Users\Jamie Adams\bin\elodie\elodie\filesystem.py", line 336, in process_file media.set_original_name() File "C:\Users\Jamie Adams\bin\elodie\elodie\media\media.py", line 246, in set_original_name if self.get_original_name() is not None: File "C:\Users\Jamie Adams\bin\elodie\elodie\media\media.py", line 143, in get_original_name exiftool_attributes = self.get_exiftool_attributes() File "C:\Users\Jamie Adams\bin\elodie\elodie\media\media.py", line 129, in get_exiftool_attributes metadata = et.get_metadata(source) File "C:\Users\Jamie Adams\bin\elodie\elodie\external\pyexiftool.py", line 330, in get_metadata return self.execute_json(filename)[0] File "C:\Users\Jamie Adams\bin\elodie\elodie\external\pyexiftool.py", line 314, in execute_json return json.loads(self.execute(b"-j", *params).decode("latin-1")) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Jamie Adams\AppData\Local\Programs\Python\Python36\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Anything I can provide to help debug? I’m not using any special configuration in config.ini.
Issue Analytics
- State:
- Created 6 years ago
- Comments:29 (13 by maintainers)
Top GitHub Comments
83 complete, 0 errors
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Jaisen Mathaimailto:notifications@github.com Sent: Friday, October 13, 2017 6:06 PM To: jmathai/elodiemailto:elodie@noreply.github.com Cc: Glenn Dixonmailto:dixonge@posteo.net; Mentionmailto:mention@noreply.github.com Subject: Re: [jmathai/elodie] Import Fails: json.decoder.JSONDecodeError (#251)
Yes, I would include the --debug. Also, the print(_file) should output the file that is being imported before failing.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/jmathai/elodie/issues/251#issuecomment-336587339, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABgWCnOokpA1VdQOqOzkeaigQeK9WHIPks5sr-zcgaJpZM4Phx7w.
I couldn’t sorry.