AttributeError: 'str' object has no attribute 'decode'
Closed this issue · 0 comments
yacchin1205 commented
In python 3, cannot load the server extensions
[W 2017-05-27 07:15:22.467 yazawa notebookapp:1279] Error loading server extension nblineage
Traceback (most recent call last):
File "/opt/conda/lib/python3.5/site-packages/traitlets/traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'server_signature'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/conda/lib/python3.5/site-packages/notebook/notebookapp.py", line 1274, in init_server_extensions
func(self)
File "/opt/conda/lib/python3.5/site-packages/nblineage/__init__.py", line 24, in load_jupyter_server_extension
sign_uuid = tracking_server.server_signature
File "/opt/conda/lib/python3.5/site-packages/traitlets/traitlets.py", line 556, in __get__
return self.get(obj, cls)
File "/opt/conda/lib/python3.5/site-packages/traitlets/traitlets.py", line 535, in get
value = self._validate(obj, dynamic_default())
File "/opt/conda/lib/python3.5/site-packages/nblineage/tracking_server.py", line 56, in _server_signature_default
sign_id = str(uuid1()).decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'