#🔒 Nanobinds error

4 messages · Page 1 of 1 (latest)

bronze stirrup
#

C:\Users\Baptiste\Desktop\programmation\GrnGame\GrnGame\xmake\src\logging.cpp(29) : warning C4715: 'niveau_log_vers_quill_log_level' : les chemins de contrôle ne retournent pas tous une valeur
error: bindings.cpp
C:\Users\Baptiste\AppData\Local.xmake\packages\n\nanobind\v2.9.2\94727d2ac74146a8a5227aae226bee1f\include\nanobind\nb_defs.h(131): fatal error C1189: #error: "nanobind can target Python's limited API, but this requires CPython >= 3.12"

in src\bindings.cpp
PS C:\Users\Baptiste\Desktop\programmation\GrnGame\GrnGame\xmake> python --version
Python 3.12.7

in my xmake.lua : add_defines("NB_FREE_THREADED=0")
add_defines("Py_GIL_DISABLED=0")
add_defines("Py_LIMITED_API=0x030B0000")

carmine willowBOT
#

@bronze stirrup

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

carmine willowBOT
#

@bronze stirrup

Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.