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

python 3.11 throws an error. #1654

Open
blackcross86 opened this issue Apr 19, 2023 · 2 comments
Open

python 3.11 throws an error. #1654

blackcross86 opened this issue Apr 19, 2023 · 2 comments
Assignees
Milestone

Comments

@blackcross86
Copy link

/usr/include/python3.11/object.h:107:28: note: in expansion of macro '_Py_CAST'
  107 | #define _PyObject_CAST(op) _Py_CAST(PyObject*, (op))
      |                            ^~~~~~~~
/usr/include/python3.11/object.h:136:31: note: in expansion of macro '_PyObject_CAST'
  136 | #  define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
      |                               ^~~~~~~~~~~~~~
/usr/include/python3.11/tupleobject.h:27:38: note: in expansion of macro 'Py_TYPE'
   27 |                  PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TUPLE_SUBCLASS)
      |                                      ^~~~~~~
PythonQt.cpp:2361:26: note: in expansion of macro 'PyTuple_Check'
 2361 |                 Q_ASSERT(PyTuple_Check(code->co_varnames));
      |                          ^~~~~~~~~~~~~
PythonQt.cpp:2363:58: error: 'PyCodeObject' {aka 'struct PyCodeObject'} has no member named 'co_varnames'; did you mean 'co_names'?
 2363 |                   PyObject* name = PyTuple_GetItem(code->co_varnames, i);
      |                                                          ^~~~~~~~~~~
      |                                                          co_names
PythonQt.cpp:2368:55: error: 'PyCodeObject' {aka 'struct PyCodeObject'} has no member named 'co_varnames'; did you mean 'co_names'?
 2368 |                   PyObject* s = PyTuple_GetItem(code->co_varnames, nargs);
      |                                                       ^~~~~~~~~~~
      |                                                       co_names
PythonQt.cpp:2374:55: error: 'PyCodeObject' {aka 'struct PyCodeObject'} has no member named 'co_varnames'; did you mean 'co_names'?
 2374 |                   PyObject* s = PyTuple_GetItem(code->co_varnames, nargs);
      |                                                       ^~~~~~~~~~~
      |                                                       co_names
make[6]: *** [Makefile:645: .build/x86-release/obj/PythonQt.o] Error 1
make[6]: Leaving directory '/root/trik-studio/BUILD/trik-studio-2022.2/plugins/robots/thirdparty/trikRuntime/trikRuntime/PythonQt/PythonQt/src'
make[5]: *** [Makefile:48: sub-PythonQt-src-make_first] Error 2
make[4]: *** [Makefile:52: sub--root-trik-studio-BUILD-trik-studio-2022-

Rosa Linux

Python 3.11 causes the build to fail.

@iakov
Copy link
Member

iakov commented Apr 21, 2023

Thanks for reporting. This is the same as trikset/trik-pythonqt#14

@iakov iakov added this to the 2023.1 milestone Apr 21, 2023
@iakov iakov self-assigned this Apr 21, 2023
@blackcross86
Copy link
Author

Yes, thanks.The build was successful

@iakov iakov modified the milestones: 2023.1, next-version Oct 9, 2023
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

2 participants