Traceback (most recent call last):


 "/usr/lib/python3.8/site-packages/ranger/core/main.py", line 203, in main

fm.loop()


 "/usr/lib/python3.8/site-packages/ranger/core/fm.py", line 376, in loop

ui.redraw()


 "/usr/lib/python3.8/site-packages/ranger/gui/ui.py", line 343, in redraw

self.draw()


 "/usr/lib/python3.8/site-packages/ranger/gui/ui.py", line 370, in draw

DisplayableContainer.draw(self)


 "/usr/lib/python3.8/site-packages/ranger/gui/displayable.py", line 257, in draw

displayable.draw()


 "/usr/lib/python3.8/site-packages/ranger/gui/widgets/view_miller.py", line 100, in draw

DisplayableContainer.draw(self)


 "/usr/lib/python3.8/site-packages/ranger/gui/displayable.py", line 257, in draw

displayable.draw()


 "/usr/lib/python3.8/site-packages/ranger/gui/widgets/browsercolumn.py", line 187, in draw

self._draw_file()


 "/usr/lib/python3.8/site-packages/ranger/gui/widgets/browsercolumn.py", line 206, in _draw_file

path = self.target.get_preview_source(self.wid, self.hei)


 "/usr/lib/python3.8/site-packages/ranger/container/file.py", line 96, in get_preview_source

return self.fm.get_preview(self, width, height)


 "/usr/lib/python3.8/site-packages/ranger/core/actions.py", line 1096, in get_preview

cacheimg = os.path.join(ranger.args.cachedir, self.sha512_encode(path))


 "/usr/lib/python3.8/site-packages/ranger/core/actions.py", line 1024, in sha512_encode

sha = sha512(stat_.st_dev)
TypeError: object supporting the buffer API required

Traceback (most recent call last):


 "/Users/martin/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/182.4129.34/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1664, in <module>

main()


 "/Users/martin/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/182.4129.34/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1658, in main

globals = debugger.run(setup['file'], None, None, is_module)


 "/Users/martin/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/182.4129.34/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1068, in run

pydev_imports.execfile(file, globals, locals)
# execute the script


 "/Users/###/Library/Application Support/JetBrains/Toolbox/apps/PyCharm-P/ch-0/182.4129.34/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile

exec(compile(contents+"\n", file, 'exec'), glob, loc)


 "/Users/###/PycharmProjects/###/models/test.py", line 44, in <module>

user_dict = model_to_dict(u, manytomany=True)


 "/Users/###/PycharmProjects/###/venv/lib/python3.6/site-packages/playhouse/shortcuts.py", line 63, in model_to_dict

for rel_obj in getattr(model, name):
TypeError: getattr(): attribute name must be string
