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
I use another library that reloads modules on request. I get this following beanie error though. any thoughts / suggestions?
Error reloading 'beanie.odm.documents'
Traceback (most recent call last):
File "build/x64/py39/res/release/pyxll.py", line 1108, in _open
File "build/x64/py39/res/release/pyxll.py", line 9525, in reload
File "C:\Users\xyz\anaconda3\envs\fincad_env_v4\lib\imp.py", line 314, in reload
return importlib.reload(module)
File "C:\Users\xyz\anaconda3\envs\fincad_env_v4\lib\importlib\__init__.py", line 169, in reload
_bootstrap._exec(spec, module)
File "<frozen importlib._bootstrap>", line 613, in _exec
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:\Users\xyz\AppData\Roaming\Python\Python39\site-packages\beanie\odm\documents.py", line 98, in <module>
class Document(
File "C:\Users\xyz\AppData\Roaming\Python\Python39\site-packages\beanie\odm\documents.py", line 153, in Document
def fill_back_refs(cls, values):
File "pydantic\class_validators.py", line 134, in pydantic.class_validators.root_validator.dec
File "pydantic\class_validators.py", line 156, in pydantic.class_validators._prepare_validator
pydantic.errors.ConfigError: duplicate validator function "beanie.odm.documents.Document.fill_back_refs"; if this is intended, set `allow_reuse=True`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I use another library that reloads modules on request. I get this following beanie error though. any thoughts / suggestions?
Beta Was this translation helpful? Give feedback.
All reactions