SABYenc installed to wrong python version?

Get help with all aspects of SABnzbd
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
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

SABYenc installed to wrong python version?

Post by PsychoGTI »

I just upgraded from SAB 1.2.3 to 2.3.0, and noticed I needed to install SABYenc 3.3.1. I followed the directions on https://sabnzbd.org/wiki/installation/sabyenc.html, and it looks like it installed okay. But then I think it may have installed on the wrong python version:

Code: Select all

> sudo pip install sabyenc --upgrade
Requirement already up-to-date: sabyenc in /usr/lib64/python3.4/site-packages
> python --version
Python 2.7.13
> python3 --version
Python 3.4.6
Can't get either python to recognize the version:

Code: Select all

>python -c "import sys; print sys.executable; import sabyenc ; print sabyenc.__version__ "
/usr/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named sabyenc
I'm running this on OpenSUSE. Any thoughts on what to look at next?
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: SABYenc installed to wrong python version?

Post by sander »

Ah, python3 versus python (aka python2) ... I didn't know that could happen, but of course it can. ;)

I did a Google search, and it seems there is "pip3" and "pip2" ... that is true on my Ubuntu. Can you check on your SuSE?

And or: python3-pip versus python2-pip
PsychoGTI
Newbie
Newbie
Posts: 8
Joined: September 25th, 2014, 11:00 pm

Re: SABYenc installed to wrong python version?

Post by PsychoGTI »

Yes, both of which are installed when I checked zypper:

Code: Select all

i+ | python-pip                           | Pip installs packages. Python packages. An easy_install r-> | package
i  | python3-pip                          | Pip installs packages. Python packages. An easy_install r-> | package
So I uninstalled python3-pip and forced a re-install of python-pip. Walking through the pip setup again, I finally yielded the correct result:

Code: Select all

>python -c "import sabyenc ; print sabyenc.__version__ "
3.3.1
Restarted SAB and now it doesn't complain about not seeing it! Perfect! Thanks for the tip!
Post Reply