![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2011
Device: pocketbook pro 603
|
Problems running on chakra linux.
Chakra is unable to run calibre since version 0.7.47.
We currently have version 0.7.46 working fine. However all versions 0.7.47 and up are giving these same errors: Code:
[acemo@twain ~]$ calibre-debug -g Starting up... Failed to load high performance sqlite C extension 'Connection' object has no attribute 'enable_load_extension' ASSERT: "last >= first" in file kernel/qabstractitemmodel.cpp, line 2392 Aborted Thanks, acemo |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I suggest you use the binary calibre install instead of compiling from source. That error is about being unable to load a sqlite C extension which tells me that most likely your sqlite library is too old.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2011
Device: pocketbook pro 603
|
The problem with the binary installer is we get duplicated libraries and people can't rebuild their package with their prefered compiler settings. (installing from the binary installer does work though)
We have updated a lot of packages trying to get calibre working but with no effect. What version of libsqlite3 are you using? we are using version 3.7.5 atm. Thanks Last edited by acemo; 05-03-2011 at 01:55 PM. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I agree, binary installs have drawbacks, but often it is the only way to distribute something as complex as calibre. sqlite >= 3.7 should be fine. Make sure the python sqlite.so module is also using sqlite >= 3.7
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2011
Device: pocketbook pro 603
|
Python has been rebuild for the latest sqlite3.
Did something get changed with calibre 0.7.46 -> 0.7.47 with sqlite? Since we do have 0.7.46 working from source but any newer version fails. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Looking at your error message, you need to update python to 2.7. Newer versions of calibre require python >= 2.7
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2011
Device: none
|
Thank you for the quick response so far. I'd like to add some info to this thread, since I'm the packager for Chakra for this application.
Calibre was compiled for about 25 different versions leading up to .46, that one still works. Every version since has been compiled, starts, but as soon as any data is included into the the Calibre Library, the crash occurs with the output from the first post. To try and find were the problem is, all the dependencies have been updated, or if no update available, rebuild. The python version is 2.7.1-5. All dependencies listed here: http://calibre-ebook.com/download_linux are newer in Chakra, only exception chmlib, that one is still at 0.40 also. |
![]() |
![]() |
![]() |
#8 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
My understanding of Chakra is it is very close to Arch Linux? Didn't it start life as Arch's KDEMod project then spin off into its own Arch based distro?
Is the Arch package having this same issue? Also, you might be interested in these bugs I opened against the Arch package. |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This error:
'Connection' object has no attribute 'enable_load_extension' means that the sqlite module in python has no method named enable_load_extension. That method was introduced in python 2.7. As you can see here: http://docs.python.org/library/sqlit...ection-objects Run this calibre-debug -c "import sys; print sys.version_info" |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2008
Device: PRS-650
|
I have tracked down very similar issue / second part of the issue:
ASSERT: "last >= first" in file kernel/qabstractitemmodel.cpp, line 2392 tracked down the guilty file is calibre/gui2/tag_view.py, in which for 3 times beginInsertRows is used with last parameter lesser than second one, this is now forbidden in latest Qt. (here at line 2393, the assert) Still I haven't enough time to fix, sorry Code:
/usr/lib64/calibre/calibre/gui2/tag_view.py:1266: self.beginInsertRows(category_index, 999999, 1) #len(data[key])-1) /usr/lib64/calibre/calibre/gui2/tag_view.py:1299: self.beginInsertRows(category_index, 999999, 1) /usr/lib64/calibre/calibre/gui2/tag_view.py:1335: self.beginInsertRows(category_index, 999999, 1) Last edited by mattepiu; 05-13-2011 at 05:10 PM. |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I committed a fix for that.
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2008
Device: PRS-650
|
Thank you, it's starting now on gentoo linux.
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,182
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Jun 2008
Device: PRS-650
|
It was depending on just the assert line in the latest 2 version of Qt I pointed above, if you're keeping Qt 4.7.1 you shouldn't find that issue.
(~amd64 gentoo here too) |
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2011
Device: pocketbook pro 603
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OT-ish: Calibre in VirtualBox/Linux running Windows XP Client | Gwen Morse | Devices | 9 | 04-14-2011 10:28 AM |
kindlegen running on Linux | JiYu | Amazon Kindle | 0 | 09-20-2010 06:08 AM |
Anyone here running Linux from a USB drive? | FizzyWater | General Discussions | 55 | 07-09-2010 11:09 PM |
K4 Mac or PC getting Kindle4pc running in linux | Lago | Amazon Kindle | 5 | 05-18-2010 06:27 PM |
Ubuntu linux running on a Kindle 2 | Jellby | News | 10 | 09-04-2009 05:49 PM |