Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Sep 9, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 9, 2020

image

@floooh
Copy link
Owner

floooh commented Sep 9, 2020

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

with open(self.vox_file, 'rb') as f :
magic = f.read(4)
if magic != 'VOX ':
util.fmtError('{} is not a VOX file!'.format(self.vox_file))
version = struct.unpack('<I', f.read(4))[0]
print("VOX file '{}' version={}".format(self.vox_file, version))
self.load_chunk(f)

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
Copy link
Author

ghost commented Sep 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant