You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I entered this command 'statik --watch', it throw the following error.
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\project.py", line 109, in generate
self.db = self.load_db_data(self.models)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\project.py", line 212, in load_db_data
error_context=self.error_context
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 89, in init
self.create_db(models)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 123, in create_db
self.load_all_model_data(models)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 135, in load_all_model_data
self.load_model_data(model_data_path, model)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 204, in load_model_data
self.load_model_data_collection(path, model)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 216, in load_model_data_collection
collection = yaml.load(f.read())
TypeError: load() missing 1 required positional argument: 'Loader'
2023-09-17 22:43:32,859 statik.project ERROR Error: Failed to build project. Run Statik in verbose mode (-v) to see additional traceback information about this error. (in file "C:\Users\DELL\Desktop\website\statik-master\statik-master\examples\blog\data\Tag_all.yml"). Additional error detail: load() missing 1 required positional argument: 'Loader'
The text was updated successfully, but these errors were encountered:
Then, I edited the database.py under statik site_packages module, and I added the loader parameter collection = yaml.load(f.read(), Loader=yaml.Loader)
When I entered this command 'statik --watch', it throw the following error.
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\project.py", line 109, in generate
self.db = self.load_db_data(self.models)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\project.py", line 212, in load_db_data
error_context=self.error_context
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 89, in init
self.create_db(models)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 123, in create_db
self.load_all_model_data(models)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 135, in load_all_model_data
self.load_model_data(model_data_path, model)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 204, in load_model_data
self.load_model_data_collection(path, model)
File "c:\users\dell\appdata\local\programs\python\python36\lib\site-packages\statik\database.py", line 216, in load_model_data_collection
collection = yaml.load(f.read())
TypeError: load() missing 1 required positional argument: 'Loader'
2023-09-17 22:43:32,859 statik.project ERROR Error: Failed to build project. Run Statik in verbose mode (-v) to see additional traceback information about this error. (in file "C:\Users\DELL\Desktop\website\statik-master\statik-master\examples\blog\data\Tag_all.yml"). Additional error detail: load() missing 1 required positional argument: 'Loader'
The text was updated successfully, but these errors were encountered: