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 run into the problem that anthem isn't finding odoo anymore if requirements from requirements.txt inside the child container contain dependencies to Odoo.
The reason seams to be that Odoo gets installed in the parent container with 'pip install -e'.
I did some research but don't have any conclusion yet and hope you maybe have an idea. It seams to have something to do with namespace packages. Pip packaged Odoo modules adds namespace_packages: ['odoo', 'odoo.addons'] inside setup.py for the module.
I was able to run anthem inside the container again after removal of the corresponding nspkg.pth from dist-packages.
This has been worked on and solved by @sbidoul in acsone/odoo-autodiscover#3.
I will update the minimal example with the final solution as soon as the final release of the library has happened.
I tried to integrate the OCA approach of installing Odoo addons via pip instead of importing external source repositories.
More about this can be found here and here.
Also I prepared a minimal example based on https://github.com/camptocamp/test-odoo-project demonstrating this for the example of installing
disable_odoo_online
from OCA server-tools here: camptocamp/test-odoo-project@master...codingforfun:pip-issuehttps://github.com/codingforfun/test-odoo-project/tree/pip-issue
I run into the problem that anthem isn't finding odoo anymore if requirements from requirements.txt inside the child container contain dependencies to Odoo.
The reason seams to be that Odoo gets installed in the parent container with 'pip install -e'.
I did some research but don't have any conclusion yet and hope you maybe have an idea. It seams to have something to do with namespace packages. Pip packaged Odoo modules adds
namespace_packages: ['odoo', 'odoo.addons']
inside setup.py for the module.I was able to run anthem inside the container again after removal of the corresponding nspkg.pth from dist-packages.
Some relevant references I found:
The error log I get from
docker-compose up --build
:The text was updated successfully, but these errors were encountered: