Traceback (most recent call last):


 "tmp2.py", line 13, in <module>

img_data = image.load_img(f)


 "/home/nmclean/.virtualenvs/charm/lib/python3.6/site-packages/keras_preprocessing/image/utils.py", line 113, in load_img

with open(path, 'rb') as f:
TypeError: expected str, bytes or os.PathLike object, not _io.BytesIO

Traceback (most recent call last):


 "/home/xx/run_email_services.py", line 3, in <module>

from exchangelib import DELEGATE, Account, Credentials


 "/home/xx/venv/local/lib/python2.7/site-packages/exchangelib/__init__.py", line 2, in <module>

from .account import Account
# noqa


 "/home/xx/venv/local/lib/python2.7/site-packages/exchangelib/account.py", line 15, in <module>

from .folders import Root, Calendar, DeletedItems, Drafts, Inbox, Outbox, SentItems, JunkEmail, Tasks, Contacts, \


 "/home/xx/venv/local/lib/python2.7/site-packages/exchangelib/folders.py", line 20, in <module>

from .ewsdatetime import EWSDateTime, UTC, UTC_NOW


 "/home/xx/venv/local/lib/python2.7/site-packages/exchangelib/ewsdatetime.py", line 136, in <module>

class EWSTimeZone(object):


 "/home/xx/venv/local/lib/python2.7/site-packages/exchangelib/ewsdatetime.py", line 141, in EWSTimeZone

PYTZ_TO_MS_MAP = _get_pytz_to_ms_map()


 "/home/xx/venv/local/lib/python2.7/site-packages/exchangelib/ewsdatetime.py", line 129, in _get_pytz_to_ms_map

db['UTC'] = str('UTC')


 "/usr/lib64/python2.7/shelve.py", line 133, in __setitem__

self.dict[key] = f.getvalue()


 "/usr/lib64/python2.7/bsddb/__init__.py", line 279, in __setitem__

_DeadlockWrap(wrapF)
# self.db[key] = value


 "/usr/lib64/python2.7/bsddb/dbutils.py", line 68, in DeadlockWrap

return function(*_args, **_kwargs)


 "/usr/lib64/python2.7/bsddb/__init__.py", line 278, in wrapF

self.db[key] = value
TypeError: String or Integer object expected for key, unicode found
