Traceback (most recent call last):


 "calibre\gui2\preferences\plugins.py", line 316, 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):


 "/usr/bin/platformio", line 9, in <module>

load_entry_point('platformio==4.2.0', 'console_scripts', 'platformio')()


 "/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 542, in load_entry_point


 "/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 2569, in load_entry_point


 "/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 2229, in load


 "/usr/lib/python2.7/site-packages/setuptools-22.0.5-py2.7.egg/pkg_resources/__init__.py", line 2235, in resolve


 "/usr/lib/python2.7/site-packages/platformio/__main__.py", line 21, in <module>

from platformio import __version__, exception, maintenance, util


 "/usr/lib/python2.7/site-packages/platformio/maintenance.py", line 24, in <module>

from platformio.commands.lib import CTX_META_STORAGE_DIRS_KEY


 "/usr/lib/python2.7/site-packages/platformio/commands/lib.py", line 29, in <module>

from platformio.package.manifest.schema import ManifestSchema


 "/usr/lib/python2.7/site-packages/platformio/package/manifest/schema.py", line 17, in <module>

import marshmallow


 "/usr/lib/python2.7/site-packages/marshmallow/__init__.py", line 1, in <module>

from marshmallow.schema import Schema, SchemaOpts


 "/usr/lib/python2.7/site-packages/marshmallow/schema.py", line 131

klass: type,

^
SyntaxError: invalid syntax
