-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError when running on Odoo.sh #3
Comments
Can you please provide a PR for this fix? |
lmignon
pushed a commit
that referenced
this issue
Jul 20, 2023
lmignon
pushed a commit
that referenced
this issue
Jul 26, 2023
lmignon
pushed a commit
that referenced
this issue
Jul 26, 2023
lmignon
pushed a commit
that referenced
this issue
Jul 26, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've added OCA/rest-framework as a submodule in our Odoo.sh environment and am using
base_rest_pydantic
successfully, but this traceback keeps showing up in the logs when starting a python interpreter or upgrading a module from the CLI. It appears to be coming from the fact that python hasn't fully loaded all the search paths at this point in the startup when the.pth
is executed.I edited
_patch.py
to add a call tosite.main()
beforeimport wrap
and it solves the error. Can provide a PR if useful.Thanks for your work on all this.
The text was updated successfully, but these errors were encountered: