I am converting my code from python 2.7 to python 3. When I do this I get the following error message -
Traceback (most recent call last):
File "lin_tran_check.py", line 161, in <module>
main()
File "lin_tran_check.py", line 36, in main
A =
o3d.lt('A')
File "/home/brombo/galgebra-master/galgebra/ga.py", line 522, in lt
return lt.Lt(*kargs, **kwargs)
File "/home/brombo/galgebra-master/galgebra/lt.py", line 214, in __init__
self.__init__(Amat, ga=self.Ga)
File "/home/brombo/galgebra-master/galgebra/lt.py", line 198, in __init__
self.lt_dict = Matrix_to_dictionary(mat_rep, self.Ga.basis)
File "/home/brombo/galgebra-master/galgebra/lt.py", line 91, in Matrix_to_dictionary
dict_rep[basis[row]] += mat_rep[row,col]*basis[col]
File "/usr/local/lib/python3.5/dist-packages/sympy-1.2-py3.5.egg/sympy/matrices/expressions/matexpr.py", line 298, in __getitem__
return self._entry(i, j)
File "/usr/local/lib/python3.5/dist-packages/sympy-1.2-py3.5.egg/sympy/matrices/expressions/transpose.py", line 54, in _entry
return self.arg._entry(j, i, expand=expand)
TypeError: _entry() got an unexpected keyword argument 'expand'
In my python 3 version accessing the matrix element "mat_rep[row,col]" gives the above error trace. In this case the statement is the same
in my 2.7 version as well as my 3 version, but the 2.7 version gives no error trace. Do you have any idea what is wrong?