Python 3.11.0 and Meraki

PhilipDAth
Kind of a big deal

Python 3.11.0 and Meraki

I don't seem to be having a good week.  I can't get the Meraki Python module to istall.

 

I'm trying to install the Meraki Python module on a fresh install of Python 3.11.0 on Windows 10.  I do the "pip install --upgrade meraki".  It trundles along nicely, and I get the below.  This is a fresh install, with a fresh version of pip.

 

And I've never had to install "Microsoft C++ Build Tools" when installing the Meraki module before.

 

Collecting meraki
Using cached meraki-1.27.0-py3-none-any.whl (455 kB)
Requirement already satisfied: requests in c:\users\pid\appdata\local\programs\python\python311\lib\site-packages (from meraki) (2.28.1)
Collecting aiohttp
Using cached aiohttp-3.8.3-cp311-cp311-win_amd64.whl (317 kB)
Collecting attrs>=17.3.0
Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in c:\users\pid\appdata\local\programs\python\python311\lib\site-packages (from aiohttp->meraki) (2.1.1)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2.tar.gz (50 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.1.tar.gz (172 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.3-cp311-cp311-win_amd64.whl (32 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Requirement already satisfied: idna<4,>=2.5 in c:\users\pid\appdata\local\programs\python\python311\lib\site-packages (from requests->meraki) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\pid\appdata\local\programs\python\python311\lib\site-packages (from requests->meraki) (1.26.13)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\pid\appdata\local\programs\python\python311\lib\site-packages (from requests->meraki) (2022.9.24)
Building wheels for collected packages: multidict, yarl
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
╰─> [59 lines of output]
*********************
* Accelerated build *
*********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\multidict
copying multidict\_abc.py -> build\lib.win-amd64-cpython-311\multidict
copying multidict\_compat.py -> build\lib.win-amd64-cpython-311\multidict
copying multidict\_multidict_base.py -> build\lib.win-amd64-cpython-311\multidict
copying multidict\_multidict_py.py -> build\lib.win-amd64-cpython-311\multidict
copying multidict\__init__.py -> build\lib.win-amd64-cpython-311\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\pid\AppData\Local\Temp\pip-build-env-ngl_gk50\overlay\Lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning: Installing 'multidict._multilib' as data is deprecated, please list it in `packages`.
!!


############################
# Package would be ignored #
############################
Python recognizes 'multidict._multilib' as an importable package,
but it is not listed in the `packages` configuration of setuptools.

'multidict._multilib' has been automatically added to the distribution only
because it may contain data files, but this behavior is likely to change
in future versions of setuptools (and therefore is considered deprecated).

Please make sure that 'multidict._multilib' is included as a package by using
the `packages` configuration field or the proper discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).

You can read more about "package discovery" and "data files" on setuptools
documentation page.


!!

check.warn(importable)
copying multidict\__init__.pyi -> build\lib.win-amd64-cpython-311\multidict
copying multidict\py.typed -> build\lib.win-amd64-cpython-311\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
Building wheel for yarl (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
C:\Users\pid\AppData\Local\Temp\pip-build-env-pasjaz13\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
**********************
* Accelerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_url.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\__init__.py -> build\lib.win-amd64-cpython-311\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.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 '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl\*.html'
warning: no previously-included files found matching 'yarl\*.so'
warning: no previously-included files found matching 'yarl\*.pyd'
no previously-included directories found matching 'docs\_build'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-311\yarl
copying yarl\py.typed -> build\lib.win-amd64-cpython-311\yarl
running build_ext
building 'yarl._quoting_c' 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 yarl
Failed to build multidict yarl
ERROR: Could not build wheels for multidict, yarl, which is required to install pyproject.toml-based projects

4 REPLIES 4
RaphaelL
Kind of a big deal

Haven't tested Python 3.11 yet. I'm guessing that you had no issues with 'older' versions ?

PhilipDAth
Kind of a big deal

>Haven't tested Python 3.11 yet. I'm guessing that you had no issues with 'older' versions ?

 

No issues previously on older version, but this is a clean install.  I guess I could try removing it and installing an older version.

PhilipDAth
Kind of a big deal

I've removed Python 3.11 and installed 3.10, and the meraki library can be installed again.

 

Hopefully this is just a bug in Python 3.11, rather than a fundamental change being required to the Meraki library.

PhilipDAth
Kind of a big deal

Wow, Python is now available from the Microsoft Store (for Windows).  This is great, as it means security updates should automatically get installed.

 

https://apps.microsoft.com/store/detail/python-310/9PJPW5LDXLZ5 

Get notified when there are additional replies to this discussion.
Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.