Traceback (most recent call last):


 "calibre/gui2/preferences/plugins.py", line 317, in add_plugin


 "calibre/customize/ui.py", line 472, in add_plugin


 "calibre/customize/ui.py", line 61, in load_plugin


 "calibre/customize/zipplugin.py", line 293, in load


 "importlib/__init__.py", line 127, in import_module


 "<frozen importlib._bootstrap>", line 1014, in _gcd_import


 "<frozen importlib._bootstrap>", line 991, in _find_and_load


 "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 671, in _load_unlocked


 "calibre/customize/zipplugin.py", line 185, in exec_module


 "calibre/customize/zipplugin.py", line 181, in get_code


 "calibre_plugins.dedrm.__init__", line 169

print u"{0} v{1}: Copying needed library files from plugin's zip".format(PLUGIN_NAME, PLUGIN_VERSION)

^
SyntaxError: invalid syntax

Traceback (most recent call last):


 "main.py", line 5, in <module>

from model import CaptionGenerator


 "D:\AI_Prj\image_captioning-master\model.py", line 4, in <module>

from base_model import BaseModel


 "D:\AI_Prj\image_captioning-master\base_model.py", line 13, in <module>

from utils.coco.pycocoevalcap.eval import COCOEvalCap


 "D:\AI_Prj\image_captioning-master\utils\coco\pycocoevalcap\eval.py", line 3, in <module>

from utils.coco.pycocoevalcap.bleu.bleu import Bleu


 "D:\AI_Prj\image_captioning-master\utils\coco\pycocoevalcap\bleu\bleu.py", line 11, in <module>

from utils.coco.pycocoevalcap.bleu.bleu_scorer import BleuScorer


 "D:\AI_Prj\image_captioning-master\utils\coco\pycocoevalcap\bleu\bleu_scorer.py", line 60

def cook_test(test, (reflen, refmaxcounts), eff=None, n=4):

^
SyntaxError: invalid syntax 