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

Unsupported resource file version #421

Closed
anderssonjohan opened this issue Oct 3, 2022 · 2 comments
Closed

Unsupported resource file version #421

anderssonjohan opened this issue Oct 3, 2022 · 2 comments

Comments

@anderssonjohan
Copy link

I'm trying out a pyxres file of mine using the web version here: https://kitao.github.io/pyxel/?edit=
The file seems to load but with this error?

Traceback (most recent call last):
  File "/lib/python3.10/_pyodide/_base.py", line 460, in eval_code
    .run(globals, locals)
  File "/lib/python3.10/_pyodide/_base.py", line 304, in run
    coroutine = eval(self.code, globals, locals)
  File "", line 1, in 
  File "/home/pyodide/pyxel/cli.py", line 134, in edit_pyxel_resource
    pyxel.editor.App(pyxel_resource_file)
  File "/home/pyodide/pyxel/editor/app.py", line 45, in __init__
    pyxel.load(resource_file)
pyo3_runtime.PanicException: Unsupported resource file version '1.8.9'

I installed 1.8.9 some days ago and I suspect that the web player either is out of date or uses the newer 1.8.10 version?
More importantly, how can I upgrade my resource files to work with a newer version?

@anderssonjohan
Copy link
Author

Just confirmed the error locally by installing 1.8.10 with pipx install --suffix 1810 pyxel==1.8.10:

Traceback (most recent call last):
  File "/Users/user/.local/bin/pyxel1810", line 8, in <module>
    sys.exit(cli())
  File "/Users/user/.local/pipx/venvs/pyxel1810/lib/python3.10/site-packages/pyxel/cli.py", line 23, in cli
    edit_pyxel_resource(sys.argv[2] if num_args == 3 else None)
  File "/Users/user/.local/pipx/venvs/pyxel1810/lib/python3.10/site-packages/pyxel/cli.py", line 134, in edit_pyxel_resource
    pyxel.editor.App(pyxel_resource_file)
  File "/Users/user/.local/pipx/venvs/pyxel1810/lib/python3.10/site-packages/pyxel/editor/app.py", line 45, in __init__
    pyxel.load(resource_file)
pyo3_runtime.PanicException: Unsupported resource file version '1.8.9'

@kitao
Copy link
Owner

kitao commented Oct 3, 2022

Pyxel Web is independent from your local Pyxel. So the version number of Pyxel in your environment is nothing to do with this error. But yes, I found a version checking bug. It goes wrong when the version number's digit is greater than 1.
I fixed it and made an emergency release as 1.8.11.
Please try it.

@kitao kitao closed this as completed Oct 5, 2022
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

2 participants