Page 1 of 1

ImportError: No module named filterI's.gzipfilter

Posted: July 8th, 2010, 7:19 pm
by locoroco80s
I'm desperately trying to get SAB running on Linux—it's an old xbox running Xebian a version of debian and I think a 2.4 kernell using the old sarge repos.

I seem to be getting the same error

Code: Select all

box:/home/gil/sab/SABnzbd-0.3.4# ./SABnzbd.py 
Traceback (most recent call last):
  File "./SABnzbd.py", line 26, in ?
    import sabnzbd
  File "/home/gil/sab/SABnzbd-0.3.4/sabnzbd/__init__.py", line 37, in ?
    from sabnzbd.assembler import Assembler, PostProcessor
  File "/home/gil/sab/SABnzbd-0.3.4/sabnzbd/assembler.py", line 37, in ?
    from sabnzbd.interface import CheckFreeSpace
  File "/home/gil/sab/SABnzbd-0.3.4/sabnzbd/interface.py", line 38, in ?
    from cherrypy.filters.gzipfilter import GzipFilter
ImportError: No module named filters.gzipfilter

I've found a few posts on here that say it's because of a too new a version of Cherry.py. I've checked my version and it says this;

>>> import cherrypy
>>>

also there's this:

Code: Select all

box:/home/gil/sab/SABnzbd-0.3.4# cd /usr/local/lib/python2.5/   
box:/usr/local/lib/python2.5# cd site-packages/
box:/usr/local/lib/python2.5/site-packages# ls
Cheetah                        elementtree-1.2.6_20050316-py2.5.egg-info
Cheetah-2.0.1-py2.5.egg-info   pysqlite-2.5.6-py2.5.egg-info
CherryPy-2.2.1-py2.5.egg-info  pysqlite2
README                         yenc-0.3-py2.5.egg-info
_yenc.so                       yenc.py
cherrypy                       yenc.pyc
elementtree
box:/usr/local/lib/python2.5/site-packages# 
Any ideas how I can get round this error and get the amazing program that is SAB up and running?

I'm not sure if it's connected but I tried using SABnzb-.4+ at first but it kept complaining I need a version of python greather than 2.3. But when I run the command Python -V the version number is Python 2.5.4 -- above the required version. So I dropped down a version point not sure if that;s the right thing to of done.

TIA. ???

Re: ImportError: No module named filterI's.gzipfilter

Posted: July 9th, 2010, 2:37 am
by shypike
We don't support release 0.3.4 anymore.
It needs a very old version of CherryPy.
You should use SABnzbd 0.4.12 or higher, those come with their own CherryPy included.

Re: ImportError: No module named filterI's.gzipfilter

Posted: July 9th, 2010, 2:45 am
by locoroco80s
I've changed to SABnzbd-0.4.12 but I'm now getting the wrong Python version error.

Code: Select all

box:/home/gil/sab/SABnzbd-0.4.12# ls
CHANGELOG.txt  INSTALL.txt  README.txt           cherrypy
COPYRIGHT.txt  ISSUES.txt   SABnzbd.py           interfaces
GPL2.txt       LICENSE.txt  Sample-PostProc.cmd  licenses
GPL3.txt       PKG-INFO     Sample-PostProc.sh   sabnzbd
box:/home/gil/sab/SABnzbd-0.4.12# ./SABnzbd.py 
Sorry, requires Python 2.4.3 or higher.
Traceback (most recent call last):
  File "./SABnzbd.py", line 21, in ?
    exit(1)
TypeError: 'str' object is not callable
box:/home/gil/sab/SABnzbd-0.4.12# 

But according to python I'm running a hire version:

Code: Select all

box:/home/gil/sab/SABnzbd-0.4.12# python -V
Python 2.5.4
Any ideas what's going wrong?

Re: ImportError: No module named filterI's.gzipfilter

Posted: July 9th, 2010, 8:58 am
by shypike
What happens if you use this?

Code: Select all

python ./SABnzbd.py

Re: ImportError: No module named filterI's.gzipfilter

Posted: July 9th, 2010, 9:05 am
by locoroco80s
python SABnzbd.py seems to work fine.

That's weird.

Thanks for your help :D

Re: ImportError: No module named filterI's.gzipfilter

Posted: July 9th, 2010, 9:08 am
by shypike
Most Unix scripts have their interpreter path in the first line.
The path that SABnzbd.py uses might not be appropriate for your system.