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

Couldn't load module documents_hr_contract (enterprise 17) #525

Open
gertcuykens opened this issue Oct 29, 2024 · 0 comments
Open

Couldn't load module documents_hr_contract (enterprise 17) #525

gertcuykens opened this issue Oct 29, 2024 · 0 comments

Comments

@gertcuykens
Copy link

gertcuykens commented Oct 29, 2024

Broken once more 17.0-20241017, not compatible with enterprise

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 114, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 476, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 364, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 185, in load_module_graph
    load_openerp_module(package.name)
  File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 395, in load_openerp_module
    __import__(qualname)
  File "/var/lib/odoo/addons/17.0/enterprise/documents_hr_contract/__init__.py", line 5, in <module>
    from . import controllers
  File "/var/lib/odoo/addons/17.0/enterprise/documents_hr_contract/controllers/__init__.py", line 4, in <module>
    from . import main
  File "/var/lib/odoo/addons/17.0/enterprise/documents_hr_contract/controllers/main.py", line 6, in <module>
    from odoo.addons.sign.controllers.main import Sign
  File "/var/lib/odoo/addons/17.0/enterprise/sign/__init__.py", line 5, in <module>
    from . import models
  File "/var/lib/odoo/addons/17.0/enterprise/sign/models/__init__.py", line 9, in <module>
    from . import sign_request
  File "/var/lib/odoo/addons/17.0/enterprise/sign/models/sign_request.py", line 31, in <module>
    from odoo.tools.pdf import PdfFileReader, PdfFileWriter, PdfReadError
ImportError: cannot import name 'PdfReadError' from 'odoo.tools.pdf' (/usr/lib/python3/dist-packages/odoo/tools/pdf.py)
2024-10-29 10:39:02,631 7 CRITICAL odoo odoo.service.server: Failed to initialize database `odoo`.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1313, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 114, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 476, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 364, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 185, in load_module_graph
    load_openerp_module(package.name)
  File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 395, in load_openerp_module
    __import__(qualname)
  File "/var/lib/odoo/addons/17.0/enterprise/documents_hr_contract/__init__.py", line 5, in <module>
    from . import controllers
  File "/var/lib/odoo/addons/17.0/enterprise/documents_hr_contract/controllers/__init__.py", line 4, in <module>
    from . import main
  File "/var/lib/odoo/addons/17.0/enterprise/documents_hr_contract/controllers/main.py", line 6, in <module>
    from odoo.addons.sign.controllers.main import Sign
  File "/var/lib/odoo/addons/17.0/enterprise/sign/__init__.py", line 5, in <module>
    from . import models
  File "/var/lib/odoo/addons/17.0/enterprise/sign/models/__init__.py", line 9, in <module>
    from . import sign_request
  File "/var/lib/odoo/addons/17.0/enterprise/sign/models/sign_request.py", line 31, in <module>
    from odoo.tools.pdf import PdfFileReader, PdfFileWriter, PdfReadError
ImportError: cannot import name 'PdfReadError' from 'odoo.tools.pdf' (/usr/lib/python3/dist-packages/odoo/tools/pdf.py)

its fixed in 17.0-20241029, but i hope you agree this is unacceptable enterprise 17.0 production behavior, there should be CI testing enterprise compatibility

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

1 participant