Ir al contenido
Menú
Se marcó esta pregunta
9 Respuestas
21231 Vistas

I have rebooted the server and refreshed the browser, but I still can't export?

What else do I have to do?

Avatar
Descartar
Mejor respuesta

This is how I addressed this:

sudo pip install xlwt 

I thought v11 was using all Python 3 libraries, but I guess not for this one.
Avatar
Descartar

Wait, are you sure Ray? How on earth can an Odoo using Python 3 be using another library in Python 2.x? I'm amazed/confused now.

All I know is that's what fixed the problem. I have no idea why!

Mejor respuesta

hello try this 

sudo apt-get install python-pypdf2 python-dateutil python-feedparser python-ldap python-libxslt1 python-lxml python-mako python-openid python-psycopg2 python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi python-docutils python-psutil python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y

sudo pip3 install pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psycopg2 psutil html2text docutils lxml pillow reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser

sudo pip3 install pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psycopg2 psutil html2text docutils lxml pillow reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser xlwt

 

Avatar
Descartar

I installed every packages but still same error.

Any solution?

Thanks for the support.

at your disposal ;)

Mejor respuesta

Odoo 11

I installed xlwt library for python3 like this:

sudo pip3 install xlwt

but keep in mind that there is a limitation to Excel 97-2003 exporting. The limit is set to 65535 rows. Consider splitting the export.



Avatar
Descartar
Mejor respuesta

I solve the issue like this:

Odoo 11(or other version using pyhton 3.x) 

  • sudo pip3 install xlwt 

  • reboot the Odoo instance

Odoo another version ( using pyhton 2.x) 

  • sudo pip install xlwt 

  • reboot the Odoo instance

Avatar
Descartar