atanunq / viu

Terminal image viewer with native support for iTerm and Kitty
MIT License
2.53k stars 56 forks source link

Viu incompatible with python 3.8 #33

Closed CaspianA1 closed 4 years ago

CaspianA1 commented 4 years ago

File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

jugmac00 commented 4 years ago

Uhm, isn't viu a Rust application?

atanunq commented 4 years ago

Yes, could you please elaborate?

CaspianA1 commented 4 years ago

I'm calling it from Python and I recently installed Python 3.8, and from there it stopped working. This is what is looks like when I use viu in xterm:

****-MacBook-Air:OTF_ASCII *****$ viu sprite_00.png Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/bin/viu", line 8, in sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 764, in call return self.main(*args, kwargs) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, ctx.params) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/click/core.py", line 555, in invoke return callback(*args, kwargs) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/viu/viu.py", line 184, in main Viu(file_path.read_text()).main() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/pathlib.py", line 1228, in read_text return f.read() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte **-MacBook-Air:OTF_ASCII ***$

I am not sure why it is giving me these errors, but it mentions python though.

atanunq commented 4 years ago

Thanks for reporting! Debugging on Mac has been on my todo list for a while. I will try to get my hands on one soon.

CaspianA1 commented 4 years ago

Thanks! And also another problem with Mac is that it doesn’t display colors accurately - just wanted to let you know.

Caspian

On Mar 9, 2020, at 9:52 AM, Atanas Yankov notifications@github.com wrote:

 Thanks for reporting! Debugging on Mac has been on my todo list for a while. I will try to get my hands on one soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.