Page 1 of 1

Failing to install SABYenc in Debian Jessie

Posted: July 9th, 2017, 1:32 pm
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

Re: Failing to install SABYenc in Debian Jessie

Posted: July 9th, 2017, 2:00 pm
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. :)

Re: Failing to install SABYenc in Debian Jessie

Posted: July 9th, 2017, 2:21 pm
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.

Re: Failing to install SABYenc in Debian Jessie

Posted: July 9th, 2017, 4:01 pm
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!

Re: Failing to install SABYenc in Debian Jessie

Posted: July 9th, 2017, 4:14 pm
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.

Re: Failing to install SABYenc in Debian Jessie

Posted: July 9th, 2017, 4:45 pm
by a4ex
Hello,

Installing build-essential did the trick!!!

After that i installed SABYenc without any problems.

Thank you for the support.

-a4ex

Re: Failing to install SABYenc in Debian Jessie

Posted: October 20th, 2017, 6:43 am
by Vivien03
I have the same problem, have you found a solution?

Re: Failing to install SABYenc in Debian Jessie

Posted: October 20th, 2017, 6:58 am
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

Re: Failing to install SABYenc in Debian Jessie

Posted: August 23rd, 2018, 7:55 am
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

Re: Failing to install SABYenc in Debian Jessie

Posted: August 23rd, 2018, 8:19 am
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.

Re: Failing to install SABYenc in Debian Jessie

Posted: August 23rd, 2018, 1:02 pm
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

Re: Failing to install SABYenc in Debian Jessie

Posted: August 23rd, 2018, 2:01 pm
by safihre
I just said that par2-tbb isn't available for pi3...
Please use par2-mt

Re: Failing to install SABYenc in Debian Jessie

Posted: August 23rd, 2018, 3:19 pm
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