-
Notifications
You must be signed in to change notification settings - Fork 44
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
cffi 1.15.1 install fails with python 3.12 but works with python 3.11 #33
Comments
What visual studio do you have on the machine? If I had to guess, I would imagine it is something like
Is there a reason you cannot use 1.16 which has wheels for python3.12 + windows? |
Ok I think this is it, I will reach out to my team to update to 1.16.0 |
3.12 support was only added in 1.16, which is also the first release where |
I've opened #37 to consider actually declaring a maximum supported Python version for any given CFFI release; closing this issue since it seems like OP's issue will be solved by moving to a supported CFFI release. |
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:
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.
The text was updated successfully, but these errors were encountered: