miserable python crap
Posted: Mon Aug 21, 2017 4:37 pm
needed to generate executable in linux in python, which sort of requies to install package called bbfreeze, those python packages, confusing formats/installers (i.e. wheel, egg, sdisk, pip, setuptool) are seem to be in a miserable crappy state as ever, amateuristic!
http://docs.python-guide.org/en/latest/ ... r-code-ref
http://docs.python-guide.org/en/latest/ ... r-code-ref
Code: Select all
[root@localhost python.lab]# pip install bbfreeze
Collecting bbfreeze
Using cached bbfreeze-1.1.3-py27-none-any.whl
Collecting bbfreeze-loader<1.2.0,>=1.1.0 (from bbfreeze)
Using cached bbfreeze-loader-1.1.0.zip
Collecting altgraph==0.9 (from bbfreeze)
Building wheels for collected packages: bbfreeze-loader
Running setup.py bdist_wheel for bbfreeze-loader ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yNw3ym/bbfreeze-loader/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmppzeht1pip-wheel- --python-tag cp27:
------ bbfreeze-loader 1.1.0 configuration ------
PYTHONVERSION = python2.7
bits = 64
darwin = False
linker = gcc -Wl,-z,relro -Xlinker -export-dynamic
platform = Linux-3.10.0-327.el7.x86_64-x86_64-with-redhat-7.2-Maipo
static_library =
symbolic_functions_bug = False
sys.executable = /usr/bin/python
sys.maxunicode = 0x10ffff
sys.version = 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
unix = True
win32 = False
-------------------------------------------------
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/_bbfreeze_loader
copying _bbfreeze_loader/__init__.py -> build/lib.linux-x86_64-2.7/_bbfreeze_loader
running build_ext
building '_bbfreeze_loader/console' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/_bbfreeze_loader
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _bbfreeze_loader/console.c -o build/temp.linux-x86_64-2.7/_bbfreeze_loader/console.o
In file included from _bbfreeze_loader/console.c:2:0:
_bbfreeze_loader/loader_impl.h:3:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for bbfreeze-loader
Running setup.py clean for bbfreeze-loader
Failed to build bbfreeze-loader
Installing collected packages: bbfreeze-loader, altgraph, bbfreeze
Running setup.py install for bbfreeze-loader ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yNw3ym/bbfreeze-loader/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-KUxi7k-record/install-record.txt --single-version-externally-managed --compile:
------ bbfreeze-loader 1.1.0 configuration ------
PYTHONVERSION = python2.7
bits = 64
darwin = False
linker = gcc -Wl,-z,relro -Xlinker -export-dynamic
platform = Linux-3.10.0-327.el7.x86_64-x86_64-with-redhat-7.2-Maipo
static_library =
symbolic_functions_bug = False
sys.executable = /usr/bin/python
sys.maxunicode = 0x10ffff
sys.version = 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
unix = True
win32 = False
-------------------------------------------------
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/_bbfreeze_loader
copying _bbfreeze_loader/__init__.py -> build/lib.linux-x86_64-2.7/_bbfreeze_loader
running build_ext
building '_bbfreeze_loader/console' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/_bbfreeze_loader
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _bbfreeze_loader/console.c -o build/temp.linux-x86_64-2.7/_bbfreeze_loader/console.o
In file included from _bbfreeze_loader/console.c:2:0:
_bbfreeze_loader/loader_impl.h:3:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yNw3ym/bbfreeze-loader/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-KUxi7k-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yNw3ym/bbfreeze-loader/