pysqlite2 Installation

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
FutureCow
Newbie
Newbie
Posts: 14
Joined: February 15th, 2008, 7:32 pm

pysqlite2 Installation

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: pysqlite2 Installation

Post 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?
FutureCow
Newbie
Newbie
Posts: 14
Joined: February 15th, 2008, 7:32 pm

Re: pysqlite2 Installation

Post 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
bav
Newbie
Newbie
Posts: 10
Joined: March 11th, 2008, 2:55 pm

Re: pysqlite2 Installation

Post 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
Last edited by bav on December 1st, 2009, 1:29 pm, edited 1 time in total.
FutureCow
Newbie
Newbie
Posts: 14
Joined: February 15th, 2008, 7:32 pm

Re: pysqlite2 Installation

Post by FutureCow »

i cannot use apt-get :(...
bav
Newbie
Newbie
Posts: 10
Joined: March 11th, 2008, 2:55 pm

Re: pysqlite2 Installation

Post by bav »

if you already got the sqlite3 build headers, start with step 2
Post Reply