SimWrapper Deployment #499
-
|
SimWrapper Deployment I am reaching out regarding an execution issue I am encountering with the simwrapper package in my local development environment. I am attempting to deploy a configuration (config.yaml) that defines local storage paths (C:, D:, etc.). The server works when launched raw, but the configuration commands fail to start the server process. I am using:
Could you advise on the best approach to ensure the run command correctly initializes and loads the configuration file? It appears there may be an issue with how the entry point scripts are calling the main Python functions. Thank you for developing SimWrapper—it is a valuable tool, and I look forward to resolving this so I can continue my test. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Beta Was this translation helpful? Give feedback.
-
|
Hi Billy, Thanks for the quick response! I really appreciate you looking into this. I agree, the simple Best regards, |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for sending the file. From the screenshots, it looks like the app is correctly navigating your folder structure: I can see the "breadcrumbs" at the top showing
Please let me know the results of these tests. And again, if you can find a way to supply me with that OMX file it would be a big help. Fingers crossed! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
This is all really helpful, thanks for taking the time to explain it. And now I think I have tracked down the problem, and I'm working on a solution. I will let you know when I have something for you to test. |
Beta Was this translation helpful? Give feedback.
-
|
I've uploaded version 4.2.0 to pypi. Please upgrade with
and then This release also includes some other fixes and changes. Let me know how it works for you, especially if the problems continue! |
Beta Was this translation helpful? Give feedback.
-
|
Hi Billy, Thank you for your efforts updating simwrapper. I've installed version 4.2.0 and it looks like we’ve made some progress. I was able to successfully load INFO:waitress:Serving on http://0.0.0.0:4999 However, when I dragged in the geojson file, the loading failed again. INFO:waitress:Serving on http://[::]:4999 Please let me know if I may have missed a step or if there’s anything I should try to consistently load the matrices. In the meantime, could you kindly provide steps for other alternatives to deploy SimWrapper or access files outside of the Python tool? I’d like to try those as well. Thanks again for your help! |
Beta Was this translation helpful? Give feedback.
-
|
Ok I am continuing to investigate this. This is working for me here on all of my test data for multiple cities and on Windows/Mac and various browsers. :-/ But we will solve it. So if I understand correctly, the site loads, and now you can navigate to a skims.omx file, and when you load that you can see the matrix table view. But when you drag in the boundary file, it fails. That's correct? Is it possible to zip up and share the GeoJSON file? What is its filename? Regarding other methods of using SimWrapper: (2) You can also use SimWrapper directly without the Python installer, from https://simwrapper.app. Using Chrome or Edge, click "View Local Files" to navigate to data on a local or network folder. But that method will be noticeably slower than the Python approach, because the browser will have to download the entire OMX file before it can load the visualization. If your OMX files are gigabytes in size like SANDAG, this is going to be unusably slow. Ultimately when we get this working, I want to add a config option in that YAML file so that you don't need to drag/drop the geojson boundary file anymore -- it will "just work". But let's get this solved first.... |
Beta Was this translation helpful? Give feedback.
-
|
I did find one typo in an error message that was causing those "cannot access local variable {e}" messages. I don't think this is the root of the problem, but please upgrade to version 4.2.1 just in case. Thanks, and apologies for the continued trouble. |
Beta Was this translation helpful? Give feedback.
-
|
This is fixed in release 4.3 and above. I'll mark this as resolved shortly. @cherryqliu if this release is also working for you, please mark this question as answered! Thanks =) |
Beta Was this translation helpful? Give feedback.
-
|
Hi Billy, Thank you again for your help with deploying SimWrapper. I really appreciate your patience in troubleshooting the issues with me and providing such quick, clear solutions. Best, |
Beta Was this translation helpful? Give feedback.



This is fixed in release 4.3 and above. I'll mark this as resolved shortly. @cherryqliu if this release is also working for you, please mark this question as answered! Thanks =)