twilio-python icon indicating copy to clipboard operation
twilio-python copied to clipboard

8.11.0 still not working with python 3.12 windows 10

Open jfabiani opened this issue 7 months ago • 3 comments

Issue Summary

Created a fresh install of python 3.12 on windows then used pip to install PS C:\Users\johnf> pip --version pip 23.2.1 from C:\Python312\Lib\site-packages\pip (python 3.12) PS C:\Users\johnf> pip install twilio Collecting twilio Obtaining dependency information for twilio from https://files.pythonhosted.org/packages/e1/8e/6c4abc9d3368b4ca24f74ef8cb8c4db1c26e734f7f477e6eb18b9dc030b5/twilio-8.11.0-py2.py3-none-any.whl.metadata Downloading twilio-8.11.0-py2.py3-none-any.whl.metadata (12 kB) Collecting requests>=2.0.0 (from twilio) Obtaining dependency information for requests>=2.0.0 from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting PyJWT<3.0.0,>=2.0.0 (from twilio) Obtaining dependency information for PyJWT<3.0.0,>=2.0.0 from https://files.pythonhosted.org/packages/2b/4f/e04a8067c7c96c364cef7ef73906504e2f40d690811c021e1a1901473a19/PyJWT-2.8.0-py3-none-any.whl.metadata Using cached PyJWT-2.8.0-py3-none-any.whl.metadata (4.2 kB) Collecting aiohttp>=3.8.4 (from twilio) Obtaining dependency information for aiohttp>=3.8.4 from https://files.pythonhosted.org/packages/4e/13/e929a6a50288e60ade3961b294d2f5aeb251b6579e4290a5397e484d0df9/aiohttp-3.9.1-cp312-cp312-win_amd64.whl.metadata Downloading aiohttp-3.9.1-cp312-cp312-win_amd64.whl.metadata (7.6 kB) Collecting aiohttp-retry>=2.8.3 (from twilio) Using cached aiohttp_retry-2.8.3-py3-none-any.whl (9.8 kB) Collecting attrs>=17.3.0 (from aiohttp>=3.8.4->twilio) Using cached attrs-23.1.0-py3-none-any.whl (61 kB) Collecting multidict<7.0,>=4.5 (from aiohttp>=3.8.4->twilio) Using cached multidict-6.0.4.tar.gz (51 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Collecting yarl<2.0,>=1.0 (from aiohttp>=3.8.4->twilio) Obtaining dependency information for yarl<2.0,>=1.0 from https://files.pythonhosted.org/packages/c5/f4/2fdc5a11503bc61818243653d836061c9ce0370e2dd9ac5917258a007675/yarl-1.9.4-cp312-cp312-win_amd64.whl.metadata Downloading yarl-1.9.4-cp312-cp312-win_amd64.whl.metadata (32 kB) Collecting frozenlist>=1.1.1 (from aiohttp>=3.8.4->twilio) Using cached frozenlist-1.4.0.tar.gz (90 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting aiosignal>=1.1.2 (from aiohttp>=3.8.4->twilio) Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB) Collecting charset-normalizer<4,>=2 (from requests>=2.0.0->twilio) Obtaining dependency information for charset-normalizer<4,>=2 from https://files.pythonhosted.org/packages/b6/7c/8debebb4f90174074b827c63242c23851bdf00a532489fba57fef3416e40/charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata Downloading charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata (34 kB) Collecting idna<4,>=2.5 (from requests>=2.0.0->twilio) Obtaining dependency information for idna<4,>=2.5 from https://files.pythonhosted.org/packages/c2/e7/a82b05cf63a603df6e68d59ae6a68bf5064484a0718ea5033660af4b54a9/idna-3.6-py3-none-any.whl.metadata Downloading idna-3.6-py3-none-any.whl.metadata (9.9 kB) Collecting urllib3<3,>=1.21.1 (from requests>=2.0.0->twilio) Obtaining dependency information for urllib3<3,>=1.21.1 from https://files.pythonhosted.org/packages/96/94/c31f58c7a7f470d5665935262ebd7455c7e4c7782eb525658d3dbf4b9403/urllib3-2.1.0-py3-none-any.whl.metadata Downloading urllib3-2.1.0-py3-none-any.whl.metadata (6.4 kB) Collecting certifi>=2017.4.17 (from requests>=2.0.0->twilio) Obtaining dependency information for certifi>=2017.4.17 from https://files.pythonhosted.org/packages/64/62/428ef076be88fa93716b576e4a01f919d25968913e817077a386fcbe4f42/certifi-2023.11.17-py3-none-any.whl.metadata Downloading certifi-2023.11.17-py3-none-any.whl.metadata (2.2 kB) Downloading twilio-8.11.0-py2.py3-none-any.whl (1.8 MB) ---------------------------------------- 1.8/1.8 MB 2.9 MB/s eta 0:00:00 Downloading aiohttp-3.9.1-cp312-cp312-win_amd64.whl (362 kB) ---------------------------------------- 362.9/362.9 kB 5.7 MB/s eta 0:00:00 Using cached PyJWT-2.8.0-py3-none-any.whl (22 kB) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Downloading certifi-2023.11.17-py3-none-any.whl (162 kB) ---------------------------------------- 162.5/162.5 kB 9.5 MB/s eta 0:00:00 Downloading charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl (100 kB) ---------------------------------------- 100.4/100.4 kB 6.0 MB/s eta 0:00:00 Downloading idna-3.6-py3-none-any.whl (61 kB) ---------------------------------------- 61.6/61.6 kB 3.4 MB/s eta 0:00:00 Downloading urllib3-2.1.0-py3-none-any.whl (104 kB) ---------------------------------------- 104.6/104.6 kB 5.9 MB/s eta 0:00:00 Downloading yarl-1.9.4-cp312-cp312-win_amd64.whl (76 kB) ---------------------------------------- 76.4/76.4 kB 4.4 MB/s eta 0:00:00 Building wheels for collected packages: frozenlist, multidict Building wheel for frozenlist (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for frozenlist (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [33 lines of output] ********************* * Accelerated build * ********************* running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-312 creating build\lib.win-amd64-cpython-312\frozenlist copying frozenlist_init_.py -> build\lib.win-amd64-cpython-312\frozenlist running egg_info writing frozenlist.egg-info\PKG-INFO writing dependency_links to frozenlist.egg-info\dependency_links.txt writing top-level names to frozenlist.egg-info\top_level.txt reading manifest file 'frozenlist.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '.pyc' found anywhere in distribution warning: no previously-included files matching '.pyd' found anywhere in distribution warning: no previously-included files matching '.so' found anywhere in distribution warning: no previously-included files matching '.lib' found anywhere in distribution warning: no previously-included files matching '.dll' found anywhere in distribution warning: no previously-included files matching '.a' found anywhere in distribution warning: no previously-included files matching '*.obj' found anywhere in distribution warning: no previously-included files found matching 'frozenlist*.html' no previously-included directories found matching 'docs_build' adding license file 'LICENSE' writing manifest file 'frozenlist.egg-info\SOURCES.txt' copying frozenlist_init_.pyi -> build\lib.win-amd64-cpython-312\frozenlist copying frozenlist_frozenlist.pyx -> build\lib.win-amd64-cpython-312\frozenlist copying frozenlist\py.typed -> build\lib.win-amd64-cpython-312\frozenlist running build_ext building 'frozenlist._frozenlist' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for frozenlist Building wheel for multidict (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for multidict (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [74 lines of output] ********************* * Accelerated build * ********************* running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-312 creating build\lib.win-amd64-cpython-312\multidict copying multidict_abc.py -> build\lib.win-amd64-cpython-312\multidict copying multidict_compat.py -> build\lib.win-amd64-cpython-312\multidict copying multidict_multidict_base.py -> build\lib.win-amd64-cpython-312\multidict copying multidict_multidict_py.py -> build\lib.win-amd64-cpython-312\multidict copying multidict_init_.py -> build\lib.win-amd64-cpython-312\multidict running egg_info writing multidict.egg-info\PKG-INFO writing dependency_links to multidict.egg-info\dependency_links.txt writing top-level names to multidict.egg-info\top_level.txt reading manifest file 'multidict.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files found matching 'multidict_multidict.html' warning: no previously-included files found matching 'multidict*.so' warning: no previously-included files found matching 'multidict*.pyd' warning: no previously-included files found matching 'multidict*.pyd' no previously-included directories found matching 'docs_build' adding license file 'LICENSE' writing manifest file 'multidict.egg-info\SOURCES.txt' C:\Users\johnf\AppData\Local\Temp\pip-build-env-robqj1dv\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'multidict._multilib' is absent from the packages configuration. !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'multidict._multilib' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'multidict._multilib' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'multidict._multilib' to be distributed and are
          already explicitly excluding 'multidict._multilib' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-312\multidict
  copying multidict\py.typed -> build\lib.win-amd64-cpython-312\multidict
  running build_ext
  building 'multidict._multidict' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for multidict Failed to build frozenlist multidict ERROR: Could not build wheels for frozenlist, multidict, which is required to install pyproject.toml-based projects WARNING: There was an error checking the latest version of pip. PS C:\Users\johnf> python Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25) [MSC v.1937 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import twilio Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'twilio'

Issue Summary

A summary of the issue and the environment in which it occurs. If suitable, include the steps required to reproduce the bug. Please feel free to include screenshots, screencasts, or code examples.

Steps to Reproduce

  1. This is the first step
  2. This is the second step
  3. Further steps, etc.

Code Snippet

# paste code here

Exception/Log

# paste exception/log here

Technical details:

  • twilio-python version: 8.11.0
  • python version: 3.12
  • windows 10

jfabiani avatar Dec 14 '23 15:12 jfabiani

It seems frozendict has been updated, but not multidict yet.

gaelworkstaff avatar Dec 22 '23 21:12 gaelworkstaff

It seems frozendict has been updated, but not multidict yet.

For those who are interested, there is a corresponding issue to track:

  • https://github.com/aio-libs/multidict/issues/887

Jamim avatar Dec 26 '23 03:12 Jamim

Is this still an issue?

tiwarishubham635 avatar Apr 04 '24 17:04 tiwarishubham635