Make sure you are running the latest version of calibre downloaded from
http://calibre-ebook.com/download_linux
DO NOT depend on your distro-provided calibre, it is most likely out of date (and sometimes by years).
Report back if you still get the error.