module 'sabctools' has no attribute 'NNTPResponse'

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

module 'sabctools' has no attribute 'NNTPResponse'

Post 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..
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: module 'sabctools' has no attribute '

Post 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
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post by sander »

OR: much easier ... use the PPA. It will care of dependencies

See https://sabnzbd.org/wiki/installation/i ... buntu-repo
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post 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]
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post 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'
>>>
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post by Janneman7 »

mmmm strange enough its says 8.2.5...
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post by Janneman7 »

pip3 list says :

sabctools 8.2.5
sabctools 8.2.5

Yes. Listed twice
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post 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.
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post by Janneman7 »

Thanks. Have to find out how, since pip3 uninstall does not work...
Janneman7
Newbie
Newbie
Posts: 7
Joined: December 15th, 2025, 10:21 am

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post by Janneman7 »

Took a risk by using pip3 uninstall --break-packages and everything seems to be working. Thanks again.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: module 'sabctools' has no attribute 'NNTPResponse'

Post 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.
Post Reply