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

[orocos-kdl-python] python3.11 PyFrameObject #237

Open
acxz opened this issue May 8, 2023 · 2 comments
Open

[orocos-kdl-python] python3.11 PyFrameObject #237

acxz opened this issue May 8, 2023 · 2 comments

Comments

@acxz
Copy link
Owner

acxz commented May 8, 2023

/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h: In function ‘pybind11::function pybind11::detail::get_type_override(const void*, const type_info*, const char*)’:
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2163:49: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
 2163 |     PyFrameObject *frame = PyThreadState_Get()->frame;
      |                                                 ^~~~~
      |                                                 cframe
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2164:52: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2164 |     if (frame != nullptr && (std::string) str(frame->f_code->co_name) == name
      |                                                    ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2165:17: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2165 |         && frame->f_code->co_argcount > 0) {
      |                 ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2168:18: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2168 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                  ^~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
In file included from /usr/include/python3.11/Python.h:35:
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2168:30: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2168 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                              ^~~~~~~~~~~~~~~~
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
In file included from /usr/include/python3.11/Python.h:38:
/home/acxz/.cache/yay/orocos-kdl-python/src/orocos_kinematics_dynamics-1.5.1/python_orocos_kdl/pybind11/include/pybind11/pybind11.h:2168:30: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 2168 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                              ^~~~~~~~~~~~~~~~
@acxz
Copy link
Owner Author

acxz commented May 15, 2023

From @Hydra_cn on the aur

quick fix for the python3.11 PyFrameObject problem: change the pkgver_pybind11 to f70165463328c218d118204efc13aac93783d17b and the second sha512sum to 5ea82b4176680c6dab6b0e5bb76d65cd2e01425d8f8f6d98451eb9eacac36b056c6c40fd16f4ad5a25eda6e5e843c85855438e6e074e7b77b10e6ef58e35ed91 in PKGBUILD

@acxz
Copy link
Owner Author

acxz commented May 15, 2023

patched with above solution in 2bb9958

@acxz acxz added the patched label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant