pycontribs / django-alexa

Amazon Alexa Skills Kit integration for Django -- ARCHIVED contact @ssbarnea if you can resurrect it.
https://github.com/pycontribs/django-alexa/issues/37
MIT License
69 stars 51 forks source link

Python 3.8 Support #57

Open austinjhunt opened 4 years ago

austinjhunt commented 4 years ago

Hi, I am attempting to install this package on MacOS Catalina 10.15.4, but I'm running into an error with the installation of the underlying cffi dependency. I can't find anyone else having this issue online so it's possible that I'm missing an easy fix.

To make sure it wasn't due to a conflict with an already-installed package, I created an entirely new virtual environment (Python3.8) and tried installing only the django-alexa package to start with, and I got the same error.

It appears the primary problem is:

error: incomplete definition of type 'struct _is'
            if (externpy->reserved1 != PyThreadState_GET()->interp->modules) {

I have successfully run brew install postgresql as well as brew upgrade postgresql to no avail.

Which version of Python are you successfully running this with?

The below is the log from the pip install command. I run it twice here, the second time is after running pip install --upgrade pip

Thank you for any assistance you can provide.

Best, Austin

Austins-iMac:fie2020 huntaj$ python3.8 -m venv venv
Austins-iMac:fie2020 huntaj$ source venv/bin/activate
(venv) Austins-iMac:fie2020 huntaj$ pip install django-alexa
Collecting django-alexa
  Using cached https://files.pythonhosted.org/packages/b5/69/a2c354e0c434860d72f64d088026180215f4e092d1fd1de2fb34aee3068e/django_alexa-0.0.9-py2.py3-none-any.whl
Collecting jinja2==2.10 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting pycparser==2.19 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Collecting pytz==2018.9 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl
Collecting cffi==1.11.5 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
Collecting cryptography==2.4.2 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/18/d5/7f725ac9ff162c93f67087414961b8256019527093d31e4c1fa9c377170a/cryptography-2.4.2-cp34-abi3-macosx_10_6_intel.whl
Collecting ansimarkup==1.4.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/8f/3b/be9c9da51fc950c58f64221676f5d2972a4003dc4ac05642cb6d279a281a/ansimarkup-1.4.0-py2.py3-none-any.whl
Collecting pyparsing==2.3.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl
Collecting markupsafe==1.1.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/ac/7e/1b4c2e05809a4414ebce0892fe1e32c14ace86ca7d50c70f00979ca9b3a3/MarkupSafe-1.1.0.tar.gz
Collecting coverage==4.5.2 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/fb/af/ce7b0fe063ee0142786ee53ad6197979491ce0785567b6d8be751d2069e8/coverage-4.5.2.tar.gz
Collecting sphinx-rtd-theme==0.4.2 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/ef/0c/e4a462190506bc4bff6ca8cf93da07b2d13e540466d2e8a760352d0c69b0/sphinx_rtd_theme-0.4.2-py2.py3-none-any.whl
Collecting sphinxcontrib-websupport==1.1.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/52/69/3c2fbdc3702358c5b34ee25e387b24838597ef099761fc9a42c166796e8f/sphinxcontrib_websupport-1.1.0-py2.py3-none-any.whl
Collecting docutils==0.14 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl
Collecting django==2.1.5 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/36/50/078a42b4e9bedb94efd3e0278c0eb71650ed9672cdc91bd5542953bec17f/Django-2.1.5-py3-none-any.whl
Collecting pyversion3==0.5.12 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/24/e9/8ed4c7865f6d79ed4b3ea68b23cbe0d18f3954d93142ac55e16b8ff2352d/pyversion3-0.5.12-py2.py3-none-any.whl
Collecting certifi==2018.11.29 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl
Collecting snowballstemmer==1.2.1 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/d4/6c/8a935e2c7b54a37714656d753e4187ee0631988184ed50c0cf6476858566/snowballstemmer-1.2.1-py2.py3-none-any.whl
Collecting urllib3==1.24.1 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl
Collecting sphinx==1.8.3 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/0e/5c/e7d076cf2900b38cba5c7d48545953540d86634d391b702067c00d99cb01/Sphinx-1.8.3-py2.py3-none-any.whl
Collecting better-exceptions-fork==0.2.1.post6 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/55/7b/eaa2e2876ea80169adfb7304339b4d735c1d445efc5402da39cd918a6d45/better_exceptions_fork-0.2.1.post6.tar.gz
Collecting requests==2.21.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting six==1.12.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting alabaster==0.7.12 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whl
Collecting imagesize==1.1.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/fc/b6/aef66b4c52a6ad6ac18cf6ebc5731ed06d8c9ae4d3b2d9951f261150be67/imagesize-1.1.0-py2.py3-none-any.whl
Collecting packaging==18.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/89/d1/92e6df2e503a69df9faab187c684585f0136662c12bb1f36901d426f3fab/packaging-18.0-py2.py3-none-any.whl
Collecting docopt==0.6.2 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Collecting pbr==5.1.1 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/f3/04/fddc1c2dd75b256eda4d360024692231a2c19a0c61ad7f4a162407c1ab58/pbr-5.1.1-py2.py3-none-any.whl
Collecting chardet==3.0.4 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna==2.8 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Collecting babel==2.6.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/b8/ad/c6f60602d3ee3d92fbed87675b6fb6a6f9a38c223343ababdb44ba201f10/Babel-2.6.0-py2.py3-none-any.whl
Collecting asn1crypto==0.24.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting coveralls==1.5.1 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/91/4f/f52682bfaa960445af93143df5ea0a98854f1a7829ff3e377932426bf48c/coveralls-1.5.1-py2.py3-none-any.whl
Collecting pyopenssl==18.0.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/96/af/9d29e6bd40823061aea2e0574ccb2fcf72bfd6130ce53d32773ec375458c/pyOpenSSL-18.0.0-py2.py3-none-any.whl
Collecting loguru==0.2.4 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/55/e0/461d6e5427c90fea5fcc72e364a5e742f8c1c306622685ec61b1e93a798e/loguru-0.2.4-py3-none-any.whl
Collecting djangorestframework==3.9.0 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/99/0b/d37a5a96c5d301e23adcabcc2f3fa659fb34e6308590f95ebb50cdbe98a1/djangorestframework-3.9.0-py2.py3-none-any.whl
Collecting pycryptodome==3.7.2 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/a5/f5/ea666524f67b6e2b29112d33ad8d948281980b2a86015c264de8424400c2/pycryptodome-3.7.2.tar.gz
Collecting pygments==2.3.1 (from django-alexa)
  Using cached https://files.pythonhosted.org/packages/13/e5/6d710c9cf96c31ac82657bcfb441df328b22df8564d58d0c4cd62612674c/Pygments-2.3.1-py2.py3-none-any.whl
Collecting colorama (from ansimarkup==1.4.0->django-alexa)
  Using cached https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from sphinx==1.8.3->django-alexa) (41.2.0)
ERROR: pyversion3 0.5.12 has requirement colorama==0.4.1, but you'll have colorama 0.4.3 which is incompatible.
Installing collected packages: markupsafe, jinja2, pycparser, pytz, cffi, idna, six, asn1crypto, cryptography, colorama, ansimarkup, pyparsing, coverage, urllib3, certifi, chardet, requests, pygments, sphinxcontrib-websupport, packaging, alabaster, imagesize, babel, docutils, snowballstemmer, sphinx, sphinx-rtd-theme, django, docopt, pbr, better-exceptions-fork, coveralls, loguru, pyversion3, pyopenssl, djangorestframework, pycryptodome, django-alexa
  Running setup.py install for markupsafe ... done
  Running setup.py install for pycparser ... done
  Running setup.py install for cffi ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/huntaj/dev/fie2020/venv/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-id3ahu3q/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-id3ahu3q/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 /private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-record-6nmjf9gq/install-record.txt --single-version-externally-managed --compile --install-headers /Users/huntaj/dev/fie2020/venv/include/site/python3.8/cffi
         cwd: /private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-id3ahu3q/cffi/
    Complete output (65 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-x86_64-3.8
    creating build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/backend_ctypes.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/error.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/setuptools_ext.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/cffi_opcode.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/vengine_gen.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/model.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/ffiplatform.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/api.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/vengine_cpy.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/commontypes.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/lock.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/recompiler.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/cparser.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/verifier.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/_cffi_include.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/parse_c_type.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/_embedding.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/_cffi_errors.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.macosx-10.9-x86_64-3.8
    creating build/temp.macosx-10.9-x86_64-3.8/c
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/ffi -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi -I/Users/huntaj/dev/fie2020/venv/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.9-x86_64-3.8/c/_cffi_backend.o
    c/_cffi_backend.c:4197:31: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            *p_printable_filename = PyText_AsUTF8(s);
                                  ^ ~~~~~~~~~~~~~~~~
    c/_cffi_backend.c:5911:9: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
        if (ffi_prep_closure(closure, &cif_descr->cif,
            ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/ffi/ffi.h:348:18: note: 'ffi_prep_closure' has been explicitly marked deprecated here
      __attribute__((deprecated))
                     ^
    In file included from c/_cffi_backend.c:7370:
    In file included from c/cffi1_module.c:20:
    c/call_python.c:20:30: error: incomplete definition of type 'struct _is'
        builtins = tstate->interp->builtins;
                   ~~~~~~~~~~~~~~^
    /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
    struct _is;
           ^
    In file included from c/_cffi_backend.c:7370:
    In file included from c/cffi1_module.c:20:
    c/call_python.c:160:39: error: incomplete definition of type 'struct _is'
        new1 = PyThreadState_GET()->interp->modules;
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
    struct _is;
           ^
    In file included from c/_cffi_backend.c:7370:
    In file included from c/cffi1_module.c:20:
    c/call_python.c:249:63: error: incomplete definition of type 'struct _is'
            if (externpy->reserved1 != PyThreadState_GET()->interp->modules) {
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
    struct _is;
           ^
    2 warnings and 3 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/huntaj/dev/fie2020/venv/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-id3ahu3q/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-id3ahu3q/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 /private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-record-6nmjf9gq/install-record.txt --single-version-externally-managed --compile --install-headers /Users/huntaj/dev/fie2020/venv/include/site/python3.8/cffi Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) Austins-iMac:fie2020 huntaj$ pip install --upgrade pip 
Collecting pip
  Using cached https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 19.2.3
    Uninstalling pip-19.2.3:
      Successfully uninstalled pip-19.2.3
Successfully installed pip-20.1.1
(venv) Austins-iMac:fie2020 huntaj$ pip install django-alexa
Collecting django-alexa
  Using cached django_alexa-0.0.9-py2.py3-none-any.whl (20 kB)
Collecting djangorestframework==3.9.0
  Using cached djangorestframework-3.9.0-py2.py3-none-any.whl (924 kB)
Collecting six==1.12.0
  Using cached six-1.12.0-py2.py3-none-any.whl (10 kB)
Collecting alabaster==0.7.12
  Using cached alabaster-0.7.12-py2.py3-none-any.whl (14 kB)
Collecting docopt==0.6.2
  Using cached docopt-0.6.2.tar.gz (25 kB)
Collecting idna==2.8
  Using cached idna-2.8-py2.py3-none-any.whl (58 kB)
Collecting certifi==2018.11.29
  Using cached certifi-2018.11.29-py2.py3-none-any.whl (154 kB)
Collecting loguru==0.2.4
  Using cached loguru-0.2.4-py3-none-any.whl (40 kB)
Requirement already satisfied: pycparser==2.19 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.19)
Collecting pyparsing==2.3.0
  Using cached pyparsing-2.3.0-py2.py3-none-any.whl (59 kB)
Requirement already satisfied: markupsafe==1.1.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (1.1.0)
Collecting ansimarkup==1.4.0
  Using cached ansimarkup-1.4.0-py2.py3-none-any.whl (14 kB)
Collecting cffi==1.11.5
  Using cached cffi-1.11.5.tar.gz (438 kB)
Collecting coverage==4.5.2
  Using cached coverage-4.5.2.tar.gz (384 kB)
Collecting pygments==2.3.1
  Using cached Pygments-2.3.1-py2.py3-none-any.whl (849 kB)
Collecting better-exceptions-fork==0.2.1.post6
  Using cached better_exceptions_fork-0.2.1.post6.tar.gz (49 kB)
Collecting coveralls==1.5.1
  Using cached coveralls-1.5.1-py2.py3-none-any.whl (11 kB)
Collecting docutils==0.14
  Using cached docutils-0.14-py3-none-any.whl (543 kB)
Collecting pycryptodome==3.7.2
  Using cached pycryptodome-3.7.2.tar.gz (7.2 MB)
Collecting requests==2.21.0
  Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting snowballstemmer==1.2.1
  Using cached snowballstemmer-1.2.1-py2.py3-none-any.whl (64 kB)
Requirement already satisfied: pytz==2018.9 in ./venv/lib/python3.8/site-packages (from django-alexa) (2018.9)
Collecting sphinx-rtd-theme==0.4.2
  Using cached sphinx_rtd_theme-0.4.2-py2.py3-none-any.whl (6.4 MB)
Collecting pyversion3==0.5.12
  Using cached pyversion3-0.5.12-py2.py3-none-any.whl (8.9 kB)
Collecting babel==2.6.0
  Using cached Babel-2.6.0-py2.py3-none-any.whl (8.1 MB)
Collecting chardet==3.0.4
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting urllib3==1.24.1
  Using cached urllib3-1.24.1-py2.py3-none-any.whl (118 kB)
Collecting imagesize==1.1.0
  Using cached imagesize-1.1.0-py2.py3-none-any.whl (4.4 kB)
Requirement already satisfied: jinja2==2.10 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.10)
Collecting pbr==5.1.1
  Using cached pbr-5.1.1-py2.py3-none-any.whl (106 kB)
Collecting pyopenssl==18.0.0
  Using cached pyOpenSSL-18.0.0-py2.py3-none-any.whl (53 kB)
Collecting asn1crypto==0.24.0
  Using cached asn1crypto-0.24.0-py2.py3-none-any.whl (101 kB)
Collecting sphinx==1.8.3
  Using cached Sphinx-1.8.3-py2.py3-none-any.whl (3.1 MB)
Collecting packaging==18.0
  Using cached packaging-18.0-py2.py3-none-any.whl (21 kB)
Collecting cryptography==2.4.2
  Using cached cryptography-2.4.2-cp34-abi3-macosx_10_6_intel.whl (1.5 MB)
Collecting django==2.1.5
  Using cached Django-2.1.5-py3-none-any.whl (7.3 MB)
Collecting sphinxcontrib-websupport==1.1.0
  Using cached sphinxcontrib_websupport-1.1.0-py2.py3-none-any.whl (26 kB)
Collecting colorama>=0.3.4
  Using cached colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from sphinx==1.8.3->django-alexa) (41.2.0)
Using legacy setup.py install for docopt, since package 'wheel' is not installed.
Using legacy setup.py install for cffi, since package 'wheel' is not installed.
Using legacy setup.py install for coverage, since package 'wheel' is not installed.
Using legacy setup.py install for better-exceptions-fork, since package 'wheel' is not installed.
Using legacy setup.py install for pycryptodome, since package 'wheel' is not installed.
ERROR: pyversion3 0.5.12 has requirement colorama==0.4.1, but you'll have colorama 0.4.3 which is incompatible.
Installing collected packages: djangorestframework, six, alabaster, docopt, idna, certifi, colorama, ansimarkup, pygments, better-exceptions-fork, loguru, pyparsing, cffi, coverage, chardet, urllib3, requests, coveralls, docutils, pycryptodome, snowballstemmer, packaging, imagesize, babel, sphinxcontrib-websupport, sphinx, sphinx-rtd-theme, pbr, pyversion3, asn1crypto, cryptography, pyopenssl, django, django-alexa
    Running setup.py install for docopt ... done
    Running setup.py install for better-exceptions-fork ... done
    Running setup.py install for cffi ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/huntaj/dev/fie2020/venv/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-ktzjy74u/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-ktzjy74u/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 /private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-record-n7u5slnf/install-record.txt --single-version-externally-managed --compile --install-headers /Users/huntaj/dev/fie2020/venv/include/site/python3.8/cffi
         cwd: /private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-ktzjy74u/cffi/
    Complete output (65 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-x86_64-3.8
    creating build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/backend_ctypes.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/error.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/setuptools_ext.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/__init__.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/cffi_opcode.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/vengine_gen.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/model.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/ffiplatform.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/api.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/vengine_cpy.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/commontypes.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/lock.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/recompiler.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/cparser.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/verifier.py -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/_cffi_include.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/parse_c_type.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/_embedding.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    copying cffi/_cffi_errors.h -> build/lib.macosx-10.9-x86_64-3.8/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.macosx-10.9-x86_64-3.8
    creating build/temp.macosx-10.9-x86_64-3.8/c
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/ffi -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi -I/Users/huntaj/dev/fie2020/venv/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.9-x86_64-3.8/c/_cffi_backend.o
    c/_cffi_backend.c:4197:31: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            *p_printable_filename = PyText_AsUTF8(s);
                                  ^ ~~~~~~~~~~~~~~~~
    c/_cffi_backend.c:5911:9: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
        if (ffi_prep_closure(closure, &cif_descr->cif,
            ^
    /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/ffi/ffi.h:348:18: note: 'ffi_prep_closure' has been explicitly marked deprecated here
      __attribute__((deprecated))
                     ^
    In file included from c/_cffi_backend.c:7370:
    In file included from c/cffi1_module.c:20:
    c/call_python.c:20:30: error: incomplete definition of type 'struct _is'
        builtins = tstate->interp->builtins;
                   ~~~~~~~~~~~~~~^
    /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
    struct _is;
           ^
    In file included from c/_cffi_backend.c:7370:
    In file included from c/cffi1_module.c:20:
    c/call_python.c:160:39: error: incomplete definition of type 'struct _is'
        new1 = PyThreadState_GET()->interp->modules;
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
    struct _is;
           ^
    In file included from c/_cffi_backend.c:7370:
    In file included from c/cffi1_module.c:20:
    c/call_python.c:249:63: error: incomplete definition of type 'struct _is'
            if (externpy->reserved1 != PyThreadState_GET()->interp->modules) {
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pystate.h:20:8: note: forward declaration of 'struct _is'
    struct _is;
           ^
    2 warnings and 3 errors generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/huntaj/dev/fie2020/venv/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-ktzjy74u/cffi/setup.py'"'"'; __file__='"'"'/private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-install-ktzjy74u/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 /private/var/folders/0l/mwv42yhs0nnb1mc2833m_r580000gn/T/pip-record-n7u5slnf/install-record.txt --single-version-externally-managed --compile --install-headers /Users/huntaj/dev/fie2020/venv/include/site/python3.8/cffi Check the logs for full command output.
austinjhunt commented 4 years ago

I think I found a possible fix (the pip install command successfully completed but I have yet to fully test the package). If you have this problem, do the following:

create a constraints.txt file and add the line:

cffi==1.13.2

This will prevent this package's specific cffi dependency version from being installed, in favor of 1.13.2 which apparently works.

Then run pip install -c constraints.txt django-alexa to apply that constraint to the pip installation.

My result from doing this:

(venv) Austins-iMac:fie2020 huntaj$ pip install -c constraints.txt django-alexa 
Collecting django-alexa
  Using cached django_alexa-0.0.9-py2.py3-none-any.whl (20 kB)
Collecting coveralls==1.5.1
  Using cached coveralls-1.5.1-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: alabaster==0.7.12 in ./venv/lib/python3.8/site-packages (from django-alexa) (0.7.12)
Collecting snowballstemmer==1.2.1
  Using cached snowballstemmer-1.2.1-py2.py3-none-any.whl (64 kB)
Requirement already satisfied: six==1.12.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (1.12.0)
Collecting urllib3==1.24.1
  Using cached urllib3-1.24.1-py2.py3-none-any.whl (118 kB)
Requirement already satisfied: pycparser==2.19 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.19)
Requirement already satisfied: ansimarkup==1.4.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (1.4.0)
Collecting imagesize==1.1.0
  Using cached imagesize-1.1.0-py2.py3-none-any.whl (4.4 kB)
Requirement already satisfied: better-exceptions-fork==0.2.1.post6 in ./venv/lib/python3.8/site-packages (from django-alexa) (0.2.1.post6)
Requirement already satisfied: docopt==0.6.2 in ./venv/lib/python3.8/site-packages (from django-alexa) (0.6.2)
Requirement already satisfied: pyparsing==2.3.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.3.0)
Collecting chardet==3.0.4
  Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting requests==2.21.0
  Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting babel==2.6.0
  Using cached Babel-2.6.0-py2.py3-none-any.whl (8.1 MB)
Requirement already satisfied: cffi==1.13.2 in ./venv/lib/python3.8/site-packages (from -c constraints.txt (line 1)) (1.13.2)
Requirement already satisfied: pygments==2.3.1 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.3.1)
Collecting coverage==4.5.2
  Using cached coverage-4.5.2.tar.gz (384 kB)
Requirement already satisfied: idna==2.8 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.8)
Collecting cryptography==2.4.2
  Using cached cryptography-2.4.2-cp34-abi3-macosx_10_6_intel.whl (1.5 MB)
