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

[16.0l10n_it_delivery_note] Error migrations/16.0.1.1.0/post-migration.py" #3671

Closed
mlopesbjj opened this issue Oct 18, 2023 · 2 comments
Closed
Labels

Comments

@mlopesbjj
Copy link

mlopesbjj commented Oct 18, 2023

Module

16.0 l10n_it_delivery_note

Describe the bug

Ho provato aggiornare il modulo OCA nell'ambiente odoo.sh 16.0, però quando stà faccendo il build va in errore.

To Reproduce

Scarichi il modulo OCA e dopo fai commit sul'ambiente ODOO.SH

Steps to reproduce the behavior:

  1. Aggiorna il modulo OCA
  2. Fai commit

Additional context
module l10n_it_delivery_note: Unable to load post-migration file /home/odoo/src/user/OCA/l10n-italy/l10n_it_delivery_note/migrations/16.0.1.1.0/post-migration.py
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/modules/migration.py", line 180, in migrate_module
mod = load_script(pyfile, name)
File "/home/odoo/src/odoo/odoo/modules/migration.py", line 25, in load_script
spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/odoo/src/user/OCA/l10n-italy/l10n_it_delivery_note/migrations/16.0.1.1.0/post-migration.py", line 1, in
from openupgradelib import openupgrade # pylint: disable=W7936
ModuleNotFoundError: No module named 'openupgradelib'

Failed to load registry
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/modules/registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 484, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 372, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/src/odoo/odoo/modules/loading.py", line 236, in load_module_graph
migrations.migrate_module(package, 'post')
File "/home/odoo/src/odoo/odoo/modules/migration.py", line 180, in migrate_module
mod = load_script(pyfile, name)
File "/home/odoo/src/odoo/odoo/modules/migration.py", line 25, in load_script
spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/odoo/src/user/OCA/l10n-italy/l10n_it_delivery_note/migrations/16.0.1.1.0/post-migration.py", line 1, in
from openupgradelib import openupgrade # pylint: disable=W7936
ModuleNotFoundError: No module named 'openupgradelib'

image

@mlopesbjj mlopesbjj added the bug label Oct 18, 2023
@andreampiovesana
Copy link
Contributor

andreampiovesana commented Oct 18, 2023 via email

@mlopesbjj
Copy link
Author

@andreampiovesana grazie per la risposta. Ho scaricato il modulo di OCA git@github.com:OCA/OpenUpgrade.git dopo di questo èd andato. Grazie.

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

No branches or pull requests

2 participants