Outage-Detector icon indicating copy to clipboard operation
Outage-Detector copied to clipboard

install error code

Open tonyfish opened this issue 3 years ago • 0 comments

all good to this point (ven) pi@raspberrypi:~/python $ pip install Outage_Detector

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting Outage_Detector Using cached https://files.pythonhosted.org/packages/9b/65/a20474877ef2c6beb23c382e7882902bd37fb8a9f7672d781497ba625c92/Outage_Detector-1.1.2-py3-none-any.whl Requirement already satisfied: certifi==2019.9.11 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2019.9.11) Requirement already satisfied: six==1.13.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (1.13.0) Requirement already satisfied: websocket-client==0.56.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (0.56.0) Requirement already satisfied: requests==2.22.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2.22.0) Collecting keyring==20.0.1 (from Outage_Detector) Using cached https://files.pythonhosted.org/packages/f1/07/0afb82d449d210a332d126978634470abdd0c754128a9ead8bbe78eb1b43/keyring-20.0.1-py2.py3-none-any.whl Requirement already satisfied: chardet==3.0.4 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (3.0.4) Requirement already satisfied: keyrings.alt==3.2.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (3.2.0) Requirement already satisfied: python-magic==0.4.15 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (0.4.15) Requirement already satisfied: pushbullet.py==0.11.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (0.11.0) Requirement already satisfied: urllib3==1.25.6 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (1.25.6) Requirement already satisfied: python-crontab==2.4.2 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2.4.2) Requirement already satisfied: idna==2.8 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2.8) Requirement already satisfied: importlib-metadata; python_version < "3.8" in ./ven/lib/python3.7/site-packages (from keyring==20.0.1->Outage_Detector) (1.7.0) Collecting secretstorage; sys_platform == "linux" (from keyring==20.0.1->Outage_Detector) Using cached https://files.pythonhosted.org/packages/c3/50/8a02cad020e949e6d7105f5f4530d41e3febcaa5b73f8f2148aacb3aeba5/SecretStorage-3.1.2-py3-none-any.whl Requirement already satisfied: python-dateutil in ./ven/lib/python3.7/site-packages (from python-crontab==2.4.2->Outage_Detector) (2.8.1) Requirement already satisfied: zipp>=0.5 in ./ven/lib/python3.7/site-packages (from importlib-metadata; python_version < "3.8"->keyring==20.0.1->Outage_Detector) (3.1.0) Collecting cryptography (from secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) Using cached https://www.piwheels.org/simple/cryptography/cryptography-3.1-cp37-cp37m-linux_armv7l.whl Requirement already satisfied: jeepney>=0.4.2 in ./ven/lib/python3.7/site-packages (from secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) (0.4.3) Collecting cffi!=1.11.3,>=1.8 (from cryptography->secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) Using cached https://files.pythonhosted.org/packages/f7/09/88bbe20b76ca76be052c366fe77aa5e3cd6e5f932766e5597fecdd95b2a8/cffi-1.14.2.tar.gz Requirement already satisfied: pycparser in ./ven/lib/python3.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography->secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) (2.20) Building wheels for collected packages: cffi Running setup.py bdist_wheel for cffi ... error Complete output from command /home/pi/python/ven/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ar9irn2l/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-se20s6b6 --python-tag cp37: 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 usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for cffi Running setup.py clean for cffi Failed to build cffi Installing collected packages: cffi, cryptography, secretstorage, keyring, Outage-Detector Running setup.py install for cffi ... error Complete output from command /home/pi/python/ven/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ar9irn2l/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-ii_cybhs/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/python/ven/include/site/python3.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-3.7 creating build/lib.linux-armv7l-3.7/cffi copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/init.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi running build_ext building '_cffi_backend' extension creating build/temp.linux-armv7l-3.7 creating build/temp.linux-armv7l-3.7/c arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/home/pi/python/ven/include -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory #include <ffi.h> ^~~~~~~ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------

Command "/home/pi/python/ven/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-ar9irn2l/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-ii_cybhs/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/python/ven/include/site/python3.7/cffi" failed with error code 1 in /tmp/pip-install-ar9irn2l/cffi/ (ven) pi@raspberrypi:~/python $ outage_detector --init bash: outage_detector: command not found (ven) pi@raspberrypi:~/python $ pip install Outage_Detector --upgrade Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting Outage_Detector Using cached https://files.pythonhosted.org/packages/9b/65/a20474877ef2c6beb23c382e7882902bd37fb8a9f7672d781497ba625c92/Outage_Detector-1.1.2-py3-none-any.whl Requirement already satisfied, skipping upgrade: pushbullet.py==0.11.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (0.11.0) Requirement already satisfied, skipping upgrade: keyrings.alt==3.2.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (3.2.0) Requirement already satisfied, skipping upgrade: websocket-client==0.56.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (0.56.0) Requirement already satisfied, skipping upgrade: idna==2.8 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2.8) Requirement already satisfied, skipping upgrade: urllib3==1.25.6 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (1.25.6) Collecting keyring==20.0.1 (from Outage_Detector) Using cached https://files.pythonhosted.org/packages/f1/07/0afb82d449d210a332d126978634470abdd0c754128a9ead8bbe78eb1b43/keyring-20.0.1-py2.py3-none-any.whl Requirement already satisfied, skipping upgrade: six==1.13.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (1.13.0) Requirement already satisfied, skipping upgrade: certifi==2019.9.11 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2019.9.11) Requirement already satisfied, skipping upgrade: chardet==3.0.4 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (3.0.4) Requirement already satisfied, skipping upgrade: python-magic==0.4.15 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (0.4.15) Requirement already satisfied, skipping upgrade: python-crontab==2.4.2 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2.4.2) Requirement already satisfied, skipping upgrade: requests==2.22.0 in ./ven/lib/python3.7/site-packages (from Outage_Detector) (2.22.0) Collecting secretstorage; sys_platform == "linux" (from keyring==20.0.1->Outage_Detector) Using cached https://files.pythonhosted.org/packages/c3/50/8a02cad020e949e6d7105f5f4530d41e3febcaa5b73f8f2148aacb3aeba5/SecretStorage-3.1.2-py3-none-any.whl Requirement already satisfied, skipping upgrade: importlib-metadata; python_version < "3.8" in ./ven/lib/python3.7/site-packages (from keyring==20.0.1->Outage_Detector) (1.7.0) Requirement already satisfied, skipping upgrade: python-dateutil in ./ven/lib/python3.7/site-packages (from python-crontab==2.4.2->Outage_Detector) (2.8.1) Collecting cryptography (from secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) Using cached https://www.piwheels.org/simple/cryptography/cryptography-3.1-cp37-cp37m-linux_armv7l.whl Requirement already satisfied, skipping upgrade: jeepney>=0.4.2 in ./ven/lib/python3.7/site-packages (from secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) (0.4.3) Requirement already satisfied, skipping upgrade: zipp>=0.5 in ./ven/lib/python3.7/site-packages (from importlib-metadata; python_version < "3.8"->keyring==20.0.1->Outage_Detector) (3.1.0) Collecting cffi!=1.11.3,>=1.8 (from cryptography->secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) Using cached https://files.pythonhosted.org/packages/f7/09/88bbe20b76ca76be052c366fe77aa5e3cd6e5f932766e5597fecdd95b2a8/cffi-1.14.2.tar.gz Requirement already satisfied, skipping upgrade: pycparser in ./ven/lib/python3.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography->secretstorage; sys_platform == "linux"->keyring==20.0.1->Outage_Detector) (2.20) Building wheels for collected packages: cffi Running setup.py bdist_wheel for cffi ... error Complete output from command /home/pi/python/ven/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-jqmiky2p/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-a_inbhi7 --python-tag cp37: 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 usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help

error: invalid command 'bdist_wheel'


Failed building wheel for cffi Running setup.py clean for cffi Failed to build cffi Installing collected packages: cffi, cryptography, secretstorage, keyring, Outage-Detector Running setup.py install for cffi ... error Complete output from command /home/pi/python/ven/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-jqmiky2p/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-vkxmj8tk/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/python/ven/include/site/python3.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-3.7 creating build/lib.linux-armv7l-3.7/cffi copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/init.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi running build_ext building '_cffi_backend' extension creating build/temp.linux-armv7l-3.7 creating build/temp.linux-armv7l-3.7/c arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/home/pi/python/ven/include -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory #include <ffi.h> ^~~~~~~ compilation terminated. error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

----------------------------------------

Command "/home/pi/python/ven/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-jqmiky2p/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-vkxmj8tk/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/python/ven/include/site/python3.7/cffi" failed with error code 1 in /tmp/pip-install-jqmiky2p/cffi/

As you can see - opted for the update, did reboot, reset virtual environment - any clues? running on 3B 2.1

thanks

tonyfish avatar Sep 08 '20 07:09 tonyfish