sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
253 stars 241 forks source link

TypeError: a bytes-like object is required, not 'str' #865

Closed quozl closed 4 years ago

quozl commented 4 years ago
Traceback (most recent call last):
  File "/usr/lib/python3.7/dist-packages/jarabe/journal/palettes.py", line 398, in __copy_to_volume_cb
    model.copy(metadata, self._mount_point)
  File "/usr/lib/python3.7/dist-packages/jarabe/journal/model.py", line 700, in copy
    ready_callback=ready_callback)
  File "/usr/lib/python3.7/dist-packages/jarabe/journal/model.py", line 740, in write
    metadata, file_path, ready_callback=ready_callback)
  File "/usr/lib/python3.7/dist-packages/jarabe/journal/model.py", line 859, in _write_entry_on_external_device
    os.write(fh, metadata_json)
TypeError: a bytes-like object is required, not 'str'

Blocking test of https://github.com/sugarlabs/log-activity/pull/9 because the collect file cannot be easily obtained.