MIC-DKFZ / niicat

This is a tool to quickly preview nifti images on the terminal
GNU General Public License v2.0
51 stars 10 forks source link

BF: .tobytes() to avoid ctypes.ArgumentError: argument 2: <class TypeError>: wrong type #5

Closed yarikoptic closed 4 years ago

yarikoptic commented 4 years ago

Solution borrowed from https://github.com/fastai/fastai/issues/2170#issuecomment-635680946

For me niicat shows nothing, but I might still need to learn in which terminal app and with what settings it should work, but at least it does not crash.... update: tested in xterm (instead of gnome-terminal) -- seems to work!

wasserth commented 4 years ago

Thanks for your pull request. Unfortunately it is resulting in an error: AttributeError: 'bytes' object has no attribute 'tobytes'