In questo sito utilizziamo cookies. Riguardo ad essi puoi leggere la nostra privacy policy. Per disabilitarli, configura il tuo browser di conseguenza. Se continui a usare questo sito, li stai accettando.
OK

Welcome!

Entra a far parte di una community di pubbliche amministrazioni che puntano sul software libero per la gestione dei processi interni e delle relazioni con l’esterno, mantenendo il controllo sull’evoluzione dei propri sistemi.

1

Errore installazione dati esempio

Da
Ministero Sviluppo Economico OPAC
su 02/11/17 10:25 43 visualizzazioni

Salve,

ho eseguito l'installazione come da Vostre indicazioni ma quando vado ad installare i dati di esempio mi compare il seguente errore, come mai?

Traceback (most recent call last):
  File "/opt/seedoo/ocb/openerp/http.py", line 544, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/seedoo/ocb/openerp/http.py", line 581, in dispatch
    result = self._call_function(**self.params)
  File "/opt/seedoo/ocb/openerp/http.py", line 318, in _call_function
    return self.endpoint(*args, **kwargs)
  File "/opt/seedoo/ocb/openerp/http.py", line 810, in __call__
    return self.method(*args, **kw)
  File "/opt/seedoo/ocb/openerp/http.py", line 410, in response_wrap
    response = f(*args, **kw)
  File "/opt/seedoo/ocb/addons/web/controllers/main.py", line 705, in create
    request.session.authenticate(params['db_name'], 'admin', params['create_admin_pwd'])
  File "/opt/seedoo/ocb/openerp/http.py", line 963, in authenticate
    uid = dispatch_rpc('common', 'authenticate', [db, login, password, env])
  File "/opt/seedoo/ocb/openerp/http.py", line 115, in dispatch_rpc
    result = dispatch(method, params)
  File "/opt/seedoo/ocb/openerp/service/common.py", line 26, in dispatch
    return fn(*params)
  File "/opt/seedoo/ocb/openerp/service/common.py", line 37, in exp_authenticate
    res_users = openerp.registry(db)['res.users']
  File "/opt/seedoo/ocb/openerp/__init__.py", line 68, in registry
    return modules.registry.RegistryManager.get(database_name)
  File "/opt/seedoo/ocb/openerp/modules/registry.py", line 339, in get
    update_module)
  File "/opt/seedoo/ocb/openerp/modules/registry.py", line 370, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/seedoo/ocb/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/seedoo/ocb/openerp/modules/loading.py", line 179, in load_module_graph
    _load_data(cr, module_name, idref, mode, kind='demo')
  File "/opt/seedoo/ocb/openerp/modules/loading.py", line 118, in _load_data
    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
  File "/opt/seedoo/ocb/openerp/tools/convert.py", line 897, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
  File "/opt/seedoo/ocb/openerp/tools/convert.py", line 983, in convert_xml_import
    obj.parse(doc.getroot(), mode=mode)
  File "/opt/seedoo/ocb/openerp/tools/convert.py", line 849, in parse
    self._tags[rec.tag](self.cr, rec, n, mode=mode)
  File "/opt/seedoo/ocb/openerp/tools/convert.py", line 759, 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/seedoo/ocb/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/addons/base/ir/ir_model.py", line 1069, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/opt/seedoo/ocb/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/api.py", line 372, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/addons/base/res/res_partner.py", line 578, in create
    partner = super(res_partner, self).create(vals)
  File "/opt/seedoo/ocb/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/models.py", line 4126, in create
    record = self.browse(self._create(old_vals))
  File "/opt/seedoo/ocb/openerp/api.py", line 266, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/api.py", line 508, in new_api
    result = method(self._model, cr, uid, *args, **old_kwargs)
  File "/opt/seedoo/ocb/openerp/models.py", line 4338, in _create
    cr, user, ids, fields2, context)
  File "/opt/seedoo/ocb/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/models.py", line 4448, in _store_set_values
    result = self._columns[val[0]].get(cr, self, ids, val, SUPERUSER_ID, context=context)
  File "/opt/seedoo/ocb/openerp/osv/fields.py", line 1462, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/opt/seedoo/ocb/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/api.py", line 399, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/seedoo/ocb/openerp/addons/base/res/res_partner.py", line 194, in _get_image
    return dict((p.id, tools.image_get_resized_images(p.image)) for p in self)
  File "/opt/seedoo/ocb/openerp/addons/base/res/res_partner.py", line 194, in <genexpr>
    return dict((p.id, tools.image_get_resized_images(p.image)) for p in self)
  File "/opt/seedoo/ocb/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/seedoo/ocb/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/seedoo/ocb/openerp/tools/image.py", line 96, in image_resize_image
    image.save(background_stream, filetype)
  File "/opt/seedoo/venv/lib/python2.7/site-packages/PIL/Image.py", line 1893, in save
    save_handler(self, fp, filename)
  File "/opt/seedoo/venv/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 604, in _save
    raise IOError("cannot write mode %s as JPEG" % im.mode)
ParseError: "cannot write mode RGBA as JPEG" while parsing /opt/seedoo/ocb/openerp/addons/base/res/res_partner_demo.xml:68, near
<record id="res_partner_1" model="res.partner">
            <field name="name">ASUSTeK</field>
            <field eval="[(6, 0, [ref('res_partner_category_13'), ref('res_partner_category_12')])]" name="category_id"/>
            <field name="supplier">1</field>
            <field eval="0" name="customer"/>
            <field name="is_company">1</field>
            <field name="city">Taipei</field>
            <field name="zip">106</field>
            <field name="country_id" ref="base.tw"/>
            <field name="street">31 Hong Kong street</field>
            <field name="email">asusteK@yourcompany.example.com</field>
            <field name="phone">(+886) (02) 4162 2023</field>
            <field name="website">http://www.asustek.com</field>
            <field name="image" type="base64" file="base/static/img/res_partner_1-image.jpg"/>
        </record>


0

Grazie della risposta. La versione installata è già quella indicata. Il prodotto è stato installato su una distribuzione Centos 7. Avete altri suggerimenti?

 


0

Dovrebbe dipendere dalla versione di Pillow utilizzata.

La versione corretta dovrebbe essere

Pillow==2.5.1



Aggiungi un commento

Resta informato

Riguardo questa comunità

Entra a far parte di una community di pubbliche amministrazioni che puntano sul software libero per la gestione dei processi interni e delle relazioni con l’esterno, mantenendo il controllo sull’evoluzione dei propri sistemi.

Question tools

11 follower(s)

Statistiche

Asked: 02/11/17 10:25
Seen: 43 times
Ultimo aggiornamento: 12/11/17 08:15