I am having an issue with multipages in dash, pages not showing when I bundle my app into a .exe or .msi package. The error being the pages folder could not be found. But when I run the app.py directly it works perfectly.
Is there any specific parameters I shall add to the app.py or setup.py to make it work ?
Hi! I’m actually quite interested in how you do this. Which package are you using? - It is also hard to debug your specific problem without knowing this detail. From my experience with similar tools, I suspect that there is a configuration that you have to make so that the pages folder is correctly bundled with your other code.
It would also be great to know the folder structure of your current app and the folder structure so that the bundling works.
Could you please try to make an exe file from one of the example apps in this project? Then it would be easier to see if this is an issue with dash or if there is something in how your project is set up.
Oh, I think this has come up before, and it may not be possible to use the pages folder when building an exe file. However, it is possible to use the multi-page app features without using the pages folder. You can find instructions on how to do that here
Before making your app run without the pages folder, you could try making an executable file from this example app
Thank you for the answer, this solution also pointed me in the right direction. However, unfortunately I am still struggling with the pages. Although it now has stopped throwing the original error, it gives a 404 Page not Found error… So somehow it still is not finding the pages on runtime. Anything I can do?
EDIT:
Important note is that the non-page-based elements of the page are working just fine, such as the sidebar etc.