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

Import Error #841

Open
lovekittynine opened this issue Dec 21, 2020 · 1 comment
Open

Import Error #841

lovekittynine opened this issue Dec 21, 2020 · 1 comment
Labels

Comments

@lovekittynine
Copy link

Describe the bug

error occurs when import matchzoo

Describe your attempts

import matchzoo as mz
Traceback (most recent call last):
File "", line 1, in
File "/app/python_venv/lib/python3.5/site-packages/matchzoo/init.py", line 13, in
from .data_pack import DataPack
File "/app/python_venv/lib/python3.5/site-packages/matchzoo/data_pack/init.py", line 1, in
from .data_pack import DataPack, load_data_pack
File "/app/python_venv/lib/python3.5/site-packages/matchzoo/data_pack/data_pack.py", line 215
f'{data_file_path} already exist, fail to save')
^
SyntaxError: invalid syntax

Context

centos7
matchzoo 2.2.0

@takiholadi
Copy link

Try Python 3.6 or 3.7, not 3.5.

The line with SyntaxError you provided is so-called "f-string", it is available since Python 3.6.

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

No branches or pull requests

2 participants