Page 2 of 2

Re: solved - problem installing python-yenc

Posted: October 29th, 2016, 11:05 pm
by teracow
I followed this. :)

Re: solved - problem installing python-yenc

Posted: October 30th, 2016, 12:17 pm
by Iceman24
Thanks. I had seen that thread, but too long ago to have known what to do with those instructions. I got Sabnzbd on the Entware Python. Still having SSL issues, but perhaps OpenSSL or something needs updating.

I'm stuck at trying to get yEnc installed though. I get to the point if you trying to install it where it worked, but get this.

Code: Select all

[/share] # pip install http://www.golug.it/pub/yenc/yenc-0.4.0.tar.gz
Collecting http://www.golug.it/pub/yenc/yenc-0.4.0.tar.gz
  Downloading http://www.golug.it/pub/yenc/yenc-0.4.0.tar.gz (63kB)
    100% |████████████████████████████████| 71kB 269kB/s
Installing collected packages: yenc
  Running setup.py install for yenc ... error
    Complete output from command /opt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/opt/tmp/pip-i0V8kP-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /opt/tmp/pip-bffIU9-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying lib/yenc.py -> build/lib.linux-x86_64-2.7
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_yenc' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/src
    x86_64-openwrt-linux-gnu-gcc -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -DNDEBUG -fno-inline -DNDEBUG -O2 -pipe -fomit-frame-pointer -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fPIC -I/opt/include/python2.7 -c src/_yenc.c -o build/temp.linux-x86_64-2.7/src/_yenc.o -O2 -g
    unable to execute 'x86_64-openwrt-linux-gnu-gcc': No such file or directory
    error: command 'x86_64-openwrt-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/opt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/opt/tmp/pip-i0V8kP-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /opt/tmp/pip-bffIU9-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /opt/tmp/pip-i0V8kP-build/


Re: solved - problem installing python-yenc

Posted: October 30th, 2016, 12:28 pm
by Iceman24
Also, what does your Sabnzbd config info page say now that you rectified your issues?

Re: solved - problem installing python-yenc

Posted: October 30th, 2016, 1:31 pm
by Iceman24
One other thing. I seem to be making progress. I cannot find the 'libffi-dev' package through Entware or anywhere else that seems compatible. Any clue as to where I can find?

Re: solved - problem installing python-yenc

Posted: October 30th, 2016, 5:11 pm
by Iceman24
Made more progress, actually got the yEnc installed now. Yay, right? Except even after restarting Sabzbd, yEnc is still said to be not installed. This is so frustrating. I've spent several hours and counting and still have a broken system.

Re: solved - problem installing python-yenc

Posted: October 30th, 2016, 5:47 pm
by Iceman24
Okay, so got Sonarr working again after downgrading Mono. Szbnzbd is now downloading quite a bit quicker, so apparently yEnc is working, even though Sabnzbd claims not to see it??? Strange..

Re: solved - problem installing python-yenc

Posted: October 31st, 2016, 2:42 am
by shypike
If SABnzbd claims it's missing yEnc, it cannot be using it.
Python can be quite sensitive to proper path settings.
You may need to point the environment variable PYTHONPATH to the location where you put yenc.

Re: solved - problem installing python-yenc

Posted: October 31st, 2016, 1:31 pm
by Iceman24
shypike wrote:If SABnzbd claims it's missing yEnc, it cannot be using it.
Python can be quite sensitive to proper path settings.
You may need to point the environment variable PYTHONPATH to the location where you put yenc.
Well, as logical as that sounds, the speed increase right after I got it to finally install is undeniable. Downloading is 20% (Almost 2MB/s) faster.

I can't see any other reason the download speed would increase so much. It was hardware limited. Either way, it reporting it as not available does bother me. I can't seem to understand how to adjust the PYTHONPATH on my QNAP NAS. I know where the yEnc is located, but don't know how to adjust PYTHONPATH. Thanks.

Re: solved - problem installing python-yenc

Posted: November 1st, 2016, 9:48 pm
by Iceman24
I manually copied over files from Entware folder to Sabnzbd folder, replacing the yEnc files already in Sabnzbd folder and got check mark and even faster speeds. I feel like this is the wrong way of doing it, that Sabnzbd should be directed to look in proper place, but working nonetheless. Where can I adjust where Sabnzbd looks for yEnc files?