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][BUG] ValueError: can only parse strings #163465

Open
Senpaixyz opened this issue Apr 26, 2024 · 2 comments
Open

[17.0][BUG] ValueError: can only parse strings #163465

Senpaixyz opened this issue Apr 26, 2024 · 2 comments

Comments

@Senpaixyz
Copy link

Senpaixyz commented Apr 26, 2024

Impacted versions: 17.0

Steps to reproduce: Pull the latest commit then restart development local server then go to Settings

Current behavior: File "src\lxml\parser.pxi", line 1912, in lxml.etree._parseMemoryDocument

Expected behavior: Supposedly there's no error should show up since I just pull the previous updates from 17.0 branch

Video/Screenshot link (optional):

parser-pxi-error
@bluesmooth22
Copy link

bluesmooth22 commented Apr 29, 2024

Im getting the same issue, hope anyone got a fix.

2024-04-29 02:37:37,060 14735 ERROR wproduction17c odoo.modules.registry: Failed to load registry 
Traceback (most recent call last):
  File "/home/odoo/community/odoo/odoo/modules/registry.py", line 113, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/home/odoo/community/odoo/odoo/modules/loading.py", line 476, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/home/odoo/community/odoo/odoo/modules/loading.py", line 364, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/home/odoo/community/odoo/odoo/modules/loading.py", line 249, in load_module_graph
    env['ir.ui.view']._validate_module_views(module_name)
  File "/home/odoo/community/odoo/odoo/addons/base/models/ir_ui_view.py", line 2103, in _validate_module_views
    view._check_xml()
  File "/home/odoo/community/odoo/odoo/addons/base/models/ir_ui_view.py", line 382, in _check_xml
    raise err from None
  File "/home/odoo/community/odoo/odoo/addons/base/models/ir_ui_view.py", line 372, in _check_xml
    combined_arch = view._get_combined_arch()
  File "/home/odoo/community/odoo/odoo/addons/base/models/ir_ui_view.py", line 949, in _get_combined_arch
    arch = root.with_prefetch(tree_views._prefetch_ids)._combine(hierarchy)
  File "/home/odoo/community/odoo/odoo/addons/base/models/ir_ui_view.py", line 867, in _combine
    combined_arch = etree.fromstring(self.arch)
  File "src/lxml/etree.pyx", line 3252, in lxml.etree.fromstring
  File "src/lxml/parser.pxi", line 1912, in lxml.etree._parseMemoryDocument
odoo.exceptions.ValidationError: Error while parsing or validating view:

can only parse strings
2024-04-29 02:37:37,060 14735 WARNING wproduction17c odoo.http: Error while parsing or validating view:

can only parse strings 

@vava-odoo
Copy link
Contributor

There were a few problems with lxlm lately, please have a look here #163370

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

3 participants