crlibm.h no such file while installing pyinterval - python

I am trying to install pyinterval but running into this issue.I am trying to install this in my own virtual env. Also including the log below
Running setup.py install for pyinterval
Running command /home/jibin/Desktop/chef/env/bin/python -c "import setuptools, tokenize;__file__='/home/jibin/Desktop/chef/env/build/pyinterval/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hJmNF8-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/jibin/Desktop/chef/env/include/site/python2.7
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/interval
copying interval/__init__.py -> build/lib.linux-x86_64-2.7/interval
copying interval/imath.py -> build/lib.linux-x86_64-2.7/interval
copying interval/fpu.py -> build/lib.linux-x86_64-2.7/interval
copying ./LICENSE -> build/lib.linux-x86_64-2.7/interval
running build_ext
building 'crlibm' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/ext
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/crlibm/include -I/usr/include/python2.7 -c ext/crlibmmodule.c -o build/temp.linux-x86_64-2.7/ext/crlibmmodule.o
ext/crlibmmodule.c:7:20: fatal error: crlibm.h: No such file or directory
#include "crlibm.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /home/jibin/Desktop/chef/env/bin/python -c "import setuptools, tokenize;__file__='/home/jibin/Desktop/chef/env/build/pyinterval/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hJmNF8-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/jibin/Desktop/chef/env/include/site/python2.7:
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/interval
copying interval/__init__.py -> build/lib.linux-x86_64-2.7/interval
copying interval/imath.py -> build/lib.linux-x86_64-2.7/interval
copying interval/fpu.py -> build/lib.linux-x86_64-2.7/interval
copying ./LICENSE -> build/lib.linux-x86_64-2.7/interval
running build_ext
building 'crlibm' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/ext
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/crlibm/include -I/usr/include/python2.7 -c ext/crlibmmodule.c -o build/temp.linux-x86_64-2.7/ext/crlibmmodule.o
ext/crlibmmodule.c:7:20: fatal error: crlibm.h: No such file or directory
#include "crlibm.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
As you can see I was able to build crlibm.h but can't seem to be able to include it.

Related

I can't install with pip on Debian

I have errors almost everytime I use pip (the package installer of Python) and I really don't manage to figure out how to fix them.
Below are the errors while trying to install pyv8 :
$ pip3 install pyv8
Collecting pyv8
Downloading https://files.pythonhosted.org/packages/c6/fb/5c0512a373e3d0aad0b683f439e7bdd67f95a69e6473b76dc2cfdca2c43f/PyV8-0.5.zip
Building wheels for collected packages: pyv8
Running setup.py bdist_wheel for pyv8 ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmzf4xop/pyv8/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/pip-wheel-h9c9ol37 --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying PyV8.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_PyV8' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB -Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python3.7m -c src/Exception.cpp -o build/temp.linux-x86_64-3.7/src/Exception.o
In file included from src/Exception.cpp:1:
src/Exception.h:6:10: fatal error: v8.h: Aucun fichier ou dossier de ce type
#include <v8.h>
^~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pyv8
Running setup.py clean for pyv8
Failed to build pyv8
Installing collected packages: pyv8
Running setup.py install for pyv8 ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmzf4xop/pyv8/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-record-wig6t3n9/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
copying PyV8.py -> build/lib.linux-x86_64-3.7
running build_ext
building '_PyV8' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBOOST_PYTHON_STATIC_LIB -Ilib/python/inc -Ilib/boost/inc -Ilib/v8/inc -I/usr/include/python3.7m -c src/Exception.cpp -o build/temp.linux-x86_64-3.7/src/Exception.o
In file included from src/Exception.cpp:1:
src/Exception.h:6:10: fatal error: v8.h: Aucun fichier ou dossier de ce type
#include <v8.h>
^~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wmzf4xop/pyv8/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-record-wig6t3n9/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-wmzf4xop/pyv8/
Sorry if I can't give more precision

Installing py3exiv2 on macOS issues

