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

Issue installing Python bindings with bundled version of pybind11 #473

Open
bunburya opened this issue Sep 3, 2024 · 0 comments
Open

Issue installing Python bindings with bundled version of pybind11 #473

bunburya opened this issue Sep 3, 2024 · 0 comments

Comments

@bunburya
Copy link

bunburya commented Sep 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant