I'm trying (yet again) to get yEnc working in Sab but I'm in need of some assistance.
Sab is currently running on my NAS:
- Version: develop [unknown]
- Config File: //share/MD0_DATA/.qpkg/SABnzbdplus/Config/sabnzbd.ini
- Parameters: SABnzbd.py -f //share/MD0_DATA/.qpkg/SABnzbdplus/Config/sabnzbd.ini --browser 0 --daemon --pid /tmp
- Python Version: 2.7.11 (default, Aug 18 2016, 12:54:38) [GCC 5.4.0] [UTF-8]
- OpenSSL: OpenSSL 1.0.2h 3 May 2016 [TLS v1.2, TLS v1.1, TLS v1]
- yEnc: Not available
Code: Select all
opkg install python-pip
Code: Select all
pip install http://www.golug.it/pub/yenc/yenc-0.4.0.tar.gz
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 57kB/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-A_lRJO-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /opt/tmp/pip-tzA6xo-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
In file included from src/_yenc.c:21:0:
src/_yenc.h:21:20: fatal error: Python.h: No such file or directory
compilation terminated.
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-A_lRJO-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /opt/tmp/pip-tzA6xo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /opt/tmp/pip-A_lRJO-build/