Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

ParseError: "decoder jpeg not available" while parsing /opt/odoo8/odoo/openerp/addons/base/base_demo.xml

Subscribe

Get notified when there's activity on this post

This question has been flagged
pythonodooV8
1 Reply
3969 Views
Avatar
youta

Hello,

I've successfully installed Odoo 8 from github 

https://www.github.com/odoo/odoo --depth 1 --branch 8.0 --single-branch

on my machine and created several databases without any bugs.

Now when I try to create a new database with DEMODATA I get this error:

ParseError: "decoder jpeg not available" while parsing /opt/odoo8/odoo/openerp/addons/base/base_demo.xml


Here's the full error description:


Odoo Server Error


Traceback (most recent call last):
  File "/opt/odoo8/odoo/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo8/odoo/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo8/odoo/openerp/http.py", line 311, in _call_function
    return self.endpoint(*args, **kwargs)
  File "/opt/odoo8/odoo/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo8/odoo/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo8/odoo/addons/web/controllers/main.py", line 705, in create
    request.session.authenticate(params['db_name'], 'admin', params['create_admin_pwd'])
  File "/opt/odoo8/odoo/openerp/http.py", line 956, in authenticate
    uid = dispatch_rpc('common', 'authenticate', [db, login, password, env])
  File "/opt/odoo8/odoo/openerp/http.py", line 115, in dispatch_rpc
    result = dispatch(method, params)
  File "/opt/odoo8/odoo/openerp/service/common.py", line 26, in dispatch
    return fn(*params)
  File "/opt/odoo8/odoo/openerp/service/common.py", line 37, in exp_authenticate
    res_users = openerp.registry(db)['res.users']
  File "/opt/odoo8/odoo/openerp/__init__.py", line 68, in registry
    return modules.registry.RegistryManager.get(database_name)
  File "/opt/odoo8/odoo/openerp/modules/registry.py", line 339, in get
    update_module)
  File "/opt/odoo8/odoo/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo8/odoo/openerp/modules/loading.py", line 297, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)
  File "/opt/odoo8/odoo/openerp/modules/loading.py", line 179, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='demo')
  File "/opt/odoo8/odoo/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/odoo8/odoo/openerp/tools/convert.py", line 901, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/odoo8/odoo/openerp/tools/convert.py", line 987, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/odoo8/odoo/openerp/tools/convert.py", line 853, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
  File "/opt/odoo8/odoo/openerp/tools/convert.py", line 763, in _tag_record
    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/addons/base/ir/ir_model.py", line 1064, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/addons/base/res/res_users.py", line 849, in create
    return super(users_view, self).create(cr, uid, values, context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/addons/base/res/res_users.py", line 647, in create
    user_id = super(users_implied, self).create(cr, uid, values, context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/addons/base/res/res_users.py", line 331, in create
    user_id = super(res_users, self).create(cr, uid, vals, context=context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/api.py", line 360, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/models.py", line 4094, in create
    record = self.browse(self._create(old_vals))
  File "/opt/odoo8/odoo/openerp/api.py", line 254, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/api.py", line 496, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/opt/odoo8/odoo/openerp/models.py", line 4152, in _create
    self.pool[table].write(cr, user, [record_id], tocreate[table], context=context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/api.py", line 387, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/addons/base/res/res_partner.py", line 564, in write
    result = super(res_partner, self).write(vals)
  File "/opt/odoo8/odoo/openerp/api.py", line 254, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/models.py", line 3789, in write
    self._write(old_vals)
  File "/opt/odoo8/odoo/openerp/api.py", line 254, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/api.py", line 580, in new_api
    result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)
  File "/opt/odoo8/odoo/openerp/models.py", line 4037, in _write
    cr, user, todo, fields_to_recompute, context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/models.py", line 4410, in _store_set_values
    result = self._columns[val[0]].get(cr, self, ids, val, SUPERUSER_ID, context=context)
  File "/opt/odoo8/odoo/openerp/osv/fields.py", line 1455, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/opt/odoo8/odoo/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/api.py", line 387, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo8/odoo/openerp/addons/base/res/res_partner.py", line 191, in _get_image
    return dict((p.id, tools.image_get_resized_images(p.image)) for p in self)
  File "/opt/odoo8/odoo/openerp/addons/base/res/res_partner.py", line 191, in <genexpr>
    return dict((p.id, tools.image_get_resized_images(p.image)) for p in self)
  File "/opt/odoo8/odoo/openerp/tools/image.py", line 223, in image_get_resized_images
    return_dict[medium_name] = image_resize_image_medium(base64_source, avoid_if_small=avoid_resize_medium)
  File "/opt/odoo8/odoo/openerp/tools/image.py", line 161, in image_resize_image_medium
    return image_resize_image(base64_source, size, encoding, filetype, avoid_if_small)
  File "/opt/odoo8/odoo/openerp/tools/image.py", line 91, in image_resize_image
    image = image_resize_and_sharpen(image, size)
  File "/opt/odoo8/odoo/openerp/tools/image.py", line 110, in image_resize_and_sharpen
    image = image.convert('RGBA')
  File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 822, in convert
    self.load()
  File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFile.py", line 191, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 413, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
ParseError: "decoder jpeg not available" while parsing /opt/odoo8/odoo/openerp/addons/base/base_demo.xml:32, 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>

0
Avatar
Discard
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Best Answer

Hi Youta,

Have you installed all required libraries before installing Odoo? I think you've missed one. Please install the following libraries:

sudo apt-get install libjpeg-dev

sudo pip install pillow

You can find a list of all required libraries at https://github.com/odoo/odoo/blob/8.0/requirements.txt
Yenthe

1
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
[8.0]How to confirm an element's state from: action_confirm (MRP_REPAIR)
python odooV8
Avatar
1
May 21
5055
How to save data in readonly field in openerp?
python odooV8
Avatar
Avatar
Avatar
Avatar
4
Oct 19
11026
How to multiply sequence by non-int Solved
python odooV8
Avatar
Avatar
1
Jan 18
10446
Employee commission in salary rules
python odooV8
Avatar
Avatar
1
Feb 17
6057
How can I create a selection field that depend to other selection
python odooV8
Avatar
0
Jan 17
5320
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

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