File "plot_dcca.py", line 12, in
from cca_zoo.deepmodels import (
File "/home/xy/.local/lib/python3.6/site-packages/cca_zoo/init.py", line 10, in
import cca_zoo.deepmodels
File "/home/xy/.local/lib/python3.6/site-packages/cca_zoo/deepmodels/init.py", line 3, in
from . import objectives
File "/home/xy/.local/lib/python3.6/site-packages/cca_zoo/deepmodels/objectives.py", line 1, in
import tensorly as tl
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/init.py", line 10, in
from .cp_tensor import (
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/cp_tensor.py", line 7, in
from ._factorized_tensor import FactorizedTensor
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/_factorized_tensor.py", line 2, in
from . import tenalg
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/tenalg/init.py", line 91, in
TenalgBackendManager.initialize_backend()
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/backend/init.py", line 291, in initialize_backend
cls.set_backend(backend_name)
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/backend/init.py", line 335, in set_backend
backend = cls.load_backend(backend)
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/tenalg/init.py", line 81, in load_backend
importlib.import_module(f"tensorly.tenalg.{backend_name}_tenalg")
File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/xy/.local/lib/python3.6/site-packages/tensorly/tenalg/core_tenalg/init.py", line 4, in
from .generalised_inner_product import inner
File "", line 1
(tensor1.shape=)
SyntaxError: invalid syntax
OK I've been made of this error already. I think it's outside my package and perhaps a problem with using python 3.6. Could you raise the issue on tensorly and see if they can help understand it?
Yeah it's already been raised here: https://github.com/tensorly/tensorly/issues/479
So need to use Python 3.7