-
Notifications
You must be signed in to change notification settings - Fork 929
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
[1.1.0 regression] Image files from examples don't load (on Windows) #1461
Comments
After bisecting the commits, I found this commit to be the cause: 3def79d. cc @wang-boyu |
I made a fix in https://github.com/projectmesa/mesa/tree/v1.1.1-hotfix, but this needs to be tested on Mesa-Geo. Once tested, let's release 1.1.1 ASAP (cc @jackiekazil ). I added back the local handler last so that hopefully the catch-all |
How about putting these files into a dedicated folder, e.g. This line could be updated from:
to img.src = "local/assets/".concat(shape); And similarly your local handler could be local_handler = (
r"/local/assets/(.*)",
tornado.web.StaticFileHandler,
{"path": ""},
) |
That should do. I renamed "assets" to "custom" instead. Already pushed to that branch. |
Tested and didn't see any issues with your branch and Mesa-Geo |
I guess it's working also because there's only the |
I have already tested on the wolf-sheep example. I created the v1.1.1 branch from the wrong HEAD. Was from current main, but now on top of the 1.1.0. |
@jackiekazil I have added the v1.1.1 tag. You can release to PyPI at any time. |
Thanks for looking into and fixing this so quickly! Is releasing to PyPI not automated? We should get that in the CI |
The PyPI automation is blocked by this question: #1252 (comment). |
Describe the bug
On Windows using Mesa 1.1.0, agent portrayal images don't load when running an example.
Expected behavior
Agent images load without errors in the example model.
To Reproduce
run.py
file of one of the examples (sugarscape_cg or wolf_sheep) (on Windows?)Additional context
1.0.0
1.1.0
The text was updated successfully, but these errors were encountered: