PyTango no longer works with cppTango main - 9.3-9.4 compatibility
During bulk merge event at the last Collaboration Meeting a few breaking changes got into cppTango's main branch.
-
We removed a bunch of constants from tango_const.h which are now internal to cppTango. PyTango produces compilation errors:
/home/michal/Documents/tango/pytango/ext/constants.cpp:106:43: error: no member named 'DELTA_T' in namespace 'Tango' consts_scope.attr("DELTA_T") = Tango::DELTA_T;
-
There is also an exception at startup due to TANGO_HAS_LOG4TANGO no longer being defined.
File "/home/michal/Documents/tango/pytango/build/lib.linux-x86_64-3.9/tango/__init__.py", line 83, in <module>
from ._tango import (
ImportError: cannot import name 'LogLevel' from 'tango._tango' (/home/michal/Documents/tango/pytango/build/lib.linux-x86_64-3.9/tango/_tango.cpython-39-x86_64-linux-gnu.so)
Those are simple to fix and I'll include corrections in the MR that will provide compatibility with the new Logger API from cppTango#742 (should be ready still today). But in general we should think about a strategy for handling similar problems in the future (especially if we want 9.3-9.4 compatibility in PyTango).
Additional issues for 9.4:
Edited by Anton Joubert