Odoo Help

Welcome!

This community 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.

0

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

By
Ismail Tabtabai
on 2/11/16, 12:36 AM 1,463 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"/>
</record>
2016-02-11 05:21:21,350 7667 ERROR ademo openerp.service.db: CREATE DATABASE failed:
.
.
.
OperationalError: Unable to use a closed cursor.
.
.
.


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

 Sorry,

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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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