Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Odoo 17 install error on Ubuntu

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
installationubuntuissuespython3odoo17
6 Respuestas
25116 Vistas
Avatar
Tom Adams

Hi all, 


I've just got into Odoo and was impressed with it after hosting it on my previous VPS. Everything worked fine and then install was smooth from the Source Install instruction on the Odoo documentation site. 

I've since then wiped that server and started it again as I've decided to use it as a dedicated utility server with Odoo. 

After a fresh install reimagine I've not been able to get to running Odoo. I get this error relating to LXML.


Error processing line 1 of /usr/lib/python3/dist-packages/distutils-precedence.pth:

  Traceback (most recent call last):
    File "", line 201, in addpackage
    File "", line 1, in
  ModuleNotFoundError: No module named '_distutils_hack'

Remainder of file ignored
Traceback (most recent call last):
  File "/var/www/accounts/odoo/odoo-bin", line 5, in
    import odoo
  File "/var/www/accounts/odoo/odoo/__init__.py", line 134, in
    from . import modules
  File "/var/www/accounts/odoo/odoo/modules/__init__.py", line 8, in
    from . import db, graph, loading, migration, module, registry, neutralize
  File "/var/www/accounts/odoo/odoo/modules/graph.py", line 11, in
    import odoo.tools as tools
  File "/var/www/accounts/odoo/odoo/tools/__init__.py", line 24, in
    from .mail import *
  File "/var/www/accounts/odoo/odoo/tools/mail.py", line 19, in
    from lxml.html import clean, defs
  File "/usr/lib/python3/dist-packages/lxml/html/clean.py", line 18, in
    raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.


I've read that there's currently an issue with Odoo and Python 3.12. But I was able to install this only a week ago for testing. I haven't got much on the previous server setup as it was a testing/staging server so was a mess. 


I'm not too great with Python and this is the first time I've come across issues such as these. If anyones got any insight that would be great.


Ubuntu 24.04 noble

Python 3.12.3

Apache2 2.4.58


Thanks. 

0
Avatar
Descartar
Tom Adams
Autor

Thanks to Savya Sachin I've made some progress, I've taken both points on board and adjusted the requirements.txt file for the installed versions. But now I've got further errors.

Error processing line 1 of /usr/lib/python3/dist-packages/distutils-precedence.pth:

Traceback (most recent call last):
File "<frozen site>", line 201, in addpackage
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named '_distutils_hack'

Remainder of file ignored
Traceback (most recent call last):
File "/var/www/accounts/odoo/odoo-bin", line 5, in <module>
import odoo
File "/var/www/accounts/odoo/odoo/__init__.py", line 134, in <module>
from . import modules
File "/var/www/accounts/odoo/odoo/modules/__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry, neutralize
File "/var/www/accounts/odoo/odoo/modules/graph.py", line 11, in <module>
import odoo.tools as tools
File "/var/www/accounts/odoo/odoo/tools/__init__.py", line 15, in <module>
from . import pdf
File "/var/www/accounts/odoo/odoo/tools/pdf.py", line 46, in <module>
from odoo.tools.misc import file_open
File "/var/www/accounts/odoo/odoo/tools/misc.py", line 43, in <module>
from lxml import etree
ModuleNotFoundError: No module named 'lxml'

I've gone through 'requirements.txt' and pointed lxml to the installed version 5.2.2 (this is what is listed on the pip -list as an installed module.

Tom Adams
Autor

Thank you again. Olivier pointing out something further, I've now rolled back from python 3.12 to 3.10.4

Still getting so many errors though of missing packages.

Is there something that I've completely missed from my previous install only a week ago? Let me know if you need more information as I'd love to get odoo working in an environment again.

Traceback (most recent call last):
File "/var/www/accounts/odoo/odoo-bin", line 5, in <module>
import odoo
File "/var/www/accounts/odoo/odoo/__init__.py", line 134, in <module>
from . import modules
File "/var/www/accounts/odoo/odoo/modules/__init__.py", line 8, in <module>
from . import db, graph, loading, migration, module, registry, neutralize
File "/var/www/accounts/odoo/odoo/modules/graph.py", line 11, in <module>
import odoo.tools as tools
File "/var/www/accounts/odoo/odoo/tools/__init__.py", line 15, in <module>
from . import pdf
File "/var/www/accounts/odoo/odoo/tools/pdf.py", line 10, in <module>
from PIL import Image, PdfImagePlugin
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 84, in <module>
from . import _imaging as core
ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)

Savya Sachin

In your odoo folder find the requirements.txt file and check for the packages lxml, pillow and any package names which are shown as not installed in the log. install the exact versions as mentioned in the txt file
Pillow==9.0.1
lxml==4.8.0

Niyas Raphy (Walnut Software Solutions)

Installing odoo 17: https://www.youtube.com/watch?v=sEQXJ_JHyMg

Niyas Raphy (Walnut Software Solutions)

Installing odoo 17: https://www.youtube.com/watch?v=sEQXJ_JHyMg

Avatar
Olivier Biltris
Mejor respuesta

Hi there. Odoo 17 is officially not compatible with versions higher than pyhon 3.10.

It's working though with python 3.11 (i tested it on a local vm).


I tried with python 3.12 but haven't got it to work yet. When I have time I will look further

0
Avatar
Descartar
Dương Nguyễn

Wrong odoo 17 compatible both for 3.10 and 3.11 and i guess 3.12 but i haven't tried. but 3.10 and 3.11 i already tried

Avatar
Jainil Joshi D.
Mejor respuesta

Hello Daniel,

I've faced the same problem while installing odoo in 24 lts

this will show an error for versions of python above 3.10 you can solve this by manually downloading wheel and other libraries which are been presented in requirements.txt or else can do by creating one separate virtual environment of python 3.10 and using the versions of requirements.txt according to python 3.10 and thus you can solve your problem. 

if you still get the error after manually downloading wheel and other libraries, if still dont get the error solved ping here again with the photo of error.

Thanks

1
Avatar
Descartar
Daniel Maio

This is the current error I'm getting from the logs:
File "/odoo/odoo-server/odoo/addons/base/models/assetsbundle.py", line 21, in <module>
import sass as libsass
File "/usr/local/lib/python3.12/dist-packages/sass.py", line 721, in <module>
class SassMap(collections.Mapping):
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Mapping'

Installing wheel manually gives the response of "Requirement already satisfied"
`Requirement already satisfied: setuptools in /usr/local/lib/python3.12/dist-packages (75.8.0)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.42.0)`

Is there a possibility that my packages might be above the specified version types causing Odoo to break?

Jainil Joshi D.

It seems
You're creating the virtual environment of python 3.12 which is a broken env for odoo systems you should try using 3.10 or try doing this :- checkout the requirements.txt(which is inside the server/version named folder in which you have gotten the pull of the server) :- there you will probably see the requirements.txt file in that try downloading every library it says by using this command :"pip install library_name and before this try to check out this youll get this kind of error:"ModuleNotFoundError: No module named 'lxml'" you need to install the library which is putted in the name of the lxml there maybe and still you get any error you can do this again upvote and i will get an email of your response thus i can answer again after i get notified.
thanks daniel.

Avatar
Daniel Maio
Mejor respuesta

I am also experiencing the same. After updating to 24.04 and a later version of Python. Wish to know if there's a fix to this.

1
Avatar
Descartar
Avatar
Hendra Prakasa
Mejor respuesta

I also facing error installing odoo 17 on ubuntu 24, when installing pythoon requirement.txt

so is it not compatible with ubuntu 24 ? 

does odoo have official documentation which version ubuntu,python that compatible ?


Installing build dependencies ... done

  Getting requirements to build wheel ... error

  error: subprocess-exited-with-error


  × Getting requirements to build wheel did not run successfully.

  │ exit code: 1

  ╰─> [10 lines of output]

      ##### setup-python-3.12.3-linux-x86_64: ================================================

      ##### setup-python-3.12.3-linux-x86_64: Attempting build of _rl_accel

      ##### setup-python-3.12.3-linux-x86_64: extensions from 'src/rl_addons/rl_accel'

      ##### setup-python-3.12.3-linux-x86_64: ================================================

      ##### setup-python-3.12.3-linux-x86_64: ===================================================

      ##### setup-python-3.12.3-linux-x86_64: Attempting build of _renderPM

      ##### setup-python-3.12.3-linux-x86_64: extensions from 'src/rl_addons/renderPM'

      ##### setup-python-3.12.3-linux-x86_64: ===================================================

      ##### setup-python-3.12.3-linux-x86_64: will use package libart 2.3.21

      !!!!! cannot find ft2build.h

      [end of output]


  note: This error originates from a subprocess, and is likely not a problem with pip.

error: subprocess-exited-with-error


× Getting requirements to build wheel did not run successfully.

│ exit code: 1

╰─> See above for output.


note: This error originates from a subprocess, and is likely not a problem with pip.


Regards,


Hendra

0
Avatar
Descartar
Avatar
Tom Adams
Autor Mejor respuesta

In the end I gave up trying to get Ubuntu 24 and Odoo 17 to work. It seems there's so many missing dependencies. It got to a point where documentation I as putting together was just becoming unusable. 

So for now, I've wiped my server and gone back to Ubuntu 22, Python 3.10 and Odoo 17. The only issues I have now are getting odoo to work through HTTPS.

0
Avatar
Descartar
Avatar
Savya Sachin
Mejor respuesta

Hi,

Try the following steps,

  • sudo apt update
  • sudo apt upgrade
  • sudo apt install git python3-pip build-essential wget python3-dev python3-venv libxml2-dev libxslt1-dev zlib1g-dev libsasl2-dev libldap2-dev libjpeg-dev libpq-dev
  • pip install --upgrade pip
  • pip install setuptools wheel
  • pip install lxml==4.9.1
  • pip install lxml[html_clean]
  • pip install --upgrade setuptools


If you continue facing issues, you might need to specify the exact versions of lxml and other dependencies in your requirements.txt file to ensure compatibility.


Thanks



0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Installing odoo 12 on ubuntu LTS 22.04
installation ubuntu
Avatar
Avatar
Avatar
2
jun 22
9232
OpenERP path on Ubuntu installation Resuelto
installation ubuntu
Avatar
Avatar
Avatar
Avatar
Avatar
7
dic 23
46720
Installation of odoo 8.0 in ubuntu problem:No such file or directory
installation ubuntu
Avatar
Avatar
Avatar
3
oct 15
9320
odoo17 tax problem
issues taxes odoo17
Avatar
1
oct 24
1682
i install odoo 17 in my GCP, Everything is good, but sometimes the site is not opening.
installation vm odoo17
Avatar
0
jul 24
1389
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Sitio web hecho con

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now