Open kruegerrobotics opened 1 year ago
Hi @kruegerrobotics,
The build / installation guide states that Python 3.6 or newer is required to build the Connext DDS Python API. So I'm not sure this would be accepted as an 'Issue'.
Hope this helps.
Cheers, Thijs
Thanks, maybe just to cross check. Before on Debian 11 with Python 3.9 all was good. Now Debian 12 with almost the newest Python 3.11.2 fails. My guess it has more to do with the change of the API of pybind11 and thus the compilation fail.
I hope this helps. I basically upgraded connextdds to 7.1.0 and Debian from 11 to 12 and thus Python 3.9 to 3.11.
Kind regards,
Oh, sorry, I somehow thought 3.11 was smaller than 3.6... Time for the weekend I guess....
Ok, I get the same error when I try to build on debian:latest with docker.
I think I have an idea and get it to build
Python 3.11 release notes under PyFrameObject states that functions have been changed.
When executing pip wheel . I see that CMake is getting pybind (strangely from my /tmp dir, not sure why)
-- Found RTIConnextDDS: /opt/rti_connext_dds (found suitable version "7.1.0.0", minimum required is "7.1.0") found components: core distributed_logger
-- Found Python3: /usr/bin/python3.11 (found suitable exact version "3.11.2") found components: Interpreter Development.Module
-- Found pybind11: /tmp/pip-build-env-verwekpf/overlay/local/lib/python3.11/dist-packages/pybind11/include (found version "2.9.0")
As a quick fix:
from:
find_package(
pybind11
REQUIRED
)
to
find_package(
pybind11 2.10
REQUIRED
)
I think more checks are required and not ready for a pull request since this might break backward compatibility. Maybe a conditional Python version mechanism for the pybind version - or Why does this create a pybind 2.9.0 in the temp folder?
There seems to an issue with pybind11 and/or PyFrameObject.
Following the instructions clone (main branch) and python3 configure.py x64Linux4gcc7.3.0 execute successfully.
But when executing
the result is the following: (maybe it could be related to (https://github.com/sirfz/tesserocr/issues/298)[Python3.11 support #298]