Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-23-2019, 12:12 PM   #1
daviddanger86
Junior Member
daviddanger86 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2019
Device: Kindle
Help with Json error (Error code: 1)

When I attempt to run calibre 3.41.3 (64 bit) on my Windows 10 pc I get an error.

"Python function terminated unexpectedly
No JSON object could be decoded (Error Code:1)"

I just updated from a previous version which ran without issues. Other than the update, nothing has changed.

Things I have tried:
-Reboot
-Running as admin
-Uninstall // Restart // Reinstall // Restart

All things lead to this message.

The following is the (calibre-debug -g)debug info:

Python function terminated unexpectedly
No JSON object could be decoded (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 77, in run_entry_point
File "site-packages\calibre\__init__.py", line 30, in <module>
File "site-packages\calibre\startup.py", line 121, in <module>
File "site-packages\calibre\utils\localization.py", line 203, in set_translators
File "site-packages\calibre\utils\localization.py", line 88, in get_lang
File "site-packages\calibre\utils\config_base.py", line 636, in <module>
File "site-packages\calibre\utils\config_base.py", line 632, in read_tweaks
File "site-packages\calibre\utils\config_base.py", line 616, in read_custom_tweaks
File "site-packages\calibre\utils\config_base.py", line 98, in json_loads
File "json\__init__.py", line 352, in loads
File "json\decoder.py", line 364, in decode
File "json\decoder.py", line 382, in raw_decode
ValueError: No JSON object could be decoded

Thanks for reading, and should you need any additional information I'll gladly provide it.

-David
daviddanger86 is offline   Reply With Quote
Old 04-23-2019, 05:35 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,866
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
My WAG
Something is preventing the Calibre config directory from being accessed.
there are JSON files that control your settings config
theducks is offline   Reply With Quote
Old 04-23-2019, 05:42 PM   #3
daviddanger86
Junior Member
daviddanger86 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2019
Device: Kindle
Thanks for the reply!

So, does that mean I can delete - or default - these config files somehow?

Could that theoretically be a solution?
daviddanger86 is offline   Reply With Quote
Old 04-23-2019, 06:06 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,589
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Before you delete the entire directory, back it up first.

And then try deleting the tweaks.json file. If that works you would have only lost any settings you changed in Preferences->Tweaks settings.

If you don't know where your configuration folder is, search for a file named 'global.py'.

BR
BetterRed is offline   Reply With Quote
Old 04-23-2019, 09:48 PM   #5
jlb2018
Junior Member
jlb2018 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2018
Device: Amazon Kindle HD 8
I am having the same problem, but with the 32-bit version. How do I fix this? I am kind of computer challenged, so please give me a simple fix. I did not understand what was written above, about deleting files, etc. Thanks!
jlb2018 is offline   Reply With Quote
Old 04-24-2019, 11:54 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,128
Karma: 27110892
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Search your computer for the following two files:

1) tweaks.json
2) tweaks.py

delete them when they are found. Now start calibre, hopefully you will be fine.
kovidgoyal is offline   Reply With Quote
Old 04-25-2019, 06:00 PM   #7
jlb2018
Junior Member
jlb2018 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2018
Device: Amazon Kindle HD 8
Thank You, so much! This fixed it!
jlb2018 is offline   Reply With Quote
Reply

Tags
error, help calibre, troubleshooting, update 3.41.3

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GoComics - Conversion Error / No articles found, aborting (Error Code: 1) Purple Lady Recipes 18 04-08-2018 04:05 PM
Set Library Information / JSON serializable error PeterT Calibre Companion 13 12-30-2014 08:55 AM
Running recipe error: Python function terminated unexpectedly (Error Code: 1) jpassarella Recipes 0 10-05-2012 12:54 PM


All times are GMT -4. The time now is 12:11 AM.


MobileRead.com is a privately owned, operated and funded community.