In server mode there was a TypeError raise by h5py on some unicode
TypeError: No conversion path for dtype: dtype('<U*')
see https://github.com/h5py/h5py/issues/289
This commit in a temporary work-around until h5py get fixed
attrs = dict_like.keys()
for name in attrs:
if dict_like[name] is not None:
+ print (name, dict_like[name])
h5group.attrs[str(name)] = dict_like[name]
self.from_stack = False
self.stack = stack
- self.uri = get_uri(uri)
+ self.uri = get_uri(uri).encode('utf8')
if not sha1:
self._sha1 = get_sha1(uri)
else:
- self._sha1 = sha1
+ self._sha1 = sha1.encode('utf8')
self.uri_total_duration = get_media_uri_info(self.uri)['duration']