Page 1 of 1

SABYenc trolls me

Posted: September 12th, 2017, 7:22 pm
by NotANoobLol
Hey people,
I have sabnzbd installed on my raspberrypi which has Raspbian 8 (Jessie) installed.
Current version of SABnzbd: 2.3.0Alpha2
SAByenc is not yet installed:

Code: Select all

pi@raspberrypi:~ $ python -c "import sabyenc ; print sabyenc.__version__ "
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named sabyenc
Basically I did the following

Code: Select all

sudo apt-get install python-dev python-pip
Which went fine. No problems during the installation.

Then I did the following (i had to cut the output because I'm not allowed to post links. And the Forum software seems to recognize /usr/dir1/dir2 as a link.)

Code: Select all

pi@raspberrypi:~ $ sudo -H pip install sabyenc --upgrade
Traceback (most recent call last):
(...)
    import colorama, pkg_resources
importError: No module named 'colorama'
After that I tried to install colorama

Code: Select all

pi@raspberrypi:~ $ sudo -H pip install colorama --upgrade
Traceback (most recent call last):
(...)
ImportError: No module named 'colorama'

I have no idea what else to try. Most stfuff I found via google wasn't helpful I only figured out that it might have something to do with different versions. But the thread on stackoverflow didn't explained what do to...

Re: SABYenc trolls me

Posted: September 13th, 2017, 1:05 am
by safihre
I read online that it kas something to do with using it via sudo. Doesn't it work without?
The installing of Sabyenc first.

Re: SABYenc trolls me

Posted: September 13th, 2017, 6:25 am
by sander
"colorama" is not needed by sabnzbd nor sabyenc.

If pip is complaining about colorama, I would say something is wrong with your raspi / pip setup. So I would not say "SABYenc trolls me", but "PIP trolls me". You can try with another, unrelated pip package, like "sudo pip install urwid" and see what happens.

If safihre's suggestion does not work, you can try:
- install via the PPA. Very discouraged on ARM, but you can try
- reinstall a fresh raspbian.

Re: SABYenc trolls me

Posted: September 13th, 2017, 6:36 am
by NotANoobLol
safihre wrote: September 13th, 2017, 1:05 am I read online that it kas something to do with using it via sudo. Doesn't it work without?
The installing of Sabyenc first.
Right I forgot to mention, that I tried every command without "sudo" too. The same issue happens with the --upgrade flag.

Code: Select all

pi@raspberrypi:~ $ pip install sabyenc
Traceback (most recent call last):
(...)
    from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'

sander wrote: September 13th, 2017, 6:25 am "colorama" is not needed by sabnzbd nor sabyenc.

If pip is complaining about colorama, I would say something is wrong with your raspi / pip setup. So I would not say "SABYenc trolls me", but "PIP trolls me". You can try with another, unrelated pip package, like "sudo pip install urwid" and see what happens.

If safihre's suggestion does not work, you can try:
- install via the PPA. Very discouraged on ARM, but you can try
- reinstall a fresh raspbian.
I get the same colorama issue with urwid. But how can that happen if I purged the python dev which includes pip? I thought with apt-get purge you basically do a reset on that package?

I guess with PPA you mean adding this here to my /etc/apt/source.list?

Code: Select all

deb http://ppa.launchpad DOT net/ jcfp/ sab-addons /ubuntu trusty main
without the spaces of course

Re: SABYenc trolls me

Posted: September 13th, 2017, 6:43 am
by sander
I get the same colorama issue with urwid.
OK. So that proves my hypothesis, and hopefully helps in pinpointing the cause/solution.
But how can that happen if I purged the python dev which includes pip? I thought with apt-get purge you basically do a reset on that package?
pip and apt-get are separated systems ... :(
I guess with PPA you mean adding this here to my /etc/apt/source.list?
Yes. Woth a try. Works for me on my ARM ... :)

If the above fails ... fresh install of Raspbian. FWIW: I also did a fresh on my ARM yesterday ... so that's common business ...

Re: SABYenc trolls me

Posted: September 13th, 2017, 7:55 am
by NotANoobLol
I installed it via the PPA.
Easy Gude:
viewtopic.php?f=16&t=22809#p112614

Re: SABYenc trolls me

Posted: September 13th, 2017, 8:49 am
by sander
NotANoobLol wrote: September 13th, 2017, 7:55 am I installed it via the PPA.
Easy Gude:
viewtopic.php?f=16&t=22809#p112614
Yeah, that's a good & easy guide by an experienced person ... ;)

... and a wise comment by jcfp ...