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

Error on installing warehouse module

By
Zouhair
on 4/15/15, 4:53 AM 615 views

hi

im trying to install warehouse module on odoo 7 under ubuntu 14.04 64bit with python 2.7.6, but i get this error


any help to solve that.


thanx in advance.


Client Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/http.py", line 204, in dispatch

response["result"] = method(self, **self.params)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/controllers/main.py", line 1132, in call_button

action = self._call_kw(req, model, method, args, {})

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/controllers/main.py", line 1120, in _call_kw

return getattr(req.session.model(model), method)(*args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/session.py", line 42, in proxy

result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/session.py", line 30, in proxy_method

result = self.session.send(self.service_name, method, *args)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/session.py", line 103, in send

raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/web/session.py", line 89, in send

return openerp.netsvc.dispatch_rpc(service_name, method, args)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/netsvc.py", line 296, in dispatch_rpc

result = ExportService.getService(service_name).dispatch(method, params)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/service/web_services.py", line 626, in dispatch

res = fn(db, uid, *params)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/osv.py", line 190, in execute_kw

return self.execute(db, uid, obj, method, *args, **kw or {})

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/osv.py", line 132, in wrapper

return f(self, dbname, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/osv.py", line 199, in execute

res = self.execute_cr(cr, uid, obj, method, *args, **kw)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/osv.py", line 187, in execute_cr

return getattr(object, method)(cr, uid, *args, **kw)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/base/module/module.py", line 426, in button_immediate_install

return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/base/module/module.py", line 477, in _button_immediate_function

_, pool = pooler.restart_pool(cr.dbname, update_module=True)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/pooler.py", line 39, in restart_pool

registry = RegistryManager.new(db_name, force_demo, status, update_module)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/modules/registry.py", line 233, in new

openerp.modules.load_modules(registry.db, force_demo, status, update_module)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/modules/loading.py", line 354, in load_modules

loaded_modules, update_module)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/modules/loading.py", line 256, in load_marked_modules

loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/modules/loading.py", line 188, in load_module_graph

load_data(module_name, idref, mode)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/modules/loading.py", line 76, in <lambda>

load_data = lambda *args: _load_data(cr, *args, kind='data')

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/modules/loading.py", line 124, in _load_data

tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/tools/convert.py", line 959, in convert_xml_import

obj.parse(doc.getroot())

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/tools/convert.py", line 852, in parse

self._tags[rec.tag](self.cr, rec, n)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/tools/convert.py", line 819, in _tag_record

id = self.pool.get('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 "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/base/ir/ir_model.py", line 971, in _update

res_id = model_obj.create(cr, uid, values, context=context)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/mail/mail_group.py", line 137, in create

mail_group_id = super(mail_group, self).create(cr, uid, vals, context=context)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/mail/mail_thread.py", line 252, in create

thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/orm.py", line 4561, in create

self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/orm.py", line 4688, in _store_set_values

result = self._columns[val[0]].get(cr, self, ids, val, SUPERUSER_ID, context=context)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/osv/fields.py", line 1145, in get

result = self._fnct(obj, cr, uid, ids, name, self._arg, context)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/addons/mail/mail_group.py", line 41, in _get_image

result[obj.id] = tools.image_get_resized_images(obj.image)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/tools/image.py", line 170, in image_get_resized_images

return_dict[medium_name] = image_resize_image_medium(base64_source, avoid_if_small=avoid_resize_medium)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/tools/image.py", line 108, in image_resize_image_medium

return image_resize_image(base64_source, size, encoding, filetype, avoid_if_small)

File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20140804_231303-py2.7.egg/openerp/tools/image.py", line 93, in image_resize_image

image.save(background_stream, filetype)

File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 1406, in save

self.load()

File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFile.py", line 189, in load

d = Image._getdecoder(self.mode, d, a, self.decoderconfig)

File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 385, in _getdecoder

raise IOError("decoder %s not available" % decoder_name)

IOError: decoder zip not available

0
Zouhair
On 4/15/15, 6:19 AM

it solved for ubuntu 14.04 64bit

sudo apt-get install libjpeg62 libjpeg62-dev zlib1g-dev libfreetype6 libfreetype6-dev libreadline6-dev libncurses5-dev libjpeg-dev libfreetype6-dev libgraphicsmagick++-dev build-dep python-imaging

sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib

sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib

sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib

sudo ln -s /lib/x86_64-linux-gnu/libz.so.1 /lib/libz.so

sudo ln -s /usr/include/freetype2 /usr/include/freetype

cd /usr/local/lib/python2.7/dist-packages

sudo rm -Rf PIL/ && sudo rm PIL.pth //if exsiste

wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz

tar -xzvf Imaging-1.1.7.tar.gz

cd Imaging-1.1.7

sudo python setup.py install

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: 4/15/15, 4:53 AM
Seen: 615 times
Last updated: 4/15/15, 6:19 AM