Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-11-2013, 07:19 AM   #1
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
request to update SQLite.dll

As the subject. I've been dealing with an issue in trying my hand on plugins because of the lack for the CHAR statement in the included SQLite3.dll

Could this one please be updated to the current stable version? (has support for CHAR)

Last edited by At_Libitum; 10-11-2013 at 07:21 AM.
At_Libitum is offline   Reply With Quote
Old 10-11-2013, 07:24 AM   #2
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,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As fas as I recall the windows build does not contain any separate sqlite3.dll. There is one implementation of sqlite3 that comes from the python stdlib and the other from apsw. I assume you are using the one from the python stdlib, tryusing apsw instead. IIRC it was 3.7.17 or something like that.
kovidgoyal is online now   Reply With Quote
Advert
Old 10-11-2013, 08:36 PM   #3
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Quote:
Originally Posted by kovidgoyal View Post
As fas as I recall the windows build does not contain any separate sqlite3.dll. There is one implementation of sqlite3 that comes from the python stdlib and the other from apsw. I assume you are using the one from the python stdlib, tryusing apsw instead. IIRC it was 3.7.17 or something like that.
There is a sqlite3.dll in the calibre dll folder. I have no idea which version as the file properties do not specify this information.

The one I have replaced it with I got directly from here: http://sqlite.org/download.html where there is no mention of either of the two other sources you mention.

All I know is that the one included with Calibre does not know the CHAR function where as the one I downloaded from above link does.
At_Libitum is offline   Reply With Quote
Old 10-11-2013, 11:18 PM   #4
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,322
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That will likely come from the python standard distribution. I'm not going to replace it as generally speaking, willy nilly replacing bits of a standard distribution is not something to be done lightly.

As I said, try using apsw

import apsw
apsw.connect('path_to_database')
kovidgoyal is online now   Reply With Quote
Old 10-13-2013, 07:26 AM   #5
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
thanks for the suggestion but I guess that means I'll drop this attempt before getting sucked in too deep. Up until the last line of your last post I had no idea what apsw is... ok so this is something part of Calibre...and I know far too little about Python and the insides of Calibre to venture there.
At_Libitum is offline   Reply With Quote
Advert
Old 10-13-2013, 01:07 PM   #6
toddos
Guru
toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.toddos ought to be getting tired of karma fortunes by now.
 
toddos's Avatar
 
Posts: 695
Karma: 822675
Join Date: May 2010
Device: Kobo Aura, Nokia Lumia 920 (Freda)
Google is your friend.

So is Bing.

apsw is "Another Pythong SQLite Wrapper", not something calibre-specific beyond the fact that it seems calibre uses it and thus the package is available to plugins to use without having to add their own package.
toddos is offline   Reply With Quote
Old 10-13-2013, 04:14 PM   #7
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Well, if all I would need to do is to change sqlite3 into apsw wherever I encounter it. That I can try of course. don't need to know any Python for that.

Alas, when it came to apsw.connect(path to my db) it barfed

AttributeError: 'module' object has no attribute 'connect'

Like I said, this is no big deal, the basics like getting books into and out of this ole reader app works and that was already more than I ...hoped for. Until I know more about python I can settle for that.

EDIT: Ok so it is called Connection with capital c... but I fear I have to leave it be anyways and settle for copying in the newer dll as it seems that via apsw other things also aren't supported. This code seems to use row_factory all over and that ain't working with apsw either without rewriting... way over my current skill set.

Thanks all for the pointers just the same

Last edited by At_Libitum; 10-13-2013 at 05:18 PM.
At_Libitum is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Update request for Sueddeutsche Zeitung News Recipe Divingduck Recipes 14 12-05-2012 02:46 PM
Twitch recipe update request scifiguy51 Recipes 3 10-17-2012 03:34 PM
Request: Please update Psychology Today recipe underwarez Recipes 0 07-04-2012 01:50 PM
Feature request: Update Patches kiwimonk Calibre 1 01-05-2011 01:09 PM
Request: Inquirer.net Recipe update zoilom Recipes 0 12-21-2010 01:06 AM


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


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