Re: solved - problem installing python-yenc
Posted: October 29th, 2016, 11:05 pm
I followed 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/
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.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.