I would like to calibrate a camera lens, to do this, I am following the instructions here. According to the instrucitons, I need the python3-exiv2 dependency from here.
When I try to run this:
pip3 install py3exiv2
I get this:
Collecting py3exiv2
Using cached https://files.pythonhosted.org/packages/39/0d/e3a63593c620c4a2999809aa011aa6f190553b20fd6904f7a11946dde722/py3exiv2-0.6.1.tar.gz
Building wheels for collected packages: py3exiv2
Building wheel for py3exiv2 (setup.py) ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-install-zeuz9z_9/py3exiv2/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 /private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-wheel-1l2_8rw6 --python-tag cp37:
find: /usr//sbin/authserver: Permission denied
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/preview.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/iptc.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/xmp.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/exif.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/utils.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
running build_ext
building 'libexiv2python' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/exiv2wrapper.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/exiv2wrapper.o -g
In file included from src/exiv2wrapper.cpp:27:
src/exiv2wrapper.hpp:35:10: fatal error: 'boost/python.hpp' file not found
#include "boost/python.hpp"
^~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Failed building wheel for py3exiv2
Running setup.py clean for py3exiv2
Failed to build py3exiv2
Installing collected packages: py3exiv2
Running setup.py install for py3exiv2 ... error
Complete output from command /usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-install-zeuz9z_9/py3exiv2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-record-mo9lifhv/install-record.txt --single-version-externally-managed --compile:
find: /usr//sbin/authserver: Permission denied
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/preview.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/iptc.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/metadata.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/xmp.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/exif.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
copying src/pyexiv2/utils.py -> build/lib.macosx-10.14-x86_64-3.7/pyexiv2
running build_ext
building 'libexiv2python' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/exiv2wrapper.cpp -o build/temp.macosx-10.14-x86_64-3.7/src/exiv2wrapper.o -g
In file included from src/exiv2wrapper.cpp:27:
src/exiv2wrapper.hpp:35:10: fatal error: 'boost/python.hpp' file not found
#include "boost/python.hpp"
^~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-install-zeuz9z_9/py3exiv2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-record-mo9lifhv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/mn/_vm4d7cx4gx2_l5hkjybzkfc0000gn/T/pip-install-zeuz9z_9/py3exiv2/
I do not know where to start with this output. Can anyone suggest what I can try at this point?
Running the following has not helped:
brew boost-python
The problem you are facing is because on MacOS new versions, the pip3 is not looking for the headers files in correct places. Check my answer here: https://answers.launchpad.net/py3exiv2/+question/700064
This is what fixed it for me:
To get around this problem do the following:
brew install boost-python3 gexiv2 pygobject3
After installing the dependencies, you'll face more errors. To get around those, set the corrext include and linker path and then install the module using pip.
export CPLUS_INCLUDE_PATH=/usr/local/Cellar/exiv2/0.27.5_1/include/:/usr/local/opt/libssh/include/:/usr/local/Cellar/boost/1.76.0/include/
export LDFLAGS="-L/usr/local/Cellar/boost-python3/1.76.0/lib -L/usr/local/Cellar/exiv2/0.27.5_1/lib"
pip install py3exiv2
or if you are using pipenv
CPLUS_INCLUDE_PATH=/usr/local/Cellar/exiv2/0.27.5_1/include/:/usr/local/opt/libssh/include/:/usr/local/Cellar/boost/1.76.0/include/ LDFLAGS="-L/usr/local/Cellar/boost-python3/1.76.0/lib -L/usr/local/Cellar/exiv2/0.27.5_1/lib" pipenv install

Zipline in Ubuntu - Install error [duplicate]

