Jaded-Encoding-Thaumaturgy / vs-preview

Previewer for VapourSynth scripts.
Apache License 2.0
57 stars 16 forks source link

Pip package breaks launching from sublime text #76

Open ghost opened 1 year ago

Setsugennoao commented 1 year ago

Config issue.

Setsugennoao commented 6 months ago

How can I reproduce this?

Setsugennoao commented 2 months ago

Is this still an issue

ghost commented 2 months ago

Yes

sosie-js commented 1 week ago

I discovered that the pip version has not the same code as the git. After pip3 install vspreview I fixed

  File "/home/$USER/.local/lib/python3*/site-packages/vspreview/main/window.py", line 94, in STATUS_FRAME_PROP
    return 'Type: %s' % (prop['_PictType'].decode('utf-8') if '_PictType' in prop else '?')
AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

by changing decode to encode

    # status bar
    def STATUS_FRAME_PROP(self, prop: Any) -> str:
        return 'Type: %s' % (prop['_PictType'].encode('utf-8') if '_PictType' in prop else '?')

whereas in the git it was correct.

Setsugennoao commented 1 week ago

not relevant in the slightest