GNOME Bugzilla – Bug 779835
Error: undefined symbol: atspi_table_cell_get_row_index
Last modified: 2017-03-13 22:35:38 UTC
When I call Atspi.TableCell.get_row_index(), I get the following error: GLib.Error: g-invoke-error-quark: Could not locate atspi_table_cell_get_row_index: 'atspi_table_cell_get_row_index': /lib64/libatspi.so.0: undefined symbol: atspi_table_cell_get_row_index (1) I can, however, get the gi.FunctionInfo for the method. I'm not (thus far) seeing this issue with other TableCell interface methods (e.g. Atspi.TableCell.get_column_index().
Steps to reproduce (in Python3 console): >>> from gi.repository import Atspi >>> Atspi.TableCell.get_row_index gi.FunctionInfo(get_row_index) >>> Atspi.TableCell.get_row_index() Traceback (most recent call last):
+ Trace 237239
If you try the same with get_column_index, you get the appropriate TypeError due to lack of argument, but the symbol is not undefined. >>> Atspi.TableCell.get_column_index gi.FunctionInfo(get_column_index) >>> Atspi.TableCell.get_column_index() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: Atspi.TableCell.get_column_index() takes exactly 1 argument (0 given)
There were a few problems. Neither GetRowIndex nor GetColumnIndex are implemented in at-spi2-atk. Instead, there is a GetPosition that returns the row and the column. atspi_table_cell_get_position was implemented but was missing a prototype. I've added a prototype and removed atspi_table_cell_get_column_index; it wouldn't have worked anyway. Calling Atspi.TableCell.get_position should get you what you need.
Thanks Mike! Any chance you could put the fix in 3.22 and roll a new release when you next have a chance?