Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-02-2011, 05:19 PM   #1
goetzlisa
Junior Member
goetzlisa began at the beginning.
 
goetzlisa's Avatar
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: kindle
Calibre fighting with Ubuntu Maverick

I'm an Linux user, currently running Unbuntu Maverick. Just updated from 7.18 to 7.36, but when I run the wizard I getting the following error:


ERROR: ERROR: Unhandled exception: <b>TypeError</b>:expected string without null bytes

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 773, in accept
page.commit()
File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 459, in commit
dev.commit()
File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 58, in commit
cls.set_output_profile()
File "/usr/lib/calibre/calibre/gui2/wizard/__init__.py", line 47, in set_output_profile
recs = load_defaults('page_setup')
File "/usr/lib/calibre/calibre/ebooks/conversion/config.py", line 40, in load_defaults
r.from_string(raw)
File "/usr/lib/calibre/calibre/ebooks/conversion/config.py", line 80, in from_string
d = eval(raw)
TypeError: expected string without null bytes


also, got this when trying to convert to another format:

ERROR: ERROR: Unhandled exception: <b>TypeError</b>:expected string without null bytes

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/actions/convert.py", line 109, in convert_ebook
self.gui.library_view.model().db, book_ids, out_format=prefs['output_format'])
File "/usr/lib/calibre/calibre/gui2/tools.py", line 40, in convert_single_ebook
d = SingleConfig(parent, db, book_id, None, out_format)
File "/usr/lib/calibre/calibre/gui2/convert/single.py", line 124, in __init__
self.setup_pipeline()
File "/usr/lib/calibre/calibre/gui2/convert/single.py", line 173, in setup_pipeline
ps = widget_factory(PageSetupWidget)
File "/usr/lib/calibre/calibre/gui2/convert/single.py", line 167, in widget_factory
self.plumber.get_option_help, self.db, self.book_id)
File "/usr/lib/calibre/calibre/gui2/convert/page_setup.py", line 57, in __init__
self.initialize_options(get_option, get_help, db, book_id)
File "/usr/lib/calibre/calibre/gui2/convert/__init__.py", line 70, in initialize_options
defaults = load_defaults(self._name)
File "/usr/lib/calibre/calibre/ebooks/conversion/config.py", line 40, in load_defaults
r.from_string(raw)
File "/usr/lib/calibre/calibre/ebooks/conversion/config.py", line 80, in from_string
d = eval(raw)
TypeError: expected string without null bytes


Tried reverting to 7.18, but the same problem happens. In truth, never really used 7.18 since switching to Maverick, so not sure when the problem began. No improvement after updating python.

Last edited by goetzlisa; 01-02-2011 at 05:29 PM. Reason: additional information
goetzlisa is offline   Reply With Quote
Old 01-02-2011, 05:40 PM   #2
desertgrandma
Enjoying the show....
desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.desertgrandma ought to be getting tired of karma fortunes by now.
 
desertgrandma's Avatar
 
Posts: 14,270
Karma: 10462841
Join Date: Jun 2008
Location: Arizona
Device: A K1, Kindle Paperwhite, an Ipod, IPad2, Iphone, an Ipad Mini & macAir
Welcome to MobileRead, goetzlisa

Helpful suggestions should arrive soon.
desertgrandma is offline   Reply With Quote
Advert
Old 01-02-2011, 05:41 PM   #3
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: 43,918
Karma: 22669818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
rm -r .config/calibre/conversion/
kovidgoyal is online now   Reply With Quote
Old 01-02-2011, 06:35 PM   #4
goetzlisa
Junior Member
goetzlisa began at the beginning.
 
goetzlisa's Avatar
 
Posts: 2
Karma: 10
Join Date: Jan 2011
Device: kindle
Thanks for the welcome, and for the really fast reply.

It worked!

So, all I had to do is remove a hidden configuration file? I wonder how long that would have taken for me to figure that out?
goetzlisa is offline   Reply With Quote
Old 01-02-2011, 06:45 PM   #5
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: 43,918
Karma: 22669818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome

your config file had gotten corrupted, and it isn't really hidden, you can access all calibre config files from preferences->miscellaneous

Usually when an application fails to start, the first thing I do is try to start with a clean config.
kovidgoyal is online now   Reply With Quote
Advert
Reply

Tags
calibre, unbuntu


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre on ubuntu server tdw197 Calibre 24 01-19-2011 07:48 AM
Can't see Kobo in Ubuntu using Calibre 0.7.32 BartB Calibre 8 12-12-2010 10:20 AM
Calibre und Ubuntu? squeak.89 Software 3 08-31-2010 07:37 AM
Calibre under Ubuntu 9.04 ebeckhusen Calibre 4 04-10-2009 04:22 PM
Cannot install calibre on ubuntu 8.04 kkkidder Calibre 1 03-19-2009 10:44 PM


All times are GMT -4. The time now is 11:35 PM.


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