Page 1 of 1
module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 10:36 am
by Janneman7
Hi,
I ran into some errors and decided to remove and reinstall sabnzbd+ (on Ubuntu). Now , when starting, I get :
AttributeError: module 'sabctools' has no attribute 'NNTPResponse'
When I open python in a cmd box and import sabctools, I get the same for __version__
Any thoughts?
Thanks..
Re: module 'sabctools' has no attribute '
Posted: December 15th, 2025, 10:52 am
by sander
update your sabctools to current version 9.1.0
And I guess you're running from source, Janneman? See
https://github.com/sabnzbd/sabnzbd/#:~: ... %2Dm%20pip
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:09 am
by sander
OR: much easier ... use the PPA. It will care of dependencies
See
https://sabnzbd.org/wiki/installation/i ... buntu-repo
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:14 am
by Janneman7
Yes, I am using PPA .
apt list --installed |grep sab
python3-sabctools/noble,now 9.1.0-0ubuntu1~jcfp1~24.04 amd64 [installed]
sabnzbdplus/noble,noble,now 4.6.0~alpha2-0ubuntu1~jcfp1~24.04 all [installed]
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:20 am
by Janneman7
PS.
I found a suggstion that ' module x has no attribute' was down to module x being too big to be imported , see : " How to Resolve Module Has No Attribute - Python Error Messages" by Analyst Rising om Youtube.
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:23 am
by sander
Same here.
So do the below and post output
Code: Select all
sander@zwarte:~$ apt list --installed |grep sab
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
lto-disabled-list/noble,now 47 all [installed,automatic]
python3-sabctools/noble,now 9.1.0-0ubuntu1~jcfp1~24.04 amd64 [installed,automatic]
sabnzbdplus/noble,now 4.6.0~alpha2-0ubuntu1~jcfp1~24.04 all [installed]
sander@zwarte:~$
sander@zwarte:~$ python3
Python 3.12.3 (main, Nov 6 2025, 13:44:16) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sabctools
>>> sabctools.__version__
'9.1.0'
>>>
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:26 am
by Janneman7
mmmm strange enough its says 8.2.5...
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:28 am
by Janneman7
pip3 list says :
sabctools 8.2.5
sabctools 8.2.5
Yes. Listed twice
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:31 am
by sander
Yes, so, that means you installed sabctools both via pip and apt. Not good.
If you use the PPA, remove the pip versions.
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:37 am
by Janneman7
Thanks. Have to find out how, since pip3 uninstall does not work...
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 11:43 am
by Janneman7
Took a risk by using pip3 uninstall --break-packages and everything seems to be working. Thanks again.
Re: module 'sabctools' has no attribute 'NNTPResponse'
Posted: December 15th, 2025, 12:00 pm
by sander
Good!
Mixing pip and apt is horror.
Therefore current Ubuntu does not allow global installations of pip modules: you must install them in a venv. A bit of a learning curve, but then it's better.