-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
-
First Check
- I added a very descriptive title here.
- I used the GitHub search to find a similar question and didn't find it.
- I searched in the documentation/README.
- I already searched in Google "How to do X" and didn't find any information.
- I already read and followed all the tutorial in the docs/README and didn't find an answer.
Commit to Help
- I commit to help with one of those options 👆
Example Code
Hi guys, I got 3.13 python version as I do `uv sync` get me into this. I am on mac -m1.
uv -V
uv 0.4.20 (Homebrew 2024年10月08日)
python3 -V
Python 3.13.0
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: httptools==0.6.1
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
krsna@Amits-MacBook-Pro backend % uv sync
Using CPython 3.13.0 interpreter at: /Library/Frameworks/Python.framework/Versions/3.13/bin/python3
Creating virtual environment at: .venv
Resolved 81 packages in 1ms
Built app @ file:///Users/x/Documents/gits/full-stack-fastapi-template/backen
error: Failed to prepare distributions
Caused by: Failed to fetch wheel: httptools==0.6.1
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
[stdout]
running bdist_wheel
running build
running build_py
creating build/lib.macosx-10.13-universal2-cpython-313/httptools
copying httptools/_version.py -> build/lib.macosx-10.13-universal2-cpython-313/httptools
copying httptools/__init__.py -> build/lib.macosx-10.13-universal2-cpython-313/httptools
creating build/lib.macosx-10.13-universal2-cpython-313/httptools/parser
copying httptools/parser/__init__.py -> build/lib.macosx-10.13-universal2-cpython-313/httptools/parser
copying httptools/parser/errors.py -> build/lib.macosx-10.13-universal2-cpython-313/httptools/parser
running egg_info
writing httptools.egg-info/PKG-INFO
writing dependency_links to httptools.egg-info/dependency_links.txt
writing requirements to httptools.egg-info/requires.txt
writing top-level names to httptools.egg-info/top_level.txt
reading manifest file 'httptools.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'httptools.egg-info/SOURCES.txt'
running build_ext
building 'httptools.parser.parser' extension
creating build/temp.macosx-10.13-universal2-cpython-313/httptools/parser
creating build/temp.macosx-10.13-universal2-cpython-313/vendor/llhttp/src
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -I/Users/krsna/.cache/uv/sdists-v4/pypi/httptools/0.6.1/izeOvc0qkIHfNCtzb2C0O/httptools-0.6.1.tar.gz/vendor/llhttp/include -I/Users/krsna/.cache/uv/sdists-v4/pypi/httptools/0.6.1/izeOvc0qkIHfNCtzb2C0O/httptools-0.6.1.tar.gz/vendor/llhttp/src -I/Users/krsna/.cache/uv/builds-v0/.tmpoK1K8m/include -I/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13 -c httptools/parser/parser.c -o build/temp.macosx-10.13-universal2-cpython-313/httptools/parser/parser.o -O2
[stderr]
/Users/krsna/.cache/uv/builds-v0/.tmpoK1K8m/lib/python3.13/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
httptools/parser/parser.c:849:59: warning: 'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
849 | static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
| ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/unicodeobject.h:10:1: note: 'Py_UNICODE' has been explicitly marked deprecated here
10 | Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE;
| ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
| ^
httptools/parser/parser.c:850:11: warning: 'Py_UNICODE' is deprecated [-Wdeprecated-declarations]
850 | const Py_UNICODE *u_end = u;
| ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/unicodeobject.h:10:1: note: 'Py_UNICODE' has been explicitly marked deprecated here
10 | Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE;
| ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/pyport.h:251:54: note: expanded from macro 'Py_DEPRECATED'
251 | #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
| ^
httptools/parser/parser.c:3531:23: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
3531 | __pyx_v_err_pos = llhttp_get_error_pos(__pyx_v_self->_cparser);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
httptools/parser/parser.c:9940:70: error: too few arguments to function call, expected 6, have 5
9938 | int ret = _PyLong_AsByteArray((PyLongObject *)v,
| ~~~~~~~~~~~~~~~~~~~
9939 | bytes, sizeof(val),
9940 | is_little, !is_unsigned);
| ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
| ^ ~~~~~~~~~~~~~~~~
112 | unsigned char* bytes, size_t n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113 | int little_endian, int is_signed, int with_exceptions);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
httptools/parser/parser.c:10136:70: error: too few arguments to function call, expected 6, have 5
10134 | int ret = _PyLong_AsByteArray((PyLongObject *)v,
| ~~~~~~~~~~~~~~~~~~~
10135 | bytes, sizeof(val),
10136 | is_little, !is_unsigned);
| ^
/Library/Frameworks/Python.framework/Versions/3.13/include/python3.13/cpython/longobject.h:111:17: note: '_PyLong_AsByteArray' declared here
111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
| ^ ~~~~~~~~~~~~~~~~
112 | unsigned char* bytes, size_t n,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113 | int little_endian, int is_signed, int with_exceptions);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 2 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
Description
Download project and run uv sync on m1 with Python 3.13.x
Operating System
macOS
Operating System Details
M1, 2020
Python Version
3.13.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions
The error seems to be caused by the Python version. �So I fixed by pinning it to 3.12.7.
Replies: 5 comments
-
I have the same problem on a fresh setup on a fresh mac with a fresh python install.
Beta Was this translation helpful? Give feedback.
All reactions
-
There isn't a prebuilt wheel for httptools for 3.13.0 yet. If you lock your version to 3.12.7 using pyenv then it's fine.
Beta Was this translation helpful? Give feedback.
All reactions
-
The error seems to be caused by the Python version. �So I fixed by pinning it to 3.12.7.
Beta Was this translation helpful? Give feedback.
All reactions
-
do:
cd backend/
uv python pin 3.12.7
uv sync
should work fine
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 4
-
That worked! I was on 3.9.6.
Beta Was this translation helpful? Give feedback.