Page 1 of 1

SABYenc installed to wrong python version?

Posted: September 27th, 2017, 11:29 am
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?

Re: SABYenc installed to wrong python version?

Posted: September 27th, 2017, 11:38 am
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

Re: SABYenc installed to wrong python version?

Posted: September 27th, 2017, 3:26 pm
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!