This question already has answers here:
setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 [closed]
(38 answers)
Closed 4 years ago.
So i am trying to install zipline, and i am getting an error i don't know how to handle. Firstly i run the following commands:
virtualenv -p python3.5 zipline
source /zipline/bin/activate
Then as the guide suggests
sudo apt-get install libatlas-base-dev python-dev gfortran pkg-config libfreetype6-dev
this installs with out a hitch, then
pip install numpy
pip install cython
pip install -U setuptools
then lastly
pip install zipline
This gives med the following (long) error message, even though i looks like it is the same error multiple times.
zipline/assets/_assets.c:4:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for zipline
Running setup.py clean for zipline
Running setup.py bdist_wheel for cyordereddict ... error
Complete output from command /home/bluehelmet/virtualenv/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6nfwm6vn/cyordereddict/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/pip-wheel-dsh6t2sb --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/cyordereddict
copying python3/cyordereddict/_version.py -> build/lib.linux-x86_64-3.5/cyordereddict
copying python3/cyordereddict/__init__.py -> build/lib.linux-x86_64-3.5/cyordereddict
creating build/lib.linux-x86_64-3.5/cyordereddict/benchmark
copying python3/cyordereddict/benchmark/magic_timeit.py -> build/lib.linux-x86_64-3.5/cyordereddict/benchmark
copying python3/cyordereddict/benchmark/benchmark.py -> build/lib.linux-x86_64-3.5/cyordereddict/benchmark
copying python3/cyordereddict/benchmark/__init__.py -> build/lib.linux-x86_64-3.5/cyordereddict/benchmark
creating build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/test_ordereddict.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/test_cyordereddict.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/_mapping_tests.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/__init__.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
running build_ext
building 'cyordereddict._cyordereddict' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/python3
creating build/temp.linux-x86_64-3.5/python3/cyordereddict
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-FZMKe6/python3.5-3.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/bluehelmet/virtualenv/zipline/include/python3.5m -c python3/cyordereddict/_cyordereddict.c -o build/temp.linux-x86_64-3.5/python3/cyordereddict/_cyordereddict.o
python3/cyordereddict/_cyordereddict.c:12:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cyordereddict
Running setup.py clean for cyordereddict
Running setup.py bdist_wheel for bottleneck ... error
Complete output from command /home/bluehelmet/virtualenv/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6nfwm6vn/bottleneck/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/pip-wheel-_x73ag17 --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/bottleneck
copying bottleneck/version.py -> build/lib.linux-x86_64-3.5/bottleneck
copying bottleneck/__init__.py -> build/lib.linux-x86_64-3.5/bottleneck
creating build/lib.linux-x86_64-3.5/bottleneck/slow
copying bottleneck/slow/nonreduce.py -> build/lib.linux-x86_64-3.5/bottleneck/slow
copying bottleneck/slow/reduce.py -> build/lib.linux-x86_64-3.5/bottleneck/slow
copying bottleneck/slow/move.py -> build/lib.linux-x86_64-3.5/bottleneck/slow
copying bottleneck/slow/__init__.py -> build/lib.linux-x86_64-3.5/bottleneck/slow
copying bottleneck/slow/nonreduce_axis.py -> build/lib.linux-x86_64-3.5/bottleneck/slow
creating build/lib.linux-x86_64-3.5/bottleneck/src
copying bottleneck/src/template.py -> build/lib.linux-x86_64-3.5/bottleneck/src
copying bottleneck/src/__init__.py -> build/lib.linux-x86_64-3.5/bottleneck/src
creating build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/nonreduce_axis_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/scalar_input_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/reduce_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/list_input_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/nonreduce_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/move_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/__init__.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/input_modifcation_test.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
copying bottleneck/tests/util.py -> build/lib.linux-x86_64-3.5/bottleneck/tests
creating build/lib.linux-x86_64-3.5/bottleneck/benchmark
copying bottleneck/benchmark/autotimeit.py -> build/lib.linux-x86_64-3.5/bottleneck/benchmark
copying bottleneck/benchmark/bench_detailed.py -> build/lib.linux-x86_64-3.5/bottleneck/benchmark
copying bottleneck/benchmark/bench.py -> build/lib.linux-x86_64-3.5/bottleneck/benchmark
copying bottleneck/benchmark/__init__.py -> build/lib.linux-x86_64-3.5/bottleneck/benchmark
copying bottleneck/LICENSE -> build/lib.linux-x86_64-3.5/bottleneck
running build_ext
building 'bottleneck.reduce' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/bottleneck
creating build/temp.linux-x86_64-3.5/bottleneck/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-FZMKe6/python3.5-3.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bluehelmet/virtualenv/zipline/lib/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -I/home/bluehelmet/virtualenv/zipline/include/python3.5m -c bottleneck/src/reduce.c -o build/temp.linux-x86_64-3.5/bottleneck/src/reduce.o -O2
In file included from bottleneck/src/reduce.c:1:0:
bottleneck/src/bottleneck.h:4:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for bottleneck
Running setup.py clean for bottleneck
Running setup.py bdist_wheel for bcolz ... error
Complete output from command /home/bluehelmet/virtualenv/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6nfwm6vn/bcolz/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/pip-wheel-uga7q655 --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/bcolz
copying bcolz/utils.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/ctable.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/py2help.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/version.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/toplevel.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/attrs.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/chunked_eval.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/py2help_tests.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/__init__.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/arrayprint.py -> build/lib.linux-x86_64-3.5/bcolz
copying bcolz/defaults.py -> build/lib.linux-x86_64-3.5/bcolz
creating build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/common.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/test_attrs.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/test_ndcarray.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/test_queries.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/test_carray_objects.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/__init__.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/test_carray.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/test_ctable.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/tests/all.py -> build/lib.linux-x86_64-3.5/bcolz/tests
copying bcolz/carray_ext.pxd -> build/lib.linux-x86_64-3.5/bcolz
running build_ext
skipping 'bcolz/carray_ext.c' Cython extension (up-to-date)
building 'bcolz.carray_ext' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/bcolz
creating build/temp.linux-x86_64-3.5/c-blosc
creating build/temp.linux-x86_64-3.5/c-blosc/blosc
creating build/temp.linux-x86_64-3.5/c-blosc/internal-complibs
creating build/temp.linux-x86_64-3.5/c-blosc/internal-complibs/lz4-r119
creating build/temp.linux-x86_64-3.5/c-blosc/internal-complibs/snappy-1.1.1
creating build/temp.linux-x86_64-3.5/c-blosc/internal-complibs/zlib-1.2.8
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-FZMKe6/python3.5-3.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_LZ4=1 -DHAVE_SNAPPY=1 -DHAVE_ZLIB=1 -Ibcolz -Ic-blosc/blosc -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/snappy-1.1.1 -Ic-blosc/internal-complibs/lz4-r119 -I/home/bluehelmet/virtualenv/zipline/lib/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -I/home/bluehelmet/virtualenv/zipline/include/python3.5m -c bcolz/carray_ext.c -o build/temp.linux-x86_64-3.5/bcolz/carray_ext.o
bcolz/carray_ext.c:4:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for bcolz
Running setup.py clean for bcolz
Running setup.py bdist_wheel for lru-dict ... error
Complete output from command /home/bluehelmet/virtualenv/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6nfwm6vn/lru-dict/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/pip-wheel-5ckeqmpz --python-tag cp35:
running bdist_wheel
running build
running build_ext
building 'lru' extension
creating build
creating build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-FZMKe6/python3.5-3.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/bluehelmet/virtualenv/zipline/include/python3.5m -c lru.c -o build/temp.linux-x86_64-3.5/lru.o
lru.c:1:10: fatal error: Python.h: No such file or directory
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build zipline cyordereddict bottleneck bcolz lru-dict
Installing collected packages: cyordereddict, bottleneck, contextlib2, decorator, networkx, numexpr, bcolz, click, toolz, multipledispatch, MarkupSafe, Mako, sqlalchemy, python-editor, alembic, sortedcontainers, intervaltree, lru-dict, empyrical, tables, zipline
Running setup.py install for cyordereddict ... error
Complete output from command /home/bluehelmet/virtualenv/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6nfwm6vn/cyordereddict/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-record-55p6137n/install-record.txt --single-version-externally-managed --compile --install-headers /home/bluehelmet/virtualenv/zipline/include/site/python3.5/cyordereddict:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/cyordereddict
copying python3/cyordereddict/_version.py -> build/lib.linux-x86_64-3.5/cyordereddict
copying python3/cyordereddict/__init__.py -> build/lib.linux-x86_64-3.5/cyordereddict
creating build/lib.linux-x86_64-3.5/cyordereddict/benchmark
copying python3/cyordereddict/benchmark/magic_timeit.py -> build/lib.linux-x86_64-3.5/cyordereddict/benchmark
copying python3/cyordereddict/benchmark/benchmark.py -> build/lib.linux-x86_64-3.5/cyordereddict/benchmark
copying python3/cyordereddict/benchmark/__init__.py -> build/lib.linux-x86_64-3.5/cyordereddict/benchmark
creating build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/test_ordereddict.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/test_cyordereddict.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/_mapping_tests.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
copying python3/cyordereddict/test/__init__.py -> build/lib.linux-x86_64-3.5/cyordereddict/test
running build_ext
building 'cyordereddict._cyordereddict' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/python3
creating build/temp.linux-x86_64-3.5/python3/cyordereddict
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-FZMKe6/python3.5-3.5.5=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/home/bluehelmet/virtualenv/zipline/include/python3.5m -c python3/cyordereddict/_cyordereddict.c -o build/temp.linux-x86_64-3.5/python3/cyordereddict/_cyordereddict.o
python3/cyordereddict/_cyordereddict.c:12:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/bluehelmet/virtualenv/zipline/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6nfwm6vn/cyordereddict/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-record-55p6137n/install-record.txt --single-version-externally-managed --compile --install-headers /home/bluehelmet/virtualenv/zipline/include/site/python3.5/cyordereddict" failed with error code 1 in /tmp/pip-install-6nfwm6vn/cyordereddict/
It looks like it have trouble building wheels. After googleing a bit, i couldn't find any solutions. What's your input?
So i found thanks to the comment that i needed to
sudo apt install python3.5-dev
This question is resolved.

