Page 1 of 1

pysqlite2 Installation

Posted: December 1st, 2009, 1:08 pm
by FutureCow
I'm getting this error when trying to start 0.5.0:

Sorry, requires Python module sqlite3 (pysqlite2 in python2.4)
Try: apt-get install python-pysqlite2

I tried installing sqlite3 (sqlite3-3.6.20) and pysqlite2 (pysqlite-2.5.5). But I still get the same error.
What do i need to install exactly? And how can I check it's installed correctly

Re: pysqlite2 Installation

Posted: December 1st, 2009, 1:17 pm
by shypike
Which Python version do you use?
Python 2.5 and 2.6 come with sqlite support included (when the port has been done right).
Python 2.4 needs pysqlite2.
Older Python's we do not support (nor Python 3.x).

Which OS are you using?

Re: pysqlite2 Installation

Posted: December 1st, 2009, 1:23 pm
by FutureCow
Python 2.5.1 (r251:54863, Feb 17 2008, 23:29:08)

OS: Custom Linux, so I can only you source, and no packages

Re: pysqlite2 Installation

Posted: December 1st, 2009, 1:24 pm
by bav
hello,

I also had some problems with the upgrade.

Do you use your systemwide/global python install or did you install phyton into another directory?

apt-get install python-pysqlite2 didn't work at my end - I had to manually install it.

Solution: you need the sqlite3-dev-library for building the pysqlite module:
1.) sudo apt-get install libsqlite3-dev
2.) wget http://pysqlite.googlecode.com/files/py ... 5.6.tar.gz
3.) tar -xzvf pysqlite-2.5.6.tar.gz
4.) cd pysqlite-2.5.6.tar.gz
5.) ~/.SABnzbd/bin/python setup.py install

#5 installed the module to my local python install, located under ~/.SABnzbd/bin/ - I don't know which python you use...tell me and I'll try to help you

==> tested/working

Re: pysqlite2 Installation

Posted: December 1st, 2009, 1:31 pm
by FutureCow
i cannot use apt-get :(...

Re: pysqlite2 Installation

Posted: December 1st, 2009, 2:50 pm
by bav
if you already got the sqlite3 build headers, start with step 2