Skip to content
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

[17.0] Odoo SH meli_oerp as submodule DistributionNotFound: The 'meli' distribution was not found and is required by the application #118

Open
onlyone-odoo opened this issue Jan 20, 2025 · 1 comment

Comments

@onlyone-odoo
Copy link

01/20/2025 10:47:16 | ERROR | server | Failed to load registry Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/modules/module.py", line 467, in check_python_external_dependency pkg_resources.get_distribution(pydep) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 471, in get_distribution dist = get_provider(dist) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 347, in get_provider return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0] File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'meli' distribution was not found and is required by the application During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/modules/module.py", line 470, in check_python_external_dependency importlib.import_module(pydep) File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1004, in _find_and_load_unlocked ModuleNotFoundError: No module named 'meli' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 351, in check_external_dependencies modules.check_manifest_dependencies(terp) File "/home/odoo/src/odoo/odoo/modules/module.py", line 489, in check_manifest_dependencies check_python_external_dependency(pydep) File "/home/odoo/src/odoo/odoo/modules/module.py", line 475, in check_python_external_dependency raise Exception('Python library not installed: %s' % (pydep,)) Exception: Python library not installed: meli During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/odoo/src/odoo/odoo/modules/registry.py", line 110, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/odoo/src/odoo/odoo/modules/loading.py", line 448, in load_modules modules.button_install() File "", line 2, in button_install File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, **kwargs) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 411, in button_install modules._state_update('to install', ['uninstalled']) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 390, in _state_update self.check_external_dependencies(module.name, newstate) File "/home/odoo/src/odoo/odoo/addons/base/models/ir_module.py", line 359, in check_external_dependencies raise UserError(msg) odoo.exceptions.UserError: Unable to install module "meli_oerp" because an external dependency is not met: Python library not installed: meli -- | -- | -- | -- 01/20/2025 10:47:16 | WARNING | server | DistributionNotFound: The 'meli' distribution was not found and is required by the application
@RafaelAngelRamirez
Copy link

You need to install the dependency with pip, but is not actually published in npm, so download directly from meli repo.

pip3 install git+https://github.com/mercadolibre/python-sdk.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants