Das habe ich schon verstanden, daher die drei Punkte.Doch lib/python2.7/ gibt es aber das alembic in site-packages fehlt.
Alembic sollte nach
Code: Alles auswählen
$ source bin/activate
(solarpi) $ pip install -r solarpi/requirements/dev.txt
Das habe ich schon verstanden, daher die drei Punkte.Doch lib/python2.7/ gibt es aber das alembic in site-packages fehlt.
Code: Alles auswählen
$ source bin/activate
(solarpi) $ pip install -r solarpi/requirements/dev.txt
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 `('
Code: Alles auswählen
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-SQLAlchemy-2.1.tar.gz (95kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 102kB 1.1MB/s
-bash: ████████████████████████████████: Kommando nicht gefunden.
-bash: 100%: Kommando nicht gefunden.
-bash: 102kB: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting SQLAlchemy==1.0.13 (from -r solarpi/requirements/prod.txt (line 12))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading SQLAlchemy-1.0.13.tar.gz (4.8MB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 4.8MB 52kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 4.8MB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-Migrate==1.8.0 (from -r solarpi/requirements/prod.txt (line 15))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-Migrate-1.8.0.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-WTF==0.12 (from -r solarpi/requirements/prod.txt (line 18))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask_WTF-0.12-py2-none-any.whl
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting WTForms==2.1 (from -r solarpi/requirements/prod.txt (line 19))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading WTForms-2.1.zip (553kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 563kB 379kB/s
-bash: ████████████████████████████████: Kommando nicht gefunden.
-bash: 100%: Kommando nicht gefunden.
-bash: 563kB: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting gunicorn>=19.5 (from -r solarpi/requirements/prod.txt (line 22))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 122kB 877kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 122kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Requirement already satisfied (use --upgrade to upgrade): wsgiref>=0.1.2 in /usr/lib/python2.7 (from -r solarpi/requirements/prod.txt (line 23))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-Assets==0.11 (from -r solarpi/requirements/prod.txt (line 26))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-Assets-0.11.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting cssmin>=0.2.0 (from -r solarpi/requirements/prod.txt (line 27))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading cssmin-0.2.0.tar.gz-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting jsmin>=2.2.1 (from -r solarpi/requirements/prod.txt (line 28))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading jsmin-2.2.1.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-Login==0.2.11 (from -r solarpi/requirements/prod.txt (line 31))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-Login-0.2.11.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-Bcrypt==0.7.1 (from -r solarpi/requirements/prod.txt (line 32))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-Bcrypt-0.7.1.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-Cache>=0.13.1 (from -r solarpi/requirements/prod.txt (line 35))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-Cache-0.13.1.tar.gz (45kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 51kB 1.4MB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 51kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Pysolar>=0.7 (from -r solarpi/requirements/prod.txt (line 38))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading pysolar-0.7.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting pytz>=2016.4 (from -r solarpi/requirements/prod.txt (line 41))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading pytz-2016.4-py2.py3-none-any.whl (480kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 481kB 435kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 481kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting python-dateutil>=2.5.3 (from -r solarpi/requirements/prod.txt (line 43))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 204kB 728kB/s
-bash: ████████████████████████████████: Kommando nicht gefunden.
-bash: 100%: Kommando nicht gefunden.
-bash: 204kB: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting alembic>=0.6 (from Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading alembic-0.8.6.tar.gz (961kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 962kB 214kB/s
5-bash: 100%: Kommando nicht gefunden.
-bash: 962kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting Flask-Script>=0.6 (from Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Flask-Script-2.0.5.tar.gz (42kB)
p-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 51kB 2.0MB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 51kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting webassets>=0.11 (from Flask-Assets==0.11->-r solarpi/requirements/prod.txt (line 26))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading webassets-0.11.1.tar.gz (171kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 174kB 893kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 174kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting bcrypt (from Flask-Bcrypt==0.7.1->-r solarpi/requirements/prod.txt (line 32))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading bcrypt-3.1.0.tar.gz (40kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 40kB 1.3MB/s
-bash: ████████████████████████████████: Kommando nicht gefunden.
-bash: 100%: Kommando nicht gefunden.
-bash: 40kB: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting six>=1.5 (from python-dateutil>=2.5.3->-r solarpi/requirements/prod.txt (line 43))
-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 $ Collecting Mako (from alembic>=0.6->Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading Mako-1.0.4.tar.gz (574kB)
u-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 583kB 361kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 583kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting python-editor>=0.3 (from alembic>=0.6->Flask-Migrate==1.8.0->-r solarpi/requirements/prod.txt (line 15))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading python-editor-1.0.1.tar.gz
-bash: Downloading: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting cffi>=1.1 (from bcrypt->Flask-Bcrypt==0.7.1->-r solarpi/requirements/prod.txt (line 32))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading cffi-1.7.0.tar.gz (400kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 409kB 77kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 409kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Collecting pycparser (from cffi>=1.1->bcrypt->Flask-Bcrypt==0.7.1->-r solarpi/requirements/prod.txt (line 32))
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Downloading pycparser-2.14.tar.gz (223kB)
-bash: Syntaxfehler beim unerwarteten Wort `('
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 100% |████████████████████████████████| 225kB 693kB/s
-bash: 100%: Kommando nicht gefunden.
-bash: 225kB: Kommando nicht gefunden.
-bash: ████████████████████████████████: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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
-bash: Building: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/b6/09/65/5fcf16f74f334a215447c26769e291c41883862fe0dc7c1430
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for MarkupSafe ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/a3/fa/dc/0198eed9ad95489b8a4f45d14dd5d2aee3f8984e46862c5748
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for itsdangerous ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/fc/a8/66/24d655233c757e178d45dea2de22a04c6d92766abfb741129a
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-SQLAlchemy ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/cf/9f/1b/390c152e645c6e300fda9ed9c678c6e22717a3020fd02acb4d
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for SQLAlchemy ... done
i-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/2c/f6/27/f2a961a1c2f8e148a566c23a3bf795f81c407309da3c691fb0
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-Migrate ... done
t-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/8d/8a/fe/7095af905ec6c4185e08b70064566231766c9e58627f9685e3
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for WTForms ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/36/35/f3/7452cd24daeeaa5ec5b2ea13755316abc94e4e7702de29ba94
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-Assets ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/50/0a/f8/e12e4a824cef1a693df6eb38fc06e82defbe505900e4ea30b6
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for cssmin ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/c3/79/88/647f59be446af4e9867362ca6e961cc7f218bd793fbdc351a6
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for jsmin ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/72/4d/6a/49f470b6d77e2ec515e11d2ca137be0d19bff713f534b1cfc3
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-Login ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/4b/58/2e/fbba562e845fb419f6157a504055275a4d1783a22ebe3124e8
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-Bcrypt ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/d5/e7/b5/396663b38fada7b0b7d9698cbdfb356ed7d4718c59855b1a52
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-Cache ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/d3/ea/07/db4bcd93163f4ac63974a7ce7aa15df9d45cdc9864c8232f9c
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Pysolar ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/c3/d7/df/bbf3a1022c710ccebc3925ef77536d8b88f6640d7891117338
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for alembic ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/dd/ea/32/e389366a831f50505aef2220cbb08206f5354581061539ec5a
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for Flask-Script ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/e2/ea/d8/8d114e46cef819f7d9879504a7f9cb2a88a479af2858223d9f
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for webassets ... done
l-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/39/c0/3f/16b6f18694ae65c67da857448e3542188ee3dd952ce214af58
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for bcrypt ... error
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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:
-bash: Complete: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Perhaps you should add the directory containing `libffi.pc'
F> 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
b> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
-bash: command substitution: Zeile 3: Dateiende beim Suchen nach `'' erreicht.
-bash: command substitution: Zeile 6: Syntax Fehler: Unerwartetes Dateiende.
-bash: Perhaps: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ to the PKG_CONFIG_PATH environment variable
b-bash: to: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ No package 'libffi' found
-bash: No: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
d> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
i> to the PKG_CONFIG_PATH environment variable
a> No package 'libffi' found
> c/_cffi_backend.c:2:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
> #include <Python.h>
> ^
> compilation terminated.
p> Traceback (most recent call last):
1> 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'
-bash: command substitution: Zeile 3: Dateiende beim Suchen nach `'' erreicht.
-bash: command substitution: Zeile 6: Syntax Fehler: Unerwartetes Dateiende.
-bash: Perhaps: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ to the PKG_CONFIG_PATH environment variable
-bash: to: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ No package 'libffi' found
-bash: No: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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
t> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
-bash: command substitution: Zeile 3: Dateiende beim Suchen nach `'' erreicht.
-bash: command substitution: Zeile 6: Syntax Fehler: Unerwartetes Dateiende.
-bash: Perhaps: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ to the PKG_CONFIG_PATH environment variable
o-bash: to: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ No package 'libffi' found
-bash: No: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Perhaps you should add the directory containing `libffi.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'libffi' found
t> c/_cffi_backend.c:2:20: fatal error: Python.h: Datei oder Verzeichnis nichtgefunden
> #include <Python.h>
P> ^
> 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)
y> 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,
n> File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/pkg_resourcs/__init__.py", line 826, in resolve
f> 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'
l> to the PKG_CONFIG_PATH environment variable
p> No package 'libffi' found
> Package libffi was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libffi.pc'
h-bash: command substitution: Zeile 45: Dateiende beim Suchen nach `'' erreicht.
-bash: command substitution: Zeile 48: Syntax Fehler: Unerwartetes Dateiende.
-bash: Perhaps: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ to the PKG_CONFIG_PATH environment variable
-bash: to: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ No package 'libffi' found
-bash: No: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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'
-bash: command substitution: Zeile 3: Dateiende beim Suchen nach `'' erreicht.
-bash: command substitution: Zeile 6: Syntax Fehler: Unerwartetes Dateiende.
-bash: Perhaps: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ to the PKG_CONFIG_PATH environment variable
-bash: to: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ No package 'libffi' found
-bash: No: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ running bdist_wheel
-bash: running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ running build
-bash: running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ running build_py
-bash: running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ creating build
-bash: creating: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ creating build/lib.linux-armv7l-2.7
-bash: creating: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ creating build/lib.linux-armv7l-2.7/cffi
-bash: creating: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
-bash: build/lib.linux-armv7l-2.7/cffi: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ running build_ext
-bash: running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ building '_cffi_backend' extension
-bash: building: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ creating build/temp.linux-armv7l-2.7
-bash: creating: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ creating build/temp.linux-armv7l-2.7/c
-bash: creating: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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
arm-linux-gnueabihf-gcc: error: c/_cffi_backend.c: Datei oder Verzeichnis nicht gefunden
arm-linux-gnueabihf-gcc: fatal error: no input files
compilation terminated.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ c/_cffi_backend.c:2:20: fatal error: Python.h: Datei oder Verzeichnis nicht gefunden
-bash: c/_cffi_backend.c:2:20:: Datei oder Verzeichnis nicht gefunden
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ #include <Python.h>
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ ^
-bash: ^: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ compilation terminated.
-bash: compilation: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
-bash: error:: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ ----------------------------------------
-bash: ----------------------------------------: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Failed building wheel for cffi
-bash: Failed: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py clean for cffi-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py bdist_wheel for pycparser ... done
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Stored in directory: /home/pi/.cache/pip/wheels/9b/f4/2e/d03e949a551719a1ffcb659f2c63d8444f4df12e994ce52112
-bash: Stored: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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
-bash: Successfully: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Failed to build bcrypt cffi
-bash: Failed: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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
-bash: Installing: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Running setup.py install for cffi ... error
-bash: Running: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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:
-bash: Complete: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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'
-bash: command substitution: Zeile 3: Dateiende beim Suchen nach `'' erreicht.
-bash: command substitution: Zeile 6: Syntax Fehler: Unerwartetes Dateiende.
-bash: Perhaps: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ to the PKG_CONFIG_PATH environment variable
-bash: to: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ No package 'libffi' found
-bash: No: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ Package libffi was not found in the pkg-config search path.
-bash: Package: Kommando nicht gefunden.
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ 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 $ cp lib/python2.7/site-packages/al embic/templates/generic/env.py solarpi/migrations/
(solarpi_venv) pi@raspberrypi:~/solarpi_venv $ cd solarpi/
(solarpi_venv) pi@raspberrypi:~/solarpi_venv/solarpi $ SOLARPI_SECRET='test' pyt hon manage.py db upgrade
Traceback (most recent call last):
File "manage.py", line 9, in <module>
from solarpi.app import create_app
File "/home/pi/solarpi_venv/solarpi/solarpi/app.py", line 7, in <module>
from solarpi.extensions import (
File "/home/pi/solarpi_venv/solarpi/solarpi/extensions.py", line 6, in <module >
from flask.ext.bcrypt import Bcrypt
File "/home/pi/solarpi_venv/local/lib/python2.7/site-packages/flask/exthook.py ", line 87, in load_module
raise ImportError('No module named %s' % fullname)
ImportError: No module named flask.ext.bcrypt
Ähm... du copy-pastest das Beispiel natürlich nicht einfach in dein Terminal, sondern gibst, wie sonst auch, den Kram nach dem $ ein; (solarpi_venv) wird als Präfix vorangestellt gestellt, wenn die virtuelle Umgebung aktiviert ist.(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.
…
Code: Alles auswählen
$ sqlite3 dev.db
SQLite version 3.13.0 2016-05-18 10:57:30
Enter ".help" for usage hints.
sqlite> .tables
alembic_version electricity_data pvdata weather_data
From what i can tell, this part of the advice does not apply to the current version of solarpi. I gave the current version a quick try, but i'm still under the impression that it would take some effort to get it working. E.g. there are some dependencies missing in the requirements.txt (flask-script, flask_debugtoolbar, raven) and the 'ModuleNotFoundError' is caused by mixing python3 and python2 ('ModuleNotFoundError' is a python 3.6+ thing, but some of the other dependencies require python 2.7). It's certainly possible to fix those issues but it will require some research and work (esp. since the author doesn't seem to be very responsive.)amanimasila hat geschrieben: ↑Freitag 2. November 2018, 19:45 Before the last step, you must add the following in [alembic] to migrations / alembic.ini
: sqlalchemy.url = sqlite: ///dev.db
(development mode )
hello, i really don't understand this point ,can you please beak it