Skip to content

lxml dep issue w/ ghcr.io/camptocamp/docker-odoo-project:16.0-4.5.11 #352

@fsismondi

Description

@fsismondi
🔨🔨 Install official/OCA modules 🔨🔨
/usr/local/bin/odoo:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').require('odoo==16.0')
/odoo/src/odoo/tools/appdirs.py:77: SyntaxWarning: invalid escape sequence '\*'
  """Return full path to the user-shared data dir for this application.
/odoo/src/odoo/tools/appdirs.py:188: SyntaxWarning: invalid escape sequence '\*'
  """Return full path to the user-shared data dir for this application.
/odoo/src/odoo/tools/mail.py:402: SyntaxWarning: invalid escape sequence '\s'
  html = re.sub('<br\s*/?>', '\n', html)
Traceback (most recent call last):
  File "/usr/local/bin/odoo", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/odoo/src/setup/odoo", line 5, in <module>
    import odoo
  File "/odoo/src/odoo/__init__.py", line 113, in <module>
    from . import modules
  File "/odoo/src/odoo/modules/__init__.py", line 8, in <module>
    from . import db, graph, loading, migration, module, registry, neutralize
  File "/odoo/src/odoo/modules/graph.py", line 10, in <module>
    import odoo.tools as tools
  File "/odoo/src/odoo/tools/__init__.py", line 16, in <module>
    from .mail import *
  File "/odoo/src/odoo/tools/mail.py", line 43, in <module>
    safe_attrs = clean.defs.safe_attrs | frozenset(
                 ^^^^^^^^^^
AttributeError: module 'lxml.html.clean' has no attribute 'defs'

rings a bell?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions