Code: Alles auswählen
pi@raspberrypi:~/solarpi_venv $ sudo pip install virtualenvwrapper
Downloading/unpacking virtualenvwrapper
Downloading virtualenvwrapper-4.7.1-py2.py3-none-any.whl
Downloading/unpacking stevedore (from virtualenvwrapper)
Downloading stevedore-1.15.0-py2.py3-none-any.whl
Downloading/unpacking virtualenv-clone (from virtualenvwrapper)
Downloading virtualenv-clone-0.2.6.tar.gz
Running setup.py (path:/tmp/pip-build-mhWZFq/virtualenv-clone/setup.py) egg_info for package virtualenv-clone
Downloading/unpacking virtualenv (from virtualenvwrapper)
Downloading virtualenv-15.0.2-py2.py3-none-any.whl (1.8MB): 1.8MB downloaded
Downloading/unpacking six>=1.9.0 (from stevedore->virtualenvwrapper)
Downloading six-1.10.0-py2.py3-none-any.whl
Downloading/unpacking pbr>=1.6 (from stevedore->virtualenvwrapper)
Downloading pbr-1.10.0-py2.py3-none-any.whl (96kB): 96kB downloaded
Installing collected packages: virtualenvwrapper, stevedore, virtualenv-clone, virtualenv, six, pbr
Running setup.py install for virtualenv-clone
Installing virtualenv-clone script to /usr/local/bin
Found existing installation: six 1.8.0
Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed virtualenvwrapper stevedore virtualenv-clone virtualenv six pbr
Cleaning up...
pi@raspberrypi:~/solarpi_venv $ virtualenv2 .
-bash: virtualenv2: Kommando nicht gefunden.
pi@raspberrypi:~/solarpi_venv $ virtualenv .
New python executable in /home/pi/solarpi_venv/bin/python
Installing setuptools, pip, wheel...done.
pi@raspberrypi:~/solarpi_venv $ git clone https://github.com/Tafkas/solarpi.git
Klone nach 'solarpi'...
remote: Counting objects: 1743, done.
remote: Total 1743 (delta 0), reused 0 (delta 0), pack-reused 1743
Empfange Objekte: 100% (1743/1743), 1.31 MiB | 778.00 KiB/s, Fertig.
Löse Unterschiede auf: 100% (1058/1058), Fertig.
Prüfe Konnektivität... Fertig.
pi@raspberrypi:~/solarpi_venv $ source bin/activate
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pip install -r solarpi/requirements/prod.txt
Collecting Flask==0.10.1 (from -r solarpi/requirements/prod.txt (line 4))
Downloading Flask-0.10.1.tar.gz (544kB)
100% |████████████████████████████████| 552kB 295kB/s
Collecting MarkupSafe==0.23 (from -r solarpi/requirements/prod.txt (line 5))
Downloading MarkupSafe-0.23.tar.gz
Collecting Werkzeug==0.11.9 (from -r solarpi/requirements/prod.txt (line 6))
Downloading Werkzeug-0.11.9-py2.py3-none-any.whl (306kB)
100% |████████████████████████████████| 307kB 562kB/s
Collecting Jinja2==2.8 (from -r solarpi/requirements/prod.txt (line 7))
Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
100% |████████████████████████████████| 266kB 751kB/s
Collecting itsdangerous==0.24 (from -r solarpi/requirements/prod.txt (line 8))
Downloading itsdangerous-0.24.tar.gz (46kB)
100% |████████████████████████████████| 51kB 1.7MB/s
Collecting Flask-SQLAlchemy==2.1 (from -r solarpi/requirements/prod.txt (line 11))
Downloading Flask-SQLAlchemy-2.1.tar.gz (95kB)
100% |████████████████████████████████| 102kB 1.1MB/s
Collecting SQLAlchemy==1.0.13 (from -r solarpi/requirements/prod.txt (line 12))
Downloading SQLAlchemy-1.0.13.tar.gz (4.8MB)
100% |████████████████████████████████| 4.8MB 52kB/s
Collecting Flask-Migrate==1.8.0 (from -r solarpi/requirements/prod.txt (line 15))
Downloading Flask-Migrate-1.8.0.tar.gz
Collecting Flask-WTF==0.12 (from -r solarpi/requirements/prod.txt (line 18))
Downloading Flask_WTF-0.12-py2-none-any.whl
Collecting WTForms==2.1 (from -r solarpi/requirements/prod.txt (line 19))
Downloading WTForms-2.1.zip (553kB)
100% |████████████████████████████████| 563kB 379kB/s
Collecting gunicorn>=19.5 (from -r solarpi/requirements/prod.txt (line 22))
Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
100% |████████████████████████████████| 122kB 877kB/s
Requirement already satisfied (use --upgrade to upgrade): wsgiref>=0.1.2 in /usr/lib/python2.7 (from -r solarpi/requirements/prod.txt (line 23))
Collecting Flask-Assets==0.11 (from -r solarpi/requirements/prod.txt (line 26))
Downloading Flask-Assets-0.11.tar.gz
Collecting cssmin>=0.2.0 (from -r solarpi/requirements/prod.txt (line 27))
Downloading cssmin-0.2.0.tar.gz
Collecting jsmin>=2.2.1 (from -r solarpi/requirements/prod.txt (line 28))
Downloading jsmin-2.2.1.tar.gz
Collecting Flask-Login==0.2.11 (from -r solarpi/requirements/prod.txt (line 31))
Downloading Flask-Login-0.2.11.tar.gz
Collecting Flask-Bcrypt==0.7.1 (from -r solarpi/requirements/prod.txt (line 32))
Downloading Flask-Bcrypt-0.7.1.tar.gz
Collecting Flask-Cache>=0.13.1 (from -r solarpi/requirements/prod.txt (line 35))
Downloading Flask-Cache-0.13.1.tar.gz (45kB)
100% |████████████████████████████████| 51kB 1.4MB/s
Collecting Pysolar>=0.7 (from -r solarpi/requirements/prod.txt (line 38))
Downloading pysolar-0.7.tar.gz
Collecting pytz>=2016.4 (from -r solarpi/requirements/prod.txt (line 41))
Downloading pytz-2016.4-py2.py3-none-any.whl (480kB)
100% |████████████████████████████████| 481kB 435kB/s
Collecting python-dateutil>=2.5.3 (from -r solarpi/requirements/prod.txt (line 43))
Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
100% |████████████████████████████████| 204kB 728kB/s
Collecting alembic>=0.6 (from Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
Downloading alembic-0.8.6.tar.gz (961kB)
100% |████████████████████████████████| 962kB 214kB/s
Collecting Flask-Script>=0.6 (from Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
Downloading Flask-Script-2.0.5.tar.gz (42kB)
100% |████████████████████████████████| 51kB 2.0MB/s
Collecting webassets>=0.11 (from Flask-Assets==0.11->-r solarpi/requirements/prod.txt (line 26))
Downloading webassets-0.11.1.tar.gz (171kB)
100% |████████████████████████████████| 174kB 893kB/s
Collecting bcrypt (from Flask-Bcrypt==0.7.1->-r solarpi/requirements/prod.txt (line 32))
Downloading bcrypt-3.1.0.tar.gz (40kB)
100% |████████████████████████████████| 40kB 1.3MB/s
Collecting six>=1.5 (from python-dateutil>=2.5.3->-r solarpi/requirements/prod.txt (line 43))
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting Mako (from alembic>=0.6->Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
Downloading Mako-1.0.4.tar.gz (574kB)
100% |████████████████████████████████| 583kB 361kB/s
Collecting python-editor>=0.3 (from alembic>=0.6->Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
Downloading python-editor-1.0.1.tar.gz
Collecting cffi>=1.1 (from bcrypt->Flask-Bcrypt==0.7.1->-r solarpi/requirements/prod.txt (line 32))
Downloading cffi-1.7.0.tar.gz (400kB)
100% |████████████████████████████████| 409kB 77kB/s
Collecting pycparser (from cffi>=1.1->bcrypt->Flask-Bcrypt==0.7.1->-r solarpi/requirements/prod.txt (line 32))
Downloading pycparser-2.14.tar.gz (223kB)
100% |████████████████████████████████| 225kB 693kB/s
Building wheels for collected packages: Flask, MarkupSafe, itsdangerous, Flask-SQLAlchemy, SQLAlchemy, Flask-Migrate, WTForms, Flask-Assets, cssmin, jsmin, Flask-Login, Flask-Bcrypt, Flask-Cache, Pysolar, alembic, Flask-Script, webassets, bcrypt, Mako, python-editor, cffi, pycparser
Running setup.py bdist_wheel for Flask ... done
Stored in directory: /home/pi/.cache/pip/wheels/b6/09/65/5fcf16f74f334a215447c26769e291c41883862fe0dc7c1430
Running setup.py bdist_wheel for MarkupSafe ... done
Stored in directory: /home/pi/.cache/pip/wheels/a3/fa/dc/0198eed9ad95489b8a4f45d14dd5d2aee3f8984e46862c5748
Running setup.py bdist_wheel for itsdangerous ... done
Stored in directory: /home/pi/.cache/pip/wheels/fc/a8/66/24d655233c757e178d45dea2de22a04c6d92766abfb741129a
Running setup.py bdist_wheel for Flask-SQLAlchemy ... done
Stored in directory: /home/pi/.cache/pip/wheels/cf/9f/1b/390c152e645c6e300fda9ed9c678c6e22717a3020fd02acb4d
Running setup.py bdist_wheel for SQLAlchemy ... done
Stored in directory: /home/pi/.cache/pip/wheels/2c/f6/27/f2a961a1c2f8e148a566c23a3bf795f81c407309da3c691fb0
Running setup.py bdist_wheel for Flask-Migrate ... done
Stored in directory: /home/pi/.cache/pip/wheels/8d/8a/fe/7095af905ec6c4185e08b70064566231766c9e58627f9685e3
Running setup.py bdist_wheel for WTForms ... done
Stored in directory: /home/pi/.cache/pip/wheels/36/35/f3/7452cd24daeeaa5ec5b2ea13755316abc94e4e7702de29ba94
Running setup.py bdist_wheel for Flask-Assets ... done
Stored in directory: /home/pi/.cache/pip/wheels/50/0a/f8/e12e4a824cef1a693df6eb38fc06e82defbe505900e4ea30b6
Running setup.py bdist_wheel for cssmin ... done
Stored in directory: /home/pi/.cache/pip/wheels/c3/79/88/647f59be446af4e9867362ca6e961cc7f218bd793fbdc351a6
Running setup.py bdist_wheel for jsmin ... done
Stored in directory: /home/pi/.cache/pip/wheels/72/4d/6a/49f470b6d77e2ec515e11d2ca137be0d19bff713f534b1cfc3
Running setup.py bdist_wheel for Flask-Login ... done
Stored in directory: /home/pi/.cache/pip/wheels/4b/58/2e/fbba562e845fb419f6157a504055275a4d1783a22ebe3124e8
Running setup.py bdist_wheel for Flask-Bcrypt ... done
Stored in directory: /home/pi/.cache/pip/wheels/d5/e7/b5/396663b38fada7b0b7d9698cbdfb356ed7d4718c59855b1a52
Running setup.py bdist_wheel for Flask-Cache ... done
Stored in directory: /home/pi/.cache/pip/wheels/d3/ea/07/db4bcd93163f4ac63974a7ce7aa15df9d45cdc9864c8232f9c
Running setup.py bdist_wheel for Pysolar ... done
Stored in directory: /home/pi/.cache/pip/wheels/c3/d7/df/bbf3a1022c710ccebc3925ef77536d8b88f6640d7891117338
Running setup.py bdist_wheel for alembic ... done
Stored in directory: /home/pi/.cache/pip/wheels/dd/ea/32/e389366a831f50505aef2220cbb08206f5354581061539ec5a
Running setup.py bdist_wheel for Flask-Script ... done
Stored in directory: /home/pi/.cache/pip/wheels/e2/ea/d8/8d114e46cef819f7d9879504a7f9cb2a88a479af2858223d9f
Running setup.py bdist_wheel for webassets ... done
Stored in directory: /home/pi/.cache/pip/wheels/39/c0/3f/16b6f18694ae65c67da857448e3542188ee3dd952ce214af58
Running setup.py bdist_wheel for bcrypt ... error
Complete output from command /home/pi/solarpi_venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NnFixa/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpa8j1NKpip-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
No package 'libffi' found
c/_cffi_backend.c:2:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
#include <Python.h>
^
compilation terminated.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-NnFixa/bcrypt/setup.py", line 235, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1092, in best_match
return self.obtain(req, installer)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1104, in obtain
return installer(requirement)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 664, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 694, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 875, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1114, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1102, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for bcrypt
Running setup.py clean for bcrypt
Complete output from command /home/pi/solarpi_venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NnFixa/bcrypt/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'
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:2:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
#include <Python.h>
^
compilation terminated.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-NnFixa/bcrypt/setup.py", line 235, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 826, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1092, in best_match
return self.obtain(req, installer)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1104, in obtain
return installer(requirement)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 664, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 694, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 875, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1114, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1102, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed cleaning build dir for bcrypt
Running setup.py bdist_wheel for Mako ... done
Stored in directory: /home/pi/.cache/pip/wheels/2a/fa/9a/7030d96d3c51f433848e4cd67a353a411ba6deb5c14e150730
Running setup.py bdist_wheel for python-editor ... done
Stored in directory: /home/pi/.cache/pip/wheels/c2/49/ce/59657468e42b41eb86aa654650afdf5fe891822a0dc376eebe
Running setup.py bdist_wheel for cffi ... error
Complete output from command /home/pi/solarpi_venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NnFixa/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmptorczKpip-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
No package 'libffi' found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
#include <Python.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-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/9b/f4/2e/d03e949a551719a1ffcb659f2c63d8444f4df12e994ce52112
Successfully built Flask MarkupSafe itsdangerous Flask-SQLAlchemy SQLAlchemy Flask-Migrate WTForms Flask-Assets cssmin jsmin Flask-Login Flask-Bcrypt Flask-Cache Pysolar alembic Flask-Script webassets Mako python-editor pycparser
Failed to build bcrypt cffi
Installing collected packages: Werkzeug, MarkupSafe, Jinja2, itsdangerous, Flask, SQLAlchemy, Flask-SQLAlchemy, Mako, python-editor, alembic, Flask-Script, Flask-Migrate, WTForms, Flask-WTF, gunicorn, webassets, Flask-Assets, cssmin, jsmin, Flask-Login, pycparser, cffi, six, bcrypt, Flask-Bcrypt, Flask-Cache, Pysolar, pytz, python-dateutil
Running setup.py install for cffi ... error
Complete output from command /home/pi/solarpi_venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NnFixa/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-6wG7iQ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/solarpi_venv/include/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-armv7l-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:2:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
#include <Python.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/home/pi/solarpi_venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-NnFixa/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-6wG7iQ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/solarpi_venv/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-NnFixa/cffi/
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~ $ mkdir solarpi_venv
-bash: pi@raspberrypi:~: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~ $ cd solarpi_venv
-bash: pi@raspberrypi:~: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ virtualenv2 .
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ -bash: virtualenv2: Kommando nicht gefunden.
-bash: -bash:: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ virtualenv .
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ -bash: virtualenv: Kommando nicht gefunden.
-bash: -bash:: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ export WORKON_HOME=~/.virtualenvs
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ source /usr/bin/virtualenvwrapper.sh
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ -bash: /usr/bin/virtualenvwrapper.sh: Datei oder Verzeichnis nicht gefunden
-bash: -bash:: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ sudo pip install virtualenvwrapper
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading/unpacking virtualenvwrapper
-bash: Downloading/unpacking: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading virtualenvwrapper-4.7.1-py2.py3-none-any.whl
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading/unpacking stevedore (from virtualenvwrapper)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading stevedore-1.15.0-py2.py3-none-any.whl
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading/unpacking virtualenv-clone (from virtualenvwrapper)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading virtualenv-clone-0.2.6.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py (path:/tmp/pip-build-mhWZFq/virtualenv-clone/setup.py) egg_info for package virtualenv-clone
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading/unpacking virtualenv (from virtualenvwrapper)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading virtualenv-15.0.2-py2.py3-none-any.whl (1.8MB): 1.8MB downloaded
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading/unpacking six>=1.9.0 (from stevedore->virtualenvwrapper)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading six-1.10.0-py2.py3-none-any.whl
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading/unpacking pbr>=1.6 (from stevedore->virtualenvwrapper)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading pbr-1.10.0-py2.py3-none-any.whl (96kB): 96kB downloaded
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Installing collected packages: virtualenvwrapper, stevedore, virtualenv-clone, virtualenv, six, pbr
-bash: Installing: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py install for virtualenv-clone
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Installing virtualenv-clone script to /usr/local/bin
-bash: Installing: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Found existing installation: six 1.8.0
-bash: Found: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Not uninstalling six at /usr/lib/python2.7/dist-packages, owned by OS
-bash: Not: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Successfully installed virtualenvwrapper stevedore virtualenv-clone virtualenv six pbr
-bash: Successfully: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Cleaning up...
-bash: Cleaning: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ virtualenv2 .
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ -bash: virtualenv2: Kommando nicht gefunden.
-bash: -bash:: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ virtualenv .
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ New python executable in /home/pi/solarpi_venv/bin/python
-bash: New: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Installing setuptools, pip, wheel...done.
-bash: Installing: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ git clone https://github.com/Tafkas/solarpi.git
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Klone nach 'solarpi'...
-bash: Klone: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ remote: Counting objects: 1743, done.
-bash: remote:: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ remote: Total 1743 (delta 0), reused 0 (delta 0), pack-reused 1743
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Empfange Objekte: 100% (1743/1743), 1.31 MiB | 778.00 KiB/s, Fertig.
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Löse Unterschiede auf: 100% (1058/1058), Fertig.
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Prüfe Konnektivität... Fertig.
-bash: Prüfe: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pi@raspberrypi:~/solarpi_venv $ source bin/activate
-bash: pi@raspberrypi:~/solarpi_venv: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ (solarpi_venv) pi@raspberrypi:~/solarpi_venv $ pip install -r solarpi/requirements/prod.txt
-bash: Syntaxfehler beim unerwarteten Wort `pi@raspberrypi:~/solarpi_venv'
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask==0.10.1 (from -r solarpi/requirements/prod.txt (line 4))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-0.10.1.tar.gz (544kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 552kB 295kB/s
-bash: 552kB: Kommando nicht gefunden.
-bash: 100%: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting MarkupSafe==0.23 (from -r solarpi/requirements/prod.txt (line 5))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading MarkupSafe-0.23.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Werkzeug==0.11.9 (from -r solarpi/requirements/prod.txt (line 6))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Werkzeug-0.11.9-py2.py3-none-any.whl (306kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 307kB 562kB/s
-bash: ████████████████████████████████: Kommando nicht gefunden.
-bash: 100%: Kommando nicht gefunden.
-bash: 307kB: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Jinja2==2.8 (from -r solarpi/requirements/prod.txt (line 7))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 266kB 751kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 266kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting itsdangerous==0.24 (from -r solarpi/requirements/prod.txt (line 8))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading itsdangerous-0.24.tar.gz (46kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 51kB 1.7MB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 51kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-SQLAlchemy==2.1 (from -r solarpi/requirements/prod.txt (line 11))
-bash: Syntaxfehler beim unerwarteten Wort `('