Why is pip installation of pyOpenSSL 0.13 failing?

I'm on Mac OSX El-Capitan version 10.11.5.
When I try to install pyopenssl via pip, it fails with fatal error: 'openssl/ssl.h' file not found. See below.
Why is this file not there? And how can I get this pip install to work?
$ pip install pyopenssl==0.13.1
Collecting pyopenssl==0.13.1
Using cached pyOpenSSL-0.13.1.tar.gz
Building wheels for collected packages: pyopenssl
Running setup.py bdist_wheel for pyopenssl ... error
Complete output from command /Users/my_user/test-env/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/pip-build-NFALPZ/pyopenssl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/tmpUgU3gIpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.11-intel-2.7
creating build/lib.macosx-10.11-intel-2.7/OpenSSL
copying OpenSSL/__init__.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL
copying OpenSSL/tsafe.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL
copying OpenSSL/version.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL
creating build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/__init__.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/util.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/test_crypto.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/test_rand.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/test_ssl.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
running build_ext
building 'OpenSSL.crypto' extension
creating build/temp.macosx-10.11-intel-2.7
creating build/temp.macosx-10.11-intel-2.7/OpenSSL
creating build/temp.macosx-10.11-intel-2.7/OpenSSL/crypto
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.macosx-10.11-intel-2.7/OpenSSL/crypto/crypto.o
In file included from OpenSSL/crypto/crypto.c:16:
In file included from OpenSSL/crypto/crypto.h:30:
OpenSSL/crypto/x509.h:17:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Failed building wheel for pyopenssl
Running setup.py clean for pyopenssl
Failed to build pyopenssl
Installing collected packages: pyopenssl
Running setup.py install for pyopenssl ... error
Complete output from command /Users/my_user/test-env/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/pip-build-NFALPZ/pyopenssl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/pip-G7av9L-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/my_user/test-env/include/site/python2.7/pyopenssl:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.11-intel-2.7
creating build/lib.macosx-10.11-intel-2.7/OpenSSL
copying OpenSSL/__init__.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL
copying OpenSSL/tsafe.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL
copying OpenSSL/version.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL
creating build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/__init__.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/util.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/test_crypto.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/test_rand.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
copying OpenSSL/test/test_ssl.py -> build/lib.macosx-10.11-intel-2.7/OpenSSL/test
running build_ext
building 'OpenSSL.crypto' extension
creating build/temp.macosx-10.11-intel-2.7
creating build/temp.macosx-10.11-intel-2.7/OpenSSL
creating build/temp.macosx-10.11-intel-2.7/OpenSSL/crypto
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.macosx-10.11-intel-2.7/OpenSSL/crypto/crypto.o
In file included from OpenSSL/crypto/crypto.c:16:
In file included from OpenSSL/crypto/crypto.h:30:
OpenSSL/crypto/x509.h:17:10: fatal error: 'openssl/ssl.h' file not found
#include <openssl/ssl.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Command "/Users/my_user/test-env/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/pip-build-NFALPZ/pyopenssl/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/pip-G7av9L-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/my_user/test-env/include/site/python2.7/pyopenssl" failed with error code 1 in /private/var/folders/q7/zl0gz8xj7ps8wswmxkqsf9khwzyc1z/T/pip-build-NFALPZ/pyopenssl/

Error while installing thefuck module

Getting the following error after running
sudo pip install -U thefuck
Installing collected packages: psutil, decorator, six, pathlib, colorama, thefuck
Running setup.py install for psutil
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-G0ZOOD/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3F2Y2_-record/install-record.txt --single-version-externally-managed --compile:
cc: error trying to exec 'as': execvp: No such file or directory
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/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil
copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psutil
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPSUTIL_VERSION=330 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o
gcc: error trying to exec 'as': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-G0ZOOD/psutil/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3F2Y2_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-G0ZOOD/psutil
Also checked that I don't have /usr/bin/as file.
Tried installing binutils, doesn't work.

Categories