我正在使用jsonpickle(https://jsonpickle.github.io/)来序列化我的Python对象。但是,即使没有出错也无法导入。一切都是用pip安装的。得到以下错误:
In [2]: import jsonpickle
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-a2284d9459fb> in <module>()
----> 1 import jsonpickle
/Users/Zee/.virtualenvs/chime/lib/python2.7/site-packages/jsonpickle/__init__.py in <module>()
54
55 """
---> 56 from jsonpickle import pickler
57 from jsonpickle import unpickler
58 from jsonpickle.backend import JSONBackend
/Users/Zee/.virtualenvs/chime/lib/python2.7/site-packages/jsonpickle/pickler.py in <module>()
15 import jsonpickle.util as util
16 import jsonpickle.tags as tags
---> 17 import jsonpickle.handlers as handlers
18
19 from jsonpickle.backend import JSONBackend
/Users/Zee/.virtualenvs/chime/lib/python2.7/site-packages/jsonpickle/handlers.py in <module>()
275 return queue.Queue()
276
--> 277 QueueHandler.handles(queue.Queue)
278
279
AttributeError: 'module' object has no attribute 'Queue'