Sabyenc installation on Asustor NAS

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
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Sabyenc installation on Asustor NAS

Post by Hunterdiver »

Hi,

I have been scanning the internet and read a few of the post on here and elsewhere of similar issues

I have been using SABnzbd on my Asustor NAS for a long while now without issues, now like many I am seeing the sabyenc error message

I have been unable to install sabyenc using the pip install method

I only have the 2 . 7 version of Python installed

when I run the command

Code: Select all

                     python -c "import sabyenc ; print sabyenc . __version__ "
I get

Code: Select all

            Traceback (most recent call last):
             File "<string>", line 1, in <module>
            ImportError :  No module named sabyenc
I am semi IT literate but not great on this type of platform

I have tried installing the various tools as recommended elsewhere but to no avail, the error message I get when I run

Code: Select all

pip install sabyenc 


Collecting sabyenc
  Using cached sabyenc-3 3 1 . tar . gz
Installing collected packages: sabyenc
  Running setup . py install for sabyenc  ...  error
    Complete output from command /opt/bin/python2 . 7 -u -c "import setuptools, tokenize;__file__='/volume1/ . @plugins/AppCentral/entware-ng/opt/tmp/pip-build-LQWB6V/sabyenc/setup . py';f=getattr(tokenize, 'open', open)(__file__);code=f . read() . replace('\r\n', '\n');f. close();exec(compile(code, __file__, 'exec'))" install --record /opt/tmp/pip-9EtL3n-record/install-record . txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    building 'sabyenc' extension
    creating build
    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/sabyenc . c -o build/temp . linux-x86_64-2 . 7/src/sabyenc . o
    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__='/volume1/ . @plugins/AppCentral/entware-ng/opt/tmp/pip-build-LQWB6V/sabyenc/setup . py';f=getattr(tokenize, 'open', open)(__file__);code=f . read() . replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /opt/tmp/pip-9EtL3n-record/install-record . txt --single-version-externally-managed --compile" failed with error code 1 in /volume1/ . @plugins/AppCentral/entware-ng/opt/tmp/pip-build-LQWB6V/sabyenc/
User avatar
sander
Release Testers
Release Testers
Posts: 8841
Joined: January 22nd, 2008, 2:22 pm

Re: Sabyenc installation on Asustor NAS

Post by sander »

I have been unable to install sabyenc using the pip install method

Code: Select all

pip install sabyenc 
<snip>
unable to execute 'x86_64-openwrt-linux-gnu-gcc': No such file or directory
You have no gcc (= C compiler) installed ...

But, more important:

Why don't you use the pacakge from https://www.asustor.com/apps/app_detail?id=98 as it says "V 20170815: Added default encoding and sabyenc.", so it has sabyenc ...
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

I have version V 20170815 installed from the Asustor as is Python.

I have uninstalled and re-installed both via App Central I am getting the following error message hence wanting to update.

SABYenc disabled: no correct version found! (Found v3.0.2, expecting v3.3.1)
User avatar
sander
Release Testers
Release Testers
Posts: 8841
Joined: January 22nd, 2008, 2:22 pm

Re: Sabyenc installation on Asustor NAS

Post by sander »

Hunterdiver wrote: October 27th, 2017, 7:10 pm I have version V 20170815 installed from the Asustor as is Python.

I have uninstalled and re-installed both via App Central I am getting the following error message hence wanting to update.

SABYenc disabled: no correct version found! (Found v3.0.2, expecting v3.3.1)
And which version of SABnzbd?

On August 15, there was only SABnzbd version 2.2.0 RC3, which needed SAByenc 3.0.2.
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

Version: 2.3.1 [f1695ec]
Uptime: 13m
Config File: /usr/local/AppCentral/sabnzbdplus/config/sabnzbd.ini
Parameters: SABnzbd.py -f /usr/local/AppCentral/sabnzbdplus/config/sabnzbd.ini --browser 0 --daemon --pid /usr/local/AppCentral/sabnzbdplus
Python Version: 2.7.10 (default, Aug 19 2015, 09:18:54) [GCC 4.6.3] [UTF-8]
OpenSSL: OpenSSL 1.0.2k 26 Jan 2017
Multicore Par2
SABYenc: Not available
User avatar
sander
Release Testers
Release Testers
Posts: 8841
Joined: January 22nd, 2008, 2:22 pm

Re: Sabyenc installation on Asustor NAS

Post by sander »

So ... you must have downloaded and installed SABnzbd (without SAByenc) separately. Correct?

If so, don't do that. Use the package for ASUStor.
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

I did use the asustor package from the App central app on the NAS.

I have now uninstalled both SABnzbd and python.

I then re installed SABnzbd which installed python.

On restarting SABnzbd I get ...

2017-10-28 01:15:19 WARNING SABYenc disabled: no correct version found! (Found v3.0.2, expecting v3.3.1)

I'm going to uninstall and then install Python and the SABnzbd ...
User avatar
safihre
Administrator
Administrator
Posts: 5373
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabyenc installation on Asustor NAS

Post by safihre »

@sander: the package auto-updates via Git to the last version of SABnzbd.
But since clinton-hall (the package creator) suddenly disappeared it was never updated for the new SABYenc.

Is there a way to install a compiler for that platform? In any of the Asus packages?

I see another user was able to get a compiler on that platform, so it must be available?
https://github.com/sabnzbd/sabnzbd/issues/1038
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

I had found and used that to assist in trying to get it to work, but still not getting it to work correctly.

If someone could help with this bit I would be grateful..

How can I ...
download the Sabyenc repository and try setup.py install?
User avatar
safihre
Administrator
Administrator
Posts: 5373
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabyenc installation on Asustor NAS

Post by safihre »

That would give the same problem, you are missing the compiler package.

I Googled and found that you should install Entware on your nas, then you can pull in the gcc package. This should to the trick!
https://github.com/Entware-ng/Entware-n ... SUSTOR-NAS
https://github.com/Entware-ng/Entware-n ... mpilation)
Maybe NAS needs a restart after that, to make sure gcc is in the path.
After that try the "pip install sabyenc" again :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

Thanks, I had installed entware but not done a restart ... I will try again
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

OK.... so now SABnzbd doesnt work at all ... I got as far as trying to create the symlink then it all went bad.
I have now uninstalled
python
sabnzbdplus
entware
re-installed sabnzbdplus and python bit still cant get sab to start at all

Is there an apk for the correct versions of python and sab I can try and install from ?
may need some assistance
User avatar
safihre
Administrator
Administrator
Posts: 5373
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Sabyenc installation on Asustor NAS

Post by safihre »

What happens if you try to start SABnzbd?
And you need the gcc package from entware, not just entware.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Hunterdiver
Newbie
Newbie
Posts: 9
Joined: October 27th, 2017, 11:27 am

Re: Sabyenc installation on Asustor NAS

Post by Hunterdiver »

Hi
I did install gcc.

I got everything from this ... https://github.com/sabnzbd/sabnzbd/issues/1038,

then I tried to workout the symlink and i broke it .... really badly

as above I removed everything and re-installed python first and then SABnzbd

Now when I try to start SAB it just fails..... sorry but I just click on the icon and a webpage normally opens.

If someone can point me at how to do it via cmdline I may be able to get some more info
Post Reply