(python27) pi@RaspberryPi-01 ~$ pip install mailbot
Requirement already satisfied (use --upgrade to upgrade): mailbot in /home/pi/.virtualenvs/python27/lib/python2.7/site-packages/mailbot-0.4.dev0-py2.7.egg
Collecting imapclient (from mailbot)
Downloading IMAPClient-1.0.1-py2.py3-none-any.whl (68kB)
100% |################################| 71kB 389kB/s
Collecting pyopenssl>=0.15.1 (from imapclient->mailbot)
Downloading pyOpenSSL-16.0.0-py2.py3-none-any.whl (45kB)
100% |################################| 51kB 412kB/s
Collecting backports.ssl>=0.0.9 (from imapclient->mailbot)
Downloading backports.ssl-0.0.9.tar.gz
Collecting six (from imapclient->mailbot)
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting mock==1.3.0 (from imapclient->mailbot)
Downloading mock-1.3.0-py2.py3-none-any.whl (56kB)
100% |################################| 61kB 392kB/s
Collecting cryptography>=1.3 (from pyopenssl>=0.15.1->imapclient->mailbot)
Downloading cryptography-1.3.1.tar.gz (383kB)
100% |################################| 389kB 123kB/s
Collecting funcsigs (from mock==1.3.0->imapclient->mailbot)
Downloading funcsigs-0.4-py2.py3-none-any.whl
Collecting pbr>=0.11 (from mock==1.3.0->imapclient->mailbot)
Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
100% |################################| 92kB 399kB/s
Collecting idna>=2.0 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Downloading idna-2.1-py2-none-any.whl (54kB)
100% |################################| 61kB 302kB/s
Collecting pyasn1>=0.1.8 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in /home/pi/.virtualenvs/python27/lib/python2.7/site-packages (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Collecting enum34 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Downloading enum34-1.1.2.tar.gz (46kB)
100% |################################| 51kB 408kB/s
Collecting ipaddress (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Downloading ipaddress-1.0.16-py27-none-any.whl
Collecting cffi>=1.4.1 (from cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Downloading cffi-1.5.2.tar.gz (388kB)
100% |################################| 389kB 135kB/s
Collecting pycparser (from cffi>=1.4.1->cryptography>=1.3->pyopenssl>=0.15.1->imapclient->mailbot)
Downloading pycparser-2.14.tar.gz (223kB)
100% |################################| 225kB 210kB/s
Building wheels for collected packages: backports.ssl, cryptography, enum34, cffi, pycparser
Running setup.py bdist_wheel for backports.ssl ... done
Stored in directory: /home/pi/.cache/pip/wheels/6d/5c/8f/9b900de0add0eb5018c2f67ff28430d6e3a6b936de1a600cc8
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpRfD8JTpip-wheel- --python-tag cp27:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable [191/1949]
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-jOeg1D/cryptography/setup.py", line 335, in <module>
**keywords_with_side_effects(sys.argv)
File "/opt/python2.7/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
return self.obtain(req, installer)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
return installer(requirement)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 640, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 850, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1066, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc' [127/1949]
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
compilation terminated.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-jOeg1D/cryptography/setup.py", line 335, in <module>
**keywords_with_side_effects(sys.argv)
File "/opt/python2.7/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 827, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1072, in best_match
return self.obtain(req, installer)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1084, in obtain
return installer(requirement)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 640, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 670, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 850, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/pi/.virtualenvs/python27/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1066, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
----------------------------------------
Failed cleaning build dir for cryptography
Running setup.py bdist_wheel for enum34 ... done
Stored in directory: /home/pi/.cache/pip/wheels/1a/4e/a5/bc564dd03d9abe991425c88d88aa8c5c99ad9a733551b69b4e
Running setup.py bdist_wheel for cffi ... error
Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file_
_).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp8pfsvmpip-wheel- --python-tag cp27:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable [63/1949]
No package 'libffi' found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv6l-2.7
creating build/lib.linux-armv6l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv6l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv6l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv6l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/c
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/opt/python2.7/include/python2.7 -c c/_cffi_backend.c
-o build/temp.linux-armv6l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Running setup.py bdist_wheel for pycparser ... done
Stored in directory: /home/pi/.cache/pip/wheels/c7/28/31/bac6d0b118c0bdcbf57f9219afdf2e624379c07efa6c769dbc
Successfully built backports.ssl enum34 pycparser
Failed to build cryptography cffi
Installing collected packages: idna, pyasn1, six, enum34, ipaddress, pycparser, cffi, cryptography, pyopenssl, backports.ssl, funcsigs, pbr, mock, imapclient
Running setup.py install for cffi ... error
Complete output from command /home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__fil
e__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-On0CM0-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/python27/i
nclude/site/python2.7/cffi:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.linux-armv6l-2.7
creating build/lib.linux-armv6l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv6l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv6l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv6l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv6l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/c
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/opt/python2.7/include/python2.7 -c c/_cffi_backend.
c -o build/temp.linux-armv6l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/pi/.virtualenvs/python27/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jOeg1D/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\
n', '\n'), __file__, 'exec'))" install --record /tmp/pip-On0CM0-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.virtualenvs/python27/include/site/python2.7/cf
fi" failed with error code 1 in /tmp/pip-build-jOeg1D/cffi/