Page 1 of 1

sabnzbd won't start under debian anymore

Posted: April 13th, 2011, 7:51 am
by omega13333
Hello,

a few days ago sabnzbd stopped working for me. When I try to start it I get the following error message

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/sabnzbdplus", line 44, in <module>
    import cherrypy
  File "/usr/share/sabnzbdplus/cherrypy/__init__.py", line 161, in <module>
    from cherrypy import _cptools
  File "/usr/share/sabnzbdplus/cherrypy/_cptools.py", line 227, in <module>
    from cherrypy.lib import sessions as _sessions, xmlrpc as _xmlrpc
  File "/usr/share/sabnzbdplus/cherrypy/lib/sessions.py", line 9, in <module>
    import datetime
ImportError: /usr/lib/python2.6/lib-dynload/datetime.so: undefined symbol: Py_IgnoreEnvironmentFlag
I already tried to downgrade to version 0.5.4 or to upgrade to 0.6 beta but the error keeps the same. I would be gratefull for clues for the cause of this error.

My system:
Version: 0.5.6
OS:Debian squeeze
Install-type: debian package
Skin: plush
Firewall Software: none
Are you using IPV6: no
Is the issue reproducible? yes

Re: sabnzbd won't start under debian anymore

Posted: April 13th, 2011, 9:57 am
by sander
Let's check if your python setup is OK:

on the command line, start "python"
in python, type "import datetime"
Does that result in an error?


Code: Select all

sander@lifebook:~$ python
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> print datetime.datetime.now()
2011-04-13 16:56:12.244440
>>> 
sander@lifebook:~$


Re: sabnzbd won't start under debian anymore

Posted: April 14th, 2011, 2:57 am
by omega13333
I did what you asked me for and I got a similiar error message, so your assumption that my python setop is broken is true. I have uninstalled my whole python setup and reinstalled it clean from the debian repositories and now everything works fine again.
Thanks for your help