question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import Fails: json.decoder.JSONDecodeError

See original GitHub issue

Hi,

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:open
  • Created 6 years ago
  • Comments:29 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
dixongecommented, Oct 13, 2017

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.

0reactions
vkhoborcommented, Nov 22, 2020

I couldn’t sorry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot import JSONDecodeError - python
The solution: json raises a ValueError instead of JSONDecodeError, but JSONDecodeError (raised by simplejson ) is a subclass of ValueError. So ...
Read more >
Python JSONDecodeError Explanation and Solution | CK
A Python JSONDecodeError indicates there is an issue with the way in ... First, we import the json module which we use to...
Read more >
How can i fix json.decoder.JSONDecodeError ?
Hello, how do I solve this problem? 1. 2. 3. 4. 5. 6. 7.
Read more >
JSON encoder and decoder — Python 3.11.1 documentation
json exposes an API familiar to users of the standard library marshal and pickle modules. Encoding basic Python object hierarchies: >>> >>> import...
Read more >
Json.Decode - json 1.1.3
module User exposing (User, decoder) import Dict import Json. ... This will fail if the string is not well-formed JSON or if the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found