floooh / oryol-samples

Oryol extension module samples
MIT License
82 stars 16 forks source link

On a new Linux box: error: /home/shlomo/dev/production/ui/oryol-samples/src/KC85-3/test.vox is not a VOX file! #21

Open ghost opened 3 years ago

ghost commented 3 years ago

image

floooh commented 3 years ago

I get that error on Windows too. I guess it's a python2 vs python3 problem:

https://github.com/floooh/oryol-samples/blob/424f4bce7929bb6002753be3537cdb2033d8cc19/fips-generators/ImportVox.py#L74-L80

The file is opened as binary (since it's a binary data file), but then the file compares the first 4 bytes against a string. Since python3 no longer treats byte streams and strings as interchangeably, I guess this check fails now in python3 (the ImportVox.py script was written against python2)

ghost commented 3 years ago

My friend, I have been trying for a day or two ... to compile one single example ... either from here: http://floooh.github.io/oryol-samples/ or your wonderful chip-test library (see my issues here) with no luck. I really hope something works.