New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

SABnzbd - Can't start, zlib missing? :(

Got problems with your B2 or B3? Share and get helped!
Post Reply
bubbaklubba
Posts: 4
Joined: 30 Dec 2009, 16:25

SABnzbd - Can't start, zlib missing? :(

Post by bubbaklubba »

I'm trying to install SABnzbd 0.4.12 on Bubba, and I've read a bit here on the forum on how to do it, but to no success. I'm having this problem when i do this:

Code: Select all

# python -OO SABnzbd.py -v

Traceback (most recent call last):
  File "SABnzbd.py", line 44, in <module>
    import sabnzbd
  File "/home/username/SABnzbd-0.4.12/sabnzbd/__init__.py", line 32, in <module>
    import gzip
  File "/usr/local/lib/python2.5/gzip.py", line 9, in <module>
    import zlib
ImportError: No module named zlib
I'm not sure if I got this error with Python 2.4, but I installed these packagages at first:
apt-get install python-cheetah python-pyopenssl python-feedparser install zlibc

I've upgraded Python to 2.5, even though SABnzbd should work on 2.4 according to their website.
I did ./configure, make, make install. In the end of the make it mentions zlib like this:

Code: Select all

building 'zlib' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I. -I/home/username/Python-2.5/./Include -I./Include -I. -I/usr/local/include -I/home/username/Python-2.5/Include -I/home/username/Python-2.5 -c /home/username/Python-2.5/Modules/zlibmodule.c -o build/temp.linux-ppc-2.5/home/username/Python-2.5/Modules/zlibmodule.o
gcc -pthread -shared build/temp.linux-ppc-2.5/home/username/Python-2.5/Modules/zlibmodule.o -L/usr/local/lib -lz -o build/lib.linux-ppc-2.5/zlib.so
running build_scripts
Did anything go wrong here or how do I check if zlib is installed into python?

Any tips would be appreciated on how to get SABnzbd running on Bubba.
whilbone
Posts: 25
Joined: 22 Oct 2008, 03:09

Re: SABnzbd - Can't start, zlib missing? :(

Post by whilbone »

I'm a bit interested in running my bubba as an nzb downloader but I havent gotten to it yet. However I thought I'd give SABnzbd a try and see if I ran into the same issue as you.

Well, I did not... so that's the good thing.

I didnt do much to my configuration either, I installed python-feedparser, python-cheetah and pythong-elementtree and that was it basically. At least to get it started, I havent had time to set it up and configure it yet but it started fine.

I'd be happy yo check any settings you'd like in order for you to get yours going too, but I cant really write an howto on this cause my bubba has gone through some changes and is far from a factory setup. Maybe when I start experimenting with wi-fi I will reset it and start from scratch again... always just as much fun :-)
whilbone
Posts: 25
Joined: 22 Oct 2008, 03:09

Re: SABnzbd - Can't start, zlib missing? :(

Post by whilbone »

Check if you got zlib1g installed, I noticed I had that one (don't recall why)
bubbaklubba
Posts: 4
Joined: 30 Dec 2009, 16:25

Re: SABnzbd - Can't start, zlib missing? :(

Post by bubbaklubba »

Yeah, I do, it seemed to be installed by default, somehow SABnzbd doesn't seem to want to use that..?

# apt-get install zlib1g
Reading package lists... Done
Building dependency tree... Done
zlib1g is already the newest version.
Post Reply