You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having issues installing the Python bindings on ArchLinux using Python 3.12 (using pip install .). The output is long but this seems to be the pertinent issue:
In file included from /home/alan/bergamot-translator/3rd_party/pybind11/include/pybind11/cast.h:16,
from /home/alan/bergamot-translator/3rd_party/pybind11/include/pybind11/attr.h:13,
from /home/alan/bergamot-translator/3rd_party/pybind11/include/pybind11/pybind11.h:13,
from /home/alan/bergamot-translator/3rd_party/pybind11/include/pybind11/iostream.h:22,
from /home/alan/bergamot-translator/bindings/python/bergamot.cpp:1:
/home/alan/bergamot-translator/3rd_party/pybind11/include/pybind11/detail/type_caster_base.h: In function ‘std::string pybind11::detail::error_string()’:
/home/alan/bergamot-translator/3rd_party/pybind11/include/pybind11/detail/type_caster_base.h:482:26: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
482 | frame = frame->f_back;
| ^~
Using my current system version of pybind11 (2.13.5) fixes the issue. I also tested installation with v2.13.5 in Python 3.10 and 3.8 and it works as well. So I would suggest shipping with that version.
The text was updated successfully, but these errors were encountered:
I was having issues installing the Python bindings on ArchLinux using Python 3.12 (using
pip install .
). The output is long but this seems to be the pertinent issue:Using my current system version of pybind11 (2.13.5) fixes the issue. I also tested installation with v2.13.5 in Python 3.10 and 3.8 and it works as well. So I would suggest shipping with that version.
The text was updated successfully, but these errors were encountered: