-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Have there been any reports on cffi issues with python 3.12?
cffi 1.15.1 works in our python 3.11 environment but does not install in a 3.12 environment with the following error:
File "D:\Users\samuelr\AppData\Local\Temp\1\tmpalrix6hq\.venv\Lib\site-packages\setuptools\msvc.py", line 190, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
at ~.conda\envs\pyids312\Lib\site-packages\poetry\installation\chef.py:166 in _prepare
162│
163│ error = ChefBuildError("\n\n".join(message_parts))
164│
165│ if error is not None:
→ 166│ raise error from None
167│
168│ return path
169│
170│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with cffi (1.15.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-p
ep517 "cffi (==1.15.1)"'
I know the error is "unable to find vcvarsall.bat" but why this works in 3.11 and not in 3.12 I don't know.