Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem 64bit #727

Closed
Hydci opened this issue Jun 12, 2020 · 5 comments
Closed

Installation problem 64bit #727

Hydci opened this issue Jun 12, 2020 · 5 comments
Labels

Comments

@Hydci
Copy link

Hydci commented Jun 12, 2020

Hello, I post this problem because I can not install the package on raspbian 64 bit I try on ubuntu 64 bit but same problem I use a raspberry pi 4 someone have a solution?

pi@raspberrypi:~ $ sudo pip3 install python-miio
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting python-miio
  Using cached https://files.pythonhosted.org/packages/a0/cc/ffbe86810b9db6b635d6743289bd723a875ff2a226edf3cfc7d184055b83/python_miio-0.5.1-py3-none-any.whl
Collecting appdirs<2.0.0,>=1.4.3 (from python-miio)
  Downloading https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl
Collecting construct<3.0.0,>=2.10.56 (from python-miio)
  Using cached https://www.piwheels.org/simple/construct/construct-2.10.56-py3-none-any.whl
Collecting cryptography<3.0,>=2.9 (from python-miio)
  Using cached https://files.pythonhosted.org/packages/56/3b/78c6816918fdf2405d62c98e48589112669f36711e50158a0c15d804c30d/cryptography-2.9.2.tar.gz
  Installing build dependencies ... error
  Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-lfz7zjm6 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'":
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting setuptools>=40.6.0
    Using cached https://files.pythonhosted.org/packages/95/95/f657b6e17f00c3f35b5f68b10e46c3a43af353d8856bd57bfcfb1dbb3e92/setuptools-47.1.1-py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
  Collecting cffi!=1.11.3,>=1.8
    Using cached https://files.pythonhosted.org/packages/05/54/3324b0c46340c31b909fcec598696aaec7ddc8c18a63f2db352562d3354c/cffi-1.14.0.tar.gz
  Collecting pycparser (from cffi!=1.11.3,>=1.8)
    Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl
  Building wheels for collected packages: cffi
    Running setup.py bdist_wheel for cffi: started
    Running setup.py bdist_wheel for cffi: finished with status 'error'
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mbpfcskb/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-r7sikfgb --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
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-aarch64-3.7
    creating build/lib.linux-aarch64-3.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/error.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/cparser.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/model.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/api.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/lock.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/verifier.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/__init__.py -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-aarch64-3.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-aarch64-3.7
    creating build/temp.linux-aarch64-3.7/c
    aarch64-linux-gnu-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/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.7/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: Aucun fichier ou dossier de ce type
     #include <ffi.h>
              ^~~~~~~
    compilation terminated.
    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
    Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mbpfcskb/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-hu7wk16m/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-lfz7zjm6 --compile:
      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-aarch64-3.7
      creating build/lib.linux-aarch64-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/error.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/cparser.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/model.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/api.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-aarch64-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-aarch64-3.7
      creating build/temp.linux-aarch64-3.7/c
      aarch64-linux-gnu-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/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.7/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: Aucun fichier ou dossier de ce type
       #include <ffi.h>
                ^~~~~~~
      compilation terminated.
      error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

      ----------------------------------------
  Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mbpfcskb/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-hu7wk16m/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-lfz7zjm6 --compile" failed with error code 1 in /tmp/pip-install-mbpfcskb/cffi/

  ----------------------------------------
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-lfz7zjm6 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.8,!=1.11.3; platform_python_implementation != 'PyPy'"" failed with error code 1 in None
@rytilahti
Copy link
Owner

You have to install the libffi header files for your distirbution, I think it is named libffi-dev for raspbian. (try apt search libffi).

@Hydci
Copy link
Author

Hydci commented Jun 13, 2020

Hello thank you for the answer so I installed the package I managed to pass this step and now I get the error of the missing package aarch64-linux-gnu-gcc and despite several manipulations I cannot install

@Hydci Hydci changed the title Installation problem Installation problem 64bit Jun 13, 2020
@rytilahti
Copy link
Owner

Try to install build-essential meta-package, it should install compiler and other commonly needed packages.

@Hydci
Copy link
Author

Hydci commented Jun 13, 2020

same problem he tells me it is already installed it's been more than a year that I use the package I never was but the I actually block

@rytilahti
Copy link
Owner

On ubuntu this is in gcc-aarch64-linux-gnu package, to my understanding. Otherwise you should look into your distribution's documentation to locate which package contains the compiler. Anyway, as this is a problem with your environment and not of this project, I'm closing this. Hope you'll get it working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants