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
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/__main__.py", line 163, in <module>
main(sys.argv[1:])
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/__main__.py", line 143, in main
migration = Migration(
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/migration.py", line 109, in __init__
self._get_migration_scripts()
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/migration.py", line 222, in _get_migration_scripts
self._migration_scripts.extend(self._load_migration_script(full_name))
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/migration.py", line 173, in _load_migration_script
module = importlib.import_module(full_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/migration_scripts/migrate_160_170.py", line 14, in <module>
class AbstractVisitor(ast.NodeVisitor):
File "/home/bt-crodriguez/odoo-module-migrator/odoo_module_migrate/migration_scripts/migrate_160_170.py", line 35, in AbstractVisitor
def add_change(self, old_node: ast.AST, new_node: ast.AST | str):
TypeError: unsupported operand type(s) for |: 'type' and 'type'
Module
odoo-module-migrator
Describe the bug
running the following command
Returns this error
To Reproduce
Affected versions:
Developer mode
Steps to reproduce the behavior:
Follow steps from https://github.com/OCA/odoo-module-migrator/blob/master/DEVELOP.rst
Expected behavior
No error appears or at least explains where it's failing exactly
Additional context
Ubuntu 20.04.6 LTS, python3.8
The text was updated successfully, but these errors were encountered: