wjakob / nanobind

nanobind: tiny and efficient C++/Python bindings
BSD 3-Clause "New" or "Revised" License
2.14k stars 161 forks source link

[BUG]: ob_digit #610

Closed edselmalasig closed 3 weeks ago

edselmalasig commented 3 weeks ago

Problem description

nanobind/src/common.cpp:827:37: error: no member named 'ob_digit' in '_longobject' digit value_d = lo->ob_digit[0];

Reproducible example code

No response

dtourolle commented 3 weeks ago

I'd recommend checkingout/pulling the latest master branch. the ob_digit issue is related to a change between python 3.11 and python 3.12 and the latest version of nanobind solves this. I ran into the same issue with an older version of nanobind (used by nanogui) and python3.12.

nanobind/src/common.cpp:827:37: error: no member named 'ob_digit' in '_longobject'

is this in the master which is completely different: https://github.com/wjakob/nanobind/blob/master/src/common.cpp#L827

This is from version 0.3.0: https://github.com/wjakob/nanobind/blob/2bd6e48836a4bd1c9407cdb7277e80d327e1d736/src/common.cpp#L827

wjakob commented 3 weeks ago

Thanks @dtourolle!