Collecting pbr==5.1.1
  Using cached pbr-5.1.1-py2.py3-none-any.whl (106 kB)
Collecting sphinx==1.8.3
  Using cached Sphinx-1.8.3-py2.py3-none-any.whl (3.1 MB)
Requirement already satisfied: pytz==2018.9 in ./venv/lib/python3.8/site-packages (from django-alexa) (2018.9)
Requirement already satisfied: jinja2==2.10 in ./venv/lib/python3.8/site-packages (from django-alexa) (2.10)
Requirement already satisfied: djangorestframework==3.9.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (3.9.0)
Requirement already satisfied: markupsafe==1.1.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (1.1.0)
Requirement already satisfied: certifi==2018.11.29 in ./venv/lib/python3.8/site-packages (from django-alexa) (2018.11.29)
Collecting packaging==18.0
  Using cached packaging-18.0-py2.py3-none-any.whl (21 kB)
Collecting pyversion3==0.5.12
  Using cached pyversion3-0.5.12-py2.py3-none-any.whl (8.9 kB)
Collecting sphinx-rtd-theme==0.4.2
  Using cached sphinx_rtd_theme-0.4.2-py2.py3-none-any.whl (6.4 MB)
Collecting pyopenssl==18.0.0
  Using cached pyOpenSSL-18.0.0-py2.py3-none-any.whl (53 kB)
Collecting docutils==0.14
  Using cached docutils-0.14-py3-none-any.whl (543 kB)
Requirement already satisfied: loguru==0.2.4 in ./venv/lib/python3.8/site-packages (from django-alexa) (0.2.4)
Requirement already satisfied: asn1crypto==0.24.0 in ./venv/lib/python3.8/site-packages (from django-alexa) (0.24.0)
Collecting pycryptodome==3.7.2
  Using cached pycryptodome-3.7.2.tar.gz (7.2 MB)
Collecting django==2.1.5
  Using cached Django-2.1.5-py3-none-any.whl (7.3 MB)
Collecting sphinxcontrib-websupport==1.1.0
  Using cached sphinxcontrib_websupport-1.1.0-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: colorama in ./venv/lib/python3.8/site-packages (from ansimarkup==1.4.0->django-alexa) (0.4.3)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from sphinx==1.8.3->django-alexa) (41.2.0)
Using legacy setup.py install for coverage, since package 'wheel' is not installed.
Using legacy setup.py install for pycryptodome, since package 'wheel' is not installed.
ERROR: pyversion3 0.5.12 has requirement colorama==0.4.1, but you'll have colorama 0.4.3 which is incompatible.
ERROR: django-alexa 0.0.9 has requirement cffi==1.11.5, but you'll have cffi 1.13.2 which is incompatible.
Installing collected packages: chardet, urllib3, requests, coverage, coveralls, snowballstemmer, imagesize, babel, cryptography, pbr, docutils, sphinxcontrib-websupport, packaging, sphinx, pyversion3, sphinx-rtd-theme, pyopenssl, pycryptodome, django, django-alexa
    Running setup.py install for coverage ... done
    Running setup.py install for pycryptodome ... done
Successfully installed babel-2.6.0 chardet-3.0.4 coverage-4.5.2 coveralls-1.5.1 cryptography-2.4.2 django-2.1.5 django-alexa-0.0.9 docutils-0.14 imagesize-1.1.0 packaging-18.0 pbr-5.1.1 pycryptodome-3.7.2 pyopenssl-18.0.0 pyversion3-0.5.12 requests-2.21.0 snowballstemmer-1.2.1 sphinx-1.8.3 sphinx-rtd-theme-0.4.2 sphinxcontrib-websupport-1.1.0 urllib3-1.24.1