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

Building wheels for collected packages: cffi, daemon, cryptography fails #14

Open
shortthefomo opened this issue Oct 17, 2023 · 0 comments

Comments

@shortthefomo
Copy link

shortthefomo commented Oct 17, 2023

probably due to either my lack of experience in py or that im on a arm chip.

Building wheels for collected packages: cffi, daemon, cryptography
  Building wheel for cffi (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [65 lines of output]
      /opt/homebrew/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!
      
              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.
      
              By 2023-Oct-30, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************
      
      !!
        parsed = self.parsers.get(option_name, lambda x: x)(value)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-14-arm64-cpython-311
      creating build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/backend_ctypes.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/error.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/setuptools_ext.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/__init__.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/cffi_opcode.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/vengine_gen.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/pkgconfig.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/model.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/ffiplatform.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/api.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/vengine_cpy.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/commontypes.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/lock.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/recompiler.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/cparser.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/verifier.py -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/_cffi_include.h -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/parse_c_type.h -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/_embedding.h -> build/lib.macosx-14-arm64-cpython-311/cffi
      copying cffi/_cffi_errors.h -> build/lib.macosx-14-arm64-cpython-311/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.macosx-14-arm64-cpython-311
      creating build/temp.macosx-14-arm64-cpython-311/c
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c c/_cffi_backend.c -o build/temp.macosx-14-arm64-cpython-311/c/_cffi_backend.o
      c/_cffi_backend.c:407:23: error: expression is not assignable
              Py_REFCNT(ct) = 43;
              ~~~~~~~~~~~~~ ^
      c/_cffi_backend.c:410:23: error: expression is not assignable
              Py_REFCNT(ct) = 0;
              ~~~~~~~~~~~~~ ^
      c/_cffi_backend.c:6185:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
          PyEval_InitThreads();
          ^
      /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/ceval.h:132:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
      Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
      ^
      /opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      c/_cffi_backend.c:6245:9: error: call to undeclared function 'ffi_prep_closure'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
          if (ffi_prep_closure(closure, &cif_descr->cif,
              ^
      1 warning and 3 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cffi
  Running setup.py clean for cffi
  Building wheel for daemon (setup.py) ... done
  Created wheel for daemon: filename=daemon-1.2-py3-none-any.whl size=2736 sha256=1477a7c0e5fe78ff7437f19d7669fd672d9f2082db7d6cb1951730ab7dc7ea37
  Stored in directory: /Users/lathanbritz/Library/Caches/pip/wheels/ed/34/a4/2fabfaaba54893f44ac5481643459be8f1fc225e812367efe8
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [152 lines of output]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant