I had a sub-directory in my application directory that was not accessible by my user. Therefore I had put it in my .py4web_ignore file, but this caused an error during the processing of the files/directories by the dashboard.
Fix in the dashboard application:
--- a/apps/_dashboard/__init__.py
+++ b/apps/_dashboard/__init__.py
@@ -294,7 +294,7 @@ def walk(path):
[
{"name": d, "content": store[os.path.join(root, d)]}
for d in dirs
- if visible(root, d)
+ if visible(root, d) and os.path.join(root, d) in store
],
key=lambda item: item["name"],
)