Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when run "python plot_dcca.py" error occurs #167

Open
zqudm opened this issue Mar 4, 2023 · 2 comments
Open

when run "python plot_dcca.py" error occurs #167

zqudm opened this issue Mar 4, 2023 · 2 comments

Comments

@zqudm
Copy link

zqudm commented Mar 4, 2023

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

@jameschapman19
Copy link
Owner

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?

@jameschapman19
Copy link
Owner

Yeah it's already been raised here: tensorly/tensorly#479

So need to use Python 3.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants