SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Post by pinn »

Hi,

Updated to rc1 on Debian and installed sabctools after seeing the message saying:
Essential modules are missing, downloading cannot start.
SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Installed sabctools using: pip install sabctools --upgrade

Code: Select all

Collecting sabctools
  Downloading sabctools-7.0.1.tar.gz (234 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 234.1/234.1 kB 4.5 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: sabctools
  Building wheel for sabctools (pyproject.toml) ... done
  Created wheel for sabctools: filename=sabctools-7.0.1-cp38-cp38-linux_aarch64.whl size=190462 sha256=2c4c39569cb26e6c5825ae48d7613db2d891945a51df1a9cd2a435be7de735c7
  Stored in directory: /root/.cache/pip/wheels/7f/e5/27/3405bcb9a8ad09b296ce36a164f15b88cfb20834704990aa00
Successfully built sabctools
Installing collected packages: sabctools
Successfully installed sabctools-7.0.1
But sab is still complaining that I'm not on the correct version. Any ideas?

Thanks
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Post by pinn »

Further to this:

Code: Select all

osmc@Kodi:~/sabnzbd$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Ignoring pywin32: markers 'sys_platform == "win32"' don't match your environment
Ignoring pyobjc: markers 'sys_platform == "darwin"' don't match your environment
Requirement already satisfied: sabctools==7.0.1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 3)) (7.0.1)
Requirement already satisfied: cheetah3==3.2.6.post1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 4)) (3.2.6.post1)
Requirement already satisfied: cffi==1.15.1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 5)) (1.15.1)
Requirement already satisfied: pycparser==2.21 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 6)) (2.21)
Requirement already satisfied: feedparser==6.0.10 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 7)) (6.0.10)
Requirement already satisfied: configobj==5.0.8 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 8)) (5.0.8)
Requirement already satisfied: cheroot==9.0.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 9)) (9.0.0)
Requirement already satisfied: six==1.16.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 10)) (1.16.0)
Requirement already satisfied: cherrypy==18.8.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 11)) (18.8.0)
Requirement already satisfied: jaraco.functools==3.6.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 12)) (3.6.0)
Requirement already satisfied: jaraco.collections==4.1.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 13)) (4.1.0)
Requirement already satisfied: jaraco.text==3.8.1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 14)) (3.8.1)
Requirement already satisfied: jaraco.classes==3.2.3 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 15)) (3.2.3)
Requirement already satisfied: jaraco.context==4.3.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 16)) (4.3.0)
Requirement already satisfied: more-itertools==9.1.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 17)) (9.1.0)
Requirement already satisfied: zc.lockfile==3.0.post1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 18)) (3.0.post1)
Requirement already satisfied: python-dateutil==2.8.2 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 19)) (2.8.2)
Requirement already satisfied: tempora==5.2.2 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 20)) (5.2.2)
Requirement already satisfied: pytz==2023.3 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 21)) (2023.3)
Requirement already satisfied: sgmllib3k==1.0.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 22)) (1.0.0)
Requirement already satisfied: portend==3.1.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 23)) (3.1.0)
Requirement already satisfied: chardet==5.1.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 24)) (5.1.0)
Requirement already satisfied: PySocks==1.7.1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 25)) (1.7.1)
Requirement already satisfied: puremagic==1.15 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 26)) (1.15)
Requirement already satisfied: guessit==3.7.1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 27)) (3.7.1)
Requirement already satisfied: babelfish==0.6.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 28)) (0.6.0)
Requirement already satisfied: rebulk==3.2.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 29)) (3.2.0)
Requirement already satisfied: cryptography==40.0.2 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 33)) (40.0.2)
Requirement already satisfied: ujson==5.7.0 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 37)) (5.7.0)
Requirement already satisfied: notify2==0.3.1 in /home/osmc/.local/lib/python3.8/site-packages (from -r requirements.txt (line 46)) (0.3.1)
Requirement already satisfied: importlib-resources in /home/osmc/.local/lib/python3.8/site-packages (from jaraco.text==3.8.1->-r requirements.txt (line 14)) (5.12.0)
Requirement already satisfied: setuptools in /home/osmc/.local/lib/python3.8/site-packages (from zc.lockfile==3.0.post1->-r requirements.txt (line 18)) (59.3.0)
Requirement already satisfied: zipp>=3.1.0 in /home/osmc/.local/lib/python3.8/site-packages (from importlib-resources->jaraco.text==3.8.1->-r requirements.txt (line 14)) (3.15.0)
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Post by jcfp »

Note that your output shows some pip commands were run as root, others under an 'osmc' account. Depending on pip defaults and options, files installed using the root account (v6.1.1?) may end up in the system-wide site-packages dir.

I recommend using a per-application venv as a clean and simple way of running python applications from source with deps handled by pip. See https://github.com/sabnzbd/sabnzbd/issu ... 1462489474 for the basics.
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Post by pinn »

jcfp wrote: April 20th, 2023, 4:02 am Note that your output shows some pip commands were run as root, others under an 'osmc' account. Depending on pip defaults and options, files installed using the root account (v6.1.1?) may end up in the system-wide site-packages dir.

I recommend using a per-application venv as a clean and simple way of running python applications from source with deps handled by pip. See https://github.com/sabnzbd/sabnzbd/issu ... 1462489474 for the basics.
So I've tried to uninstall sabctools and reinstall under user account but I'm still getting the same issue.

Code: Select all

osmc@Kodi:~/sabnzbd$ sudo pip uninstall sabctools
WARNING: Skipping sabctools as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
osmc@Kodi:~/sabnzbd$ pip uninstall sabctools
Found existing installation: sabctools 7.0.1
Uninstalling sabctools-7.0.1:
  Would remove:
    /home/osmc/.local/lib/python3.8/site-packages/sabctools-7.0.1.dist-info/*
    /home/osmc/.local/lib/python3.8/site-packages/sabctools/*
Proceed (Y/n)? y
  Successfully uninstalled sabctools-7.0.1
osmc@Kodi:~/sabnzbd$ pip install sabctools
Defaulting to user installation because normal site-packages is not writeable
Collecting sabctools
  Using cached sabctools-7.0.1.tar.gz (234 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: sabctools
  Building wheel for sabctools (pyproject.toml) ... done
  Created wheel for sabctools: filename=sabctools-7.0.1-cp38-cp38-linux_aarch64.whl size=190469 sha256=900680e28691e316e011ffee173e5d6768cf950d2e7bec54445eac0a8f034c4d
  Stored in directory: /home/osmc/.cache/pip/wheels/7f/e5/27/3405bcb9a8ad09b296ce36a164f15b88cfb20834704990aa00
Successfully built sabctools
Installing collected packages: sabctools
Successfully installed sabctools-7.0.1
User avatar
jcfp
Release Testers
Release Testers
Posts: 1004
Joined: February 7th, 2008, 12:45 pm

Re: SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Post by jcfp »

You'll have to figure out where the old version is installed.

Try executing the same python executable under the same user as the application (modify 'python3' if necessary) and make it tell you where it loads the module from:

Code: Select all

python3 -c 'import sabctools; print(sabctools.__path__)'
pinn
Jr. Member
Jr. Member
Posts: 89
Joined: September 18th, 2011, 4:08 am

Re: SABCTools disabled: no correct version found! (Found v6.1.1, expecting v7.0.1)

Post by pinn »

jcfp wrote: April 20th, 2023, 10:38 am You'll have to figure out where the old version is installed.

Try executing the same python executable under the same user as the application (modify 'python3' if necessary) and make it tell you where it loads the module from:

Code: Select all

python3 -c 'import sabctools; print(sabctools.__path__)'
Much appreciated. Found in: /usr/local/lib/python3.9/dist-packages and deleted the 2x folders and running now.

Thanks for the support.
Post Reply