Skip to content
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

Support for Python 3.13 #1428

Closed
desaxce opened this issue Oct 12, 2024 · 1 comment
Closed

Support for Python 3.13 #1428

desaxce opened this issue Oct 12, 2024 · 1 comment
Labels
bug Something isn't working needs-triage

Comments

@desaxce
Copy link
Collaborator

desaxce commented Oct 12, 2024

Python 3.13 is out and requires numpy 2.1.0.

So pip install chainlit fails with a 3.13 python on step Collecting numpy<2.0,>=1.26 (from chainlit):

      [30/299] Compiling C++ object numpy/core/libnpymath.a.p/src_npymath_halffloat.cpp.o
      FAILED: numpy/core/libnpymath.a.p/src_npymath_halffloat.cpp.o
      c++ -Inumpy/core/libnpymath.a.p -Inumpy/core -I../numpy/core -Inumpy/core/include -I../numpy/core/include -I../numpy/core/src/npymath -I../numpy/core/src/common -I/Users/desaxce/miniconda3/envs/test-chainlit-3-13/include/python3.13 -I/private/var/folders/6p/174thhgd0q7cx2_pcrxs8gmh0000gn/T/pip-install-ryz42rz9/numpy_d194ba82b605457da433f9e234575608/.mesonpy-x6wv80ku/meson_cpu -fcolor-diagnostics -DNDEBUG -Wall -Winvalid-pch -std=c++17 -O3 -ftrapping-math -DNPY_HAVE_CLANG_FPSTRICT -DNPY_HAVE_NEON_VFPV4 -DNPY_HAVE_NEON_FP16 -DNPY_HAVE_NEON -DNPY_HAVE_ASIMD -MD -MQ numpy/core/libnpymath.a.p/src_npymath_halffloat.cpp.o -MF numpy/core/libnpymath.a.p/src_npymath_halffloat.cpp.o.d -o numpy/core/libnpymath.a.p/src_npymath_halffloat.cpp.o -c ../numpy/core/src/npymath/halffloat.cpp
      In file included from ../numpy/core/src/npymath/halffloat.cpp:12:
      In file included from ../numpy/core/src/common/common.hpp:8:
      ../numpy/core/src/common/utils.hpp:10:10: fatal error: 'type_traits' file not found
         10 | #include <type_traits>
            |          ^~~~~~~~~~~~~
      1 error generated.
      [31/299] Generating 'numpy/core/libloops_hyperbolic.dispatch.h_baseline.a.p/loops_utils.h'
      [32/299] Generating 'numpy/core/libloops_hyperbolic.dispatch.h_baseline.a.p/loops.h'
      [33/299] Compiling C object numpy/core/libnpymath.a.p/src_npymath_npy_math.c.o
      [34/299] Generating 'numpy/core/libloops_hyperbolic.dispatch.h_baseline.a.p/loops_hyperbolic.dispatch.c'
      [35/299] Compiling C object numpy/core/libnpymath.a.p/meson-generated_npy_math_complex.c.o
      [36/299] Generating 'numpy/core/libloops_logical.dispatch.h_baseline.a.p/loops.h'
      [37/299] Generating 'numpy/core/libloops_logical.dispatch.h_baseline.a.p/loops_utils.h'
      [38/299] Compiling C object numpy/core/_multiarray_tests.cpython-313-darwin.so.p/src_common_npy_hashtable.c.o
      [39/299] Compiling C object numpy/core/_multiarray_tests.cpython-313-darwin.so.p/src_common_npy_argparse.c.o
      [40/299] Compiling C object numpy/core/_multiarray_tests.cpython-313-darwin.so.p/src_common_mem_overlap.c.o
      [41/299] Compiling C object numpy/core/_multiarray_tests.cpython-313-darwin.so.p/meson-generated__multiarray_tests.c.o
      ninja: build stopped: subcommand failed.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@dosubot dosubot bot added the bug Something isn't working label Oct 12, 2024
@dokterbob dokterbob mentioned this issue Oct 14, 2024
10 tasks
@dokterbob
Copy link
Collaborator

Closing this in favour of #1430 where work & tracking is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants