Failing to install SABYenc in Debian Jessie

Support for the Debian/Ubuntu package, created by JCFP.
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
a4ex
Newbie
Newbie
Posts: 2
Joined: July 9th, 2017, 1:17 pm

Failing to install SABYenc in Debian Jessie

Post by a4ex »

Hello All,

I have tried to install SABYenc in Debian Jessie but with no luck.

I followed the steps: Installation on Ubuntu (without PPA) Long, with your own compiling, since i'm trying to install in an armv7l

Code: Select all

sudo apt-get install python-dev python-pip
sudo -H pip install sabyenc --upgrade

Code: Select all

# pip install sabyenc --upgrade
Downloading/unpacking sabyenc
  Downloading sabyenc-3.0.2.tar.gz
  Running setup.py (path:/tmp/pip-build-Rjvgrc/sabyenc/setup.py) egg_info for package sabyenc

Installing collected packages: sabyenc
  Running setup.py install for sabyenc
    building 'sabyenc' extension
    arm-linux-gnueabi-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/sabyenc.c -o build/temp.linux-armv7l-2.7/src/sabyenc.o -O2
    unable to execute 'arm-linux-gnueabi-gcc': No such file or directory
    error: command 'arm-linux-gnueabi-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Rjvgrc/sabyenc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CewgX3-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-armv7l-2.7

creating build/temp.linux-armv7l-2.7/src

arm-linux-gnueabi-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/sabyenc.c -o build/temp.linux-armv7l-2.7/src/sabyenc.o -O2

unable to execute 'arm-linux-gnueabi-gcc': No such file or directory

error: command 'arm-linux-gnueabi-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Rjvgrc/sabyenc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CewgX3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-Rjvgrc/sabyenc
Storing debug log for failure in /root/.pip/pip.log
So I tried to install arm-linux-gnueabi-gcc separately following instructions from https://wiki.debian.org/CrossToolchains ... ebian_8.29 but i failed miserly.

I'm stack in this:

Code: Select all

apt-get install crossbuild-essential-armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 crossbuild-essential-armel : Depends: gcc-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
                              Depends: g++-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried to install gcc-arm-linux-gnueabi by itself but no luck.

Code: Select all

apt-get install gcc-arm-linux-gnueabi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gcc-arm-linux-gnueabi : Depends: gcc-4.9-arm-linux-gnueabi (>= 4.9.2-10) but it is not installable
E: Unable to correct problems, you have held broken packages.
After that whatever i tried fails.

Has anyone had similar problems? Is there a solution?

Thanks in advance.

-a4ex
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Failing to install SABYenc in Debian Jessie

Post by sander »

Installation on Ubuntu (without PPA) Long
Why don't you use the PPA method? That way the compiling has been done for you. :)
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Failing to install SABYenc in Debian Jessie

Post by safihre »

sander wrote: July 9th, 2017, 2:00 pm
Installation on Ubuntu (without PPA) Long
Why don't you use the PPA method? That way the compiling has been done for you. :)
Like he says: the PPA has no armv7l support.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Failing to install SABYenc in Debian Jessie

Post by sander »

Like he says: the PPA has no armv7l support.
I don't read that in the OP?

On my armv7l Debian device (Raspi with Raspbian) the PPA method works:


armv7l:

Code: Select all

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
Before:

Code: Select all

2017-07-09 20:43:36,251::WARNING::[sabnzbdplus:401] SABYenc module... NOT found! Expecting v3.0.2 - https://sabnzbd.org/sabyenc

Code: Select all

pi@raspberrypi:~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu trusty main
deb http://ppa.launchpad.net/jcfp/sab-addons/ubuntu trusty main
Install via PPA:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install python-sabyenc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  python-sabyenc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 7422 B of archives.
After this operation, 53,2 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/jcfp/sab-addons/ubuntu/ trusty/main python-sabyenc armhf 3.0.2-0ubuntu1~jcfp1~trusty [7422 B]
Fetched 7422 B in 0s (86,7 kB/s)          
Selecting previously unselected package python-sabyenc.
(Reading database ... 36546 files and directories currently installed.)
Preparing to unpack .../python-sabyenc_3.0.2-0ubuntu1~jcfp1~trusty_armhf.deb ...
Unpacking python-sabyenc (3.0.2-0ubuntu1~jcfp1~trusty) ...
Setting up python-sabyenc (3.0.2-0ubuntu1~jcfp1~trusty) ...
Check:

Code: Select all

pi@raspberrypi:~ $ python -c "import sabyenc ; print sabyenc.__version__ "
3.0.2
pi@raspberrypi:~ $
SAB is happy too:

Code: Select all

2017-07-09 20:53:36,487::INFO::[sabnzbdplus:393] SABYenc module (v3.0.2)... found!
User avatar
jcfp
Release Testers
Release Testers
Posts: 986
Joined: February 7th, 2008, 12:45 pm

Re: Failing to install SABYenc in Debian Jessie

Post by jcfp »

Shouldn't directly make use of an ubuntu ppa on debian for anything with compiled code in it, even if the arch were supported. The safe way for that kind of situation is rebuilding the source package on the debian system. The debian wiki has a howto; sabyenc releases from the ppa should build without modification on any platform and architecture.
a4ex wrote: July 9th, 2017, 1:32 pmunable to execute 'arm-linux-gnueabi-gcc': No such file or directory
From the logs posted above, it appears there's no compiler installed. Try installing the "build-essential" metapackage. Crossbuilding isn't what you want if you're compiling on the very system you also want to install the result on.
a4ex
Newbie
Newbie
Posts: 2
Joined: July 9th, 2017, 1:17 pm

Re: Failing to install SABYenc in Debian Jessie

Post by a4ex »

Hello,

Installing build-essential did the trick!!!

After that i installed SABYenc without any problems.

Thank you for the support.

-a4ex
Vivien03
Newbie
Newbie
Posts: 1
Joined: October 20th, 2017, 6:40 am

Re: Failing to install SABYenc in Debian Jessie

Post by Vivien03 »

I have the same problem, have you found a solution?
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Failing to install SABYenc in Debian Jessie

Post by sander »

Vivien03 wrote: October 20th, 2017, 6:43 am I have the same problem, have you found a solution?
Yes, he/she has: viewtopic.php?p=113869#p112617
beaudett
Newbie
Newbie
Posts: 6
Joined: August 23rd, 2018, 7:48 am

Re: Failing to install SABYenc in Debian Jessie

Post by beaudett »

I can't seem to install either sabyenc or par2-tbb on a raspberry pi 3. Am i missing something?

root@raspberrypi:/etc/python# apt-get install sabyenc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sabyenc
root@raspberrypi:/etc/python# apt-get install par2-tbb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package par2-tbb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'par2-tbb' has no installation candidate
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Failing to install SABYenc in Debian Jessie

Post by safihre »

par2-tbb isn't available for pi 3.
You should use par2-mt, but also make sure you added the apt-sources correctly.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
beaudett
Newbie
Newbie
Posts: 6
Joined: August 23rd, 2018, 7:48 am

Re: Failing to install SABYenc in Debian Jessie

Post by beaudett »

Still having an issue.

root@raspberrypi:/home/pi# apt-get install par2-tbb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package par2-tbb is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'par2-tbb' has no installation candidate

root@raspberrypi:/home/pi# cat /etc/apt/sources.list
...raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
... jcfp/ppa/ubuntu trusty main
...jcfp/sab-addons/ubuntu trusty main
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Failing to install SABYenc in Debian Jessie

Post by safihre »

I just said that par2-tbb isn't available for pi3...
Please use par2-mt
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
beaudett
Newbie
Newbie
Posts: 6
Joined: August 23rd, 2018, 7:48 am

Re: Failing to install SABYenc in Debian Jessie

Post by beaudett »

Still failing:

root@raspberrypi:/home/pi# apt-get install par2-mt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package par2-mt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'par2-mt' has no installation candidate
Post Reply