Odoo Help


Unable to use a closed cursor When choosing to Load demonstration data

Ismail Tabtabai
on 2/11/16, 12:36 AM 2,379 views

Odoo 9.0 on Ubuntu 15.10

Only when ticking the "Load demonstration data" do I get this error.

Without this option everything works great.

Some of the errors in the log file:

  File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 417, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
ParseError: "decoder jpeg not available" while parsing /opt/odoo/openerp/addons/base/base_demo.xml:38, near
<record id="user_demo" model="res.users">
<field name="partner_id" ref="base.partner_demo"/>
<field name="login">demo</field>
<field name="password">demo</field>
<field name="signature">--
Mr Demo</field>
<field name="company_id" ref="main_company"/>
<field name="groups_id" eval="[(6,0,[ref('base.group_user'), ref('base.group_partner_manager')])]"/>
<field name="image" type="base64" file="base/static/img/user_demo-image.jpg"/>
2016-02-11 05:21:21,350 7667 ERROR ademo openerp.service.db: CREATE DATABASE failed:
OperationalError: Unable to use a closed cursor.

Ismail Tabtabai
On 2/11/16, 1:06 AM


I just dug further and solved the problem by:

apt-get libjpeg-dev libjpeg62 libjpeg62-dev zlib1g-dev libfreetype6 libfreetype6-dev -y
pip install Pillow --upgrade

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/11/16, 12:36 AM
Seen: 2379 times
Last updated: 2/11/16, 2:22 AM