Jump to content

no compiler?


avandeputte

Recommended Posts

Posted

Just got my polisy today.  I tried installing the LutronCaseta module,  it install fine.  Trying to run it,  the log shows this error:

2019-10-28 16:50:10,734 [MainThread] [INFO ] Received Config from STDIN.
2019-10-28 16:50:10,736 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.31 Starting...
2019-10-28 16:50:11,564 [MainThread] [ERROR] Traceback (most recent call last):
2019-10-28 16:50:11,564 [MainThread] [ERROR] File "./lutroncaseta-poly.py", line 10, in <module>
2019-10-28 16:50:11,565 [MainThread] [ERROR] from lutron_caseta_nodes.LutronCasetaController import LutronCasetaController
2019-10-28 16:50:11,566 [MainThread] [ERROR] File "/var/polyglot/nodeservers/LutronCaseta/lutron_caseta_nodes/LutronCasetaController.py", line 9, in <module>
2019-10-28 16:50:11,567 [MainThread] [ERROR] from cryptography import x509
2019-10-28 16:50:11,568 [MainThread] [ERROR] ModuleNotFoundError
2019-10-28 16:50:11,568 [MainThread] [ERROR] :
2019-10-28 16:50:11,568 [MainThread] [ERROR] No module named 'cryptography'

OK,  so next I logged in the polisy,  navigated to  the nodeserver and ran install.sh

It fails on installing cryptography,  perhaps because there is no compiler installed?

Should the polisy include a compiler,  or at least a pre-compiled/pre-installed version of the python module?

dmin@polisy /var/polyglot/nodeservers/LutronCaseta]$ ls
LICENSE                 logs                    requirements_cloud.txt
POLYGLOT_CONFIG.md      lutron_caseta_nodes     server.json
README.md               lutroncaseta-poly.py    tox.ini
install.sh              profile
install_cloud.sh        requirements.txt
[admin@polisy /var/polyglot/nodeservers/LutronCaseta]$ ./install.sh
Collecting polyinterface>=2.0.0 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/a8/33/56195e3c280a21f78de3                                                                                                                                                         9f81c9aa4bf63215eeb550a7dc552ee91001d002/polyinterface-2.0.31.tar.gz
Collecting markdown2 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/89/d2/6aef45472f7956646fdc                                                                                                                                                         4cc5284e6f9d00476497a8d167c30b0f78bb75a5/markdown2-2.3.8-py2.py3-none-any.whl
Collecting cryptography>=2.3 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d                                                                                                                                                         5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz (504kB)
     |████████████████████████████████| 512kB 1.4MB/s
  Installing build dependencies ... error
  ERROR: Complete output from command /usr/local/bin/python3.7 /usr/local/lib/py                                                                                                                                                         thon3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip                                                                                                                                                         -build-env-y89sy82c/overlay --no-warn-script-location --no-binary :none: --only-                                                                                                                                                         binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.                                                                                                                                                         8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'':
  ERROR: Collecting setuptools>=40.6.0
    Downloading https://files.pythonhosted.org/packages/db/3c/1065553af43e5f388c                                                                                                                                                         b5ae96f44867470063a2d04c02551104dcb12794bd/setuptools-41.5.1-py2.py3-none-any.wh                                                                                                                                                         l (581kB)
  Collecting wheel
    Downloading https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45                                                                                                                                                         610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
  Collecting cffi!=1.11.3,>=1.8
    Downloading https://files.pythonhosted.org/packages/0d/aa/c5ac2f337d9a10ee95                                                                                                                                                         d160d47beb8d9400e1b2a46bb94990a0409fe6d133/cffi-1.13.1.tar.gz (460kB)
  Collecting pycparser (from cffi!=1.11.3,>=1.8)
    Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead                                                                                                                                                         1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for pycparser: started
      Running setup.py install for pycparser: finished with status 'done'
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /usr/local/bin/python3.7 -u -c 'import                                                                                                                                                          setuptools, tokenize;__file__='"'"'/tmp/pip-install-g0e1xhci/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-8tldunwo/install-record.txt --single-version-                                                                                                                                                         externally-managed --prefix /tmp/pip-build-env-y89sy82c/overlay --compile:
      ERROR: unable to execute 'cc': No such file or directory
      unable to execute 'cc': No such file or directory

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.freenode.net.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7
      creating build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/error.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      copying cffi/verifier.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/c                                                                                                                                                         ffi
      copying cffi/vengine_cpy.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      copying cffi/__init__.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/c                                                                                                                                                         ffi
      copying cffi/lock.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/recompiler.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7                                                                                                                                                         /cffi
      copying cffi/model.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/cparser.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cf                                                                                                                                                         fi
      copying cffi/cffi_opcode.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      copying cffi/api.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      copying cffi/setuptools_ext.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64                                                                                                                                                         -3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64                                                                                                                                                         -3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/                                                                                                                                                         cffi
      copying cffi/commontypes.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      copying cffi/_cffi_include.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3                                                                                                                                                         .7/cffi
      copying cffi/parse_c_type.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      copying cffi/_embedding.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/                                                                                                                                                         cffi
      copying cffi/_cffi_errors.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.                                                                                                                                                         7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7
      creating build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7/c
      cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG                                                                                                                                                          -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/include/ffi                                                                                                                                                          -I/usr/include/libffi -I/usr/local/include -I/usr/local/include/python3.7m -c c                                                                                                                                                         /_cffi_backend.c -o build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7/c/_cffi_backen                                                                                                                                                         d.o
      unable to execute 'cc': No such file or directory
      error: command 'cc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__                                                                                                                                                         file__='"'"'/tmp/pip-install-g0e1xhci/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-8tldunwo/install-record.txt --single-version-externally-managed --pre                                                                                                                                                         fix /tmp/pip-build-env-y89sy82c/overlay --compile" failed with error code 1 in /                                                                                                                                                         tmp/pip-install-g0e1xhci/cffi/
  ----------------------------------------
ERROR: Command "/usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/                                                                                                                                                         pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-y89sy82c/ov                                                                                                                                                         erlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https                                                                                                                                                         ://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_p                                                                                                                                                         ython_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None
[admin@polisy /var/polyglot/nodeservers/LutronCaseta]$ ./install.sh
Collecting polyinterface>=2.0.0 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/a8/33/56195e3c280a21f78de39f81c9aa4bf63215eeb550a7dc552ee91001d002/polyinterface-2.0.31.tar.gz
Collecting markdown2 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/89/d2/6aef45472f7956646fdc4cc5284e6f9d00476497a8d167c30b0f78bb75a5/markdown2-2.3.8-py2.py3-none-any.whl
Collecting cryptography>=2.3 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
  Installing build dependencies ... -cryptographerror
  ERROR: Complete output from command /usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-jl_mjnn2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'':
  ERROR: Collecting setuptools>=40.6.0
    Using cached https://files.pythonhosted.org/packages/db/3c/1065553af43e5f388cb5ae96f44867470063a2d04c02551104dcb12794bd/setuptools-41.5.1-py2.py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
  Collecting cffi!=1.11.3,>=1.8
    Using cached https://files.pythonhosted.org/packages/0d/aa/c5ac2f337d9a10ee95d160d47beb8d9400e1b2a46bb94990a0409fe6d133/cffi-1.13.1.tar.gz
  Collecting pycparser (from cffi!=1.11.3,>=1.8)
    Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for pycparser: started
      Running setup.py install for pycparser: finished with status 'done'
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-rruibed2/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-0_r9glgp/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-jl_mjnn2/overlay --compile:
      ERROR: unable to execute 'cc': No such file or directory
      unable to execute 'cc': No such file or directory

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.freenode.net.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7
      creating build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/commontypes.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/verifier.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/model.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/recompiler.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/__init__.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/api.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/lock.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/error.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/cparser.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/_embedding.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7
      creating build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7/c
      cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7/c/_cffi_backend.o
      unable to execute 'cc': No such file or directory
      error: command 'cc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-rruibed2/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-0_r9glgp/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-jl_mjnn2/overlay --compile" failed with error code 1 in /tmp/pip-install-rruibed2/cffi/
  ----------------------------------------
ERROR: Command "/usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-jl_mjnn2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None
[admin@polisy /var/polyglot/nodeservers/LutronCaseta]$ cc
-bash: cc: command not found
[admin@polisy /var/polyglot/nodeservers/LutronCaseta]$ cc
-bash: cc: command not found
[admin@polisy /var/polyglot/nodeservers/LutronCaseta]$ clear
[admin@polisy /var/polyglot/nodeservers/LutronCaseta]$ ./install.sh
Collecting polyinterface>=2.0.0 (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/a8/33/56195e3c280a21f78de39f81c9aa4bf63215eeb550a7dc552ee91001d002/polyinterface-2.0.31.tar.gz
Collecting markdown2 (from -r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/89/d2/6aef45472f7956646fdc4cc5284e6f9d00476497a8d167c30b0f78bb75a5/markdown2-2.3.8-py2.py3-none-any.whl
Collecting cryptography>=2.3 (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
  Installing build dependencies ... error
  ERROR: Complete output from command /usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xpt2p7kn/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'':
  ERROR: Collecting setuptools>=40.6.0
    Using cached https://files.pythonhosted.org/packages/db/3c/1065553af43e5f388cb5ae96f44867470063a2d04c02551104dcb12794bd/setuptools-41.5.1-py2.py3-none-any.whl
  Collecting wheel
    Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
  Collecting cffi!=1.11.3,>=1.8
    Using cached https://files.pythonhosted.org/packages/0d/aa/c5ac2f337d9a10ee95d160d47beb8d9400e1b2a46bb94990a0409fe6d133/cffi-1.13.1.tar.gz
  Collecting pycparser (from cffi!=1.11.3,>=1.8)
    Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for pycparser: started
      Running setup.py install for pycparser: finished with status 'done'
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-534o3_dy/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-z8ve0uqv/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-xpt2p7kn/overlay --compile:
      ERROR: unable to execute 'cc': No such file or directory
      unable to execute 'cc': No such file or directory

          No working compiler found, or bogus compiler options passed to
          the compiler from Python's standard "distutils" module.  See
          the error messages above.  Likely, the problem is not related
          to CFFI but generic to the setup.py of any Python package that
          tries to compile C code.  (Hints: on OS/X 10.8, for errors about
          -mno-fused-madd see http://stackoverflow.com/questions/22313407/
          Otherwise, see https://wiki.python.org/moin/CompLangPython or
          the IRC channel #python on irc.freenode.net.)

          Trying to continue anyway.  If you are trying to install CFFI from
          a build done in a different context, you can ignore this warning.

      running install
      running build
      running build_py
      creating build
      creating build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7
      creating build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/api.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/model.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/cparser.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/commontypes.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/verifier.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/lock.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/error.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/recompiler.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/__init__.py -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/_embedding.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.freebsd-12.0-RELEASE-p10-amd64-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7
      creating build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7/c
      cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.freebsd-12.0-RELEASE-p10-amd64-3.7/c/_cffi_backend.o
      unable to execute 'cc': No such file or directory
      error: command 'cc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/usr/local/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-534o3_dy/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-z8ve0uqv/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-xpt2p7kn/overlay --compile" failed with error code 1 in /tmp/pip-install-534o3_dy/cffi/
  ----------------------------------------
ERROR: Command "/usr/local/bin/python3.7 /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-xpt2p7kn/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None

 

Posted

Try:

sudo pkg install py37-cryptography-2.6.1

This will install a pre-compiled library.

I had the same issue with another Python module....

Posted

Also having similar issues withe the LiFX Node module. Its log shows the error below.

2019-10-28 23:01:08,015 [MainThread] [INFO ] Received Config from STDIN.
2019-10-28 23:01:08,016 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.31 Starting...
2019-10-28 23:01:08,020 [MainThread] [ERROR] Traceback (most recent call last):
2019-10-28 23:01:08,021 [MainThread] [ERROR] File "./lifx-poly.py", line 11, in <module>
2019-10-28 23:01:08,022 [MainThread] [ERROR] import lifxlan
2019-10-28 23:01:08,023 [MainThread] [ERROR] ModuleNotFoundError
2019-10-28 23:01:08,023 [MainThread] [ERROR] :
2019-10-28 23:01:08,024 [MainThread] [ERROR] No module named 'lifxlan'

I get the following while installing requirements.txt for LiFX Node module.

unable to execute 'cc': No such file or directory

Has anyone have any ideas on how to get cc working?

Posted
10 hours ago, cptechie said:

Also having similar issues withe the LiFX Node module. Its log shows the error below.

This appears to suggest that you don't have lifxlan installed. I haven't tried to migrate my LiFX nodeserver over yet, but this is what I did to install lifxlan:

[admin@polisy ~]$ sudo pip3 install lifxlan
Password:
Collecting lifxlan
  Downloading https://files.pythonhosted.org/packages/77/ce/7e0b99a28555e89901a8a7da76d790a6909adc3832d3f0c9dfaf28200827/lifxlan-1.2.5.tar.gz
Collecting bitstring (from lifxlan)
  Downloading https://files.pythonhosted.org/packages/c7/b9/ce7458b35633968eae3477a201a00f6c8e01cab0ccb200ea5099d41dd977/bitstring-3.1.6-py3-none-any.whl
Requirement already satisfied: netifaces in /usr/local/lib/python3.7/site-packages (from lifxlan) (0.10.9)
Installing collected packages: bitstring, lifxlan
  Running setup.py install for lifxlan ... done
Successfully installed bitstring-3.1.6 lifxlan-1.2.5

 

Posted
10 hours ago, cptechie said:

Also having similar issues withe the LiFX Node module. Its log shows the error below.


2019-10-28 23:01:08,015 [MainThread] [INFO ] Received Config from STDIN.
2019-10-28 23:01:08,016 [MainThread] [INFO ] UDI Polyglot v2 Interface 2.0.31 Starting...
2019-10-28 23:01:08,020 [MainThread] [ERROR] Traceback (most recent call last):
2019-10-28 23:01:08,021 [MainThread] [ERROR] File "./lifx-poly.py", line 11, in <module>
2019-10-28 23:01:08,022 [MainThread] [ERROR] import lifxlan
2019-10-28 23:01:08,023 [MainThread] [ERROR] ModuleNotFoundError
2019-10-28 23:01:08,023 [MainThread] [ERROR] :
2019-10-28 23:01:08,024 [MainThread] [ERROR] No module named 'lifxlan'

I get the following while installing requirements.txt for LiFX Node module.


unable to execute 'cc': No such file or directory

Has anyone have any ideas on how to get cc working?

Looks like one of its requirements also needs cc so need to find it and install with pkg install 

Posted

FWIW, I've got the LiFX nodeserver running on Polisy.  I just ran the command:

sudo pip3 install lifxlan

The ./install.sh script completes successfully:

[admin@polisy /var/polyglot/nodeservers/LiFX]$ ./install.sh 
Requirement already satisfied: lifxlan>=1.2.5 in /usr/local/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (1.2.5)
Requirement already satisfied: pyyaml>=3.12 in /usr/home/admin/.local/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (5.1.2)
Requirement already satisfied: polyinterface>=2.0.29 in /usr/home/admin/.local/lib/python3.7/site-packages (from -r requirements.txt (line 3)) (2.0.31)
Requirement already satisfied: bitstring in /usr/local/lib/python3.7/site-packages (from lifxlan>=1.2.5->-r requirements.txt (line 1)) (3.1.6)
Requirement already satisfied: netifaces in /usr/local/lib/python3.7/site-packages (from lifxlan>=1.2.5->-r requirements.txt (line 1)) (0.10.9)
Requirement already satisfied: paho-mqtt in /usr/home/admin/.local/lib/python3.7/site-packages (from polyinterface>=2.0.29->-r requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: python-dotenv in /usr/home/admin/.local/lib/python3.7/site-packages (from polyinterface>=2.0.29->-r requirements.txt (line 3)) (0.10.3)
Requirement already satisfied: markdown2 in /usr/home/admin/.local/lib/python3.7/site-packages (from polyinterface>=2.0.29->-r requirements.txt (line 3)) (2.3.8)
[admin@polisy /var/polyglot/nodeservers/LiFX]$ 

 

Posted
18 hours ago, MWareman said:

Try:


sudo pkg install py37-cryptography-2.6.1

This will install a pre-compiled library.

I had the same issue with another Python module....

Yep!  This worked!

Obviously only good for the geeks.  Presumably @Michel Kohanim is looking into a better solution before prime-time?

Posted

@MWareman and @Bumbershoot, thanks so very much. 

@avandeputte, no compilers are installed because node servers should not depend on compilers. Almost all these libraries are available and we missed them during the rollout. In short, completely and utterly inexcusable rollout even for geeks. We are working getting everything in order.

Thanks again for all your input.

With kind regards,
Michel

Posted
6 minutes ago, Michel Kohanim said:

@MWareman and @Bumbershoot, thanks so very much. 

@avandeputte, no compilers are installed because node servers should not depend on compilers. Almost all these libraries are available and we missed them during the rollout. In short, completely and utterly inexcusable rollout even for geeks. We are working getting everything in order.

Thanks again for all your input.

With kind regards,
Michel

Don't beat yourself up!  I enjoy the process of finding these issues very much!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...