Bonjour à tous,
Je vous souhaite une bonne année. Pleine de réussite avec Dokos.
Sinon, je viens de lancer une mise à jour ce matin. J’obtient l’erreur suivante:
Updating DocTypes for frappe : [================================== ] 87%Queued rebuilding of search index for sje.bzh
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/pierre/dokos-bench/apps/frappe/frappe/utils/bench_helper.py", line 108, in <module>
main()
File "/home/pierre/dokos-bench/apps/frappe/frappe/utils/bench_helper.py", line 19, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/pierre/dokos-bench/env/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/pierre/dokos-bench/apps/frappe/frappe/commands/__init__.py", line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File "/home/pierre/dokos-bench/apps/frappe/frappe/commands/site.py", line 570, in migrate
SiteMigration(
File "/home/pierre/dokos-bench/apps/frappe/frappe/migrate.py", line 175, in run
self.run_schema_updates()
File "/home/pierre/dokos-bench/apps/frappe/frappe/migrate.py", line 41, in wrapper
ret = method(*args, **kwargs)
File "/home/pierre/dokos-bench/apps/frappe/frappe/migrate.py", line 113, in run_schema_updates
frappe.model.sync.sync_all()
File "/home/pierre/dokos-bench/apps/frappe/frappe/model/sync.py", line 21, in sync_all
sync_for(app, force, reset_permissions=reset_permissions)
File "/home/pierre/dokos-bench/apps/frappe/frappe/model/sync.py", line 86, in sync_for
import_file_by_path(
File "/home/pierre/dokos-bench/apps/frappe/frappe/modules/import_file.py", line 148, in import_file_by_path
import_doc(
File "/home/pierre/dokos-bench/apps/frappe/frappe/modules/import_file.py", line 237, in import_doc
delete_old_doc(doc, reset_permissions)
File "/home/pierre/dokos-bench/apps/frappe/frappe/modules/import_file.py", line 274, in delete_old_doc
for df in doc.meta.get_table_fields():
File "/home/pierre/dokos-bench/apps/frappe/frappe/model/meta.py", line 212, in get_table_fields
return self._table_fields
AttributeError: 'Meta' object has no attribute '_table_fields'. Did you mean: 'get_table_fields'?
zsh: exit 1 bench update --restart-supervisor
Que puis-je faire ?