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

IOError: cannot identify image file in School module...solution require

By
Debashis Das
on 4/1/14, 12:41 AM 3,780 views

I have installed "school" module in OpenErp v.7 in windows 7. But when I am going to create "Student Profile" it replies as follows :

OpenERP Server Error Client Traceback (most recent call last): File "C:\Program Files\erp-training\Server\server\openerp\addons\web\http.py", line 204, in dispatch File "C:\Program Files\erp-training\Server\server\openerp\addons\web\controllers\main.py", line 1128, in call_kw File "C:\Program Files\erp-training\Server\server\openerp\addons\web\controllers\main.py", line 1120, in _call_kw File "C:\Program Files\erp-training\Server\server\openerp\addons\web\session.py", line 42, in proxy File "C:\Program Files\erp-training\Server\server\openerp\addons\web\session.py", line 30, in proxy_method File "C:\Program Files\erp-training\Server\server\openerp\addons\web\session.py", line 103, in send

Server Traceback (most recent call last): File "C:\Program Files\erp-training\Server\server\openerp\addons\web\session.py", line 89, in send File "C:\Program Files\erp-training\Server\server.\openerp\netsvc.py", line 296, in dispatch_rpc File "C:\Program Files\erp-training\Server\server.\openerp\service\web_services.py", line 626, in dispatch File "C:\Program Files\erp-training\Server\server.\openerp\osv\osv.py", line 190, in execute_kw File "C:\Program Files\erp-training\Server\server.\openerp\osv\osv.py", line 132, in wrapper File "C:\Program Files\erp-training\Server\server.\openerp\osv\osv.py", line 199, in execute File "C:\Program Files\erp-training\Server\server.\openerp\osv\osv.py", line 187, in execute_cr File "C:\Program Files\erp-training\Server\server.\openerp\osv\orm.py", line 1594, in default_get File "C:\Program Files\erp-training\Server\server\openerp\addons\school\school.py", line 436, in <lambda> File "C:\Program Files\erp-training\Server\server\openerp\addons\school\school.py", line 456, in _get_default_image File "C:\Program Files\erp-training\Server\server.\openerp\tools\image.py", line 128, in image_colorize File "PIL\Image.pyc", line 1980, in open IOError: cannot identify image file

It will be very much helpful if anyone solve the matter

0

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 4/1/14, 7:39 AM

Hi;

To simplify, this error occurs, when trying to open a file called "avatar.png" (under ...\base\static\src\img).

This "exception IOError" is raised when the file cannot be found, or the image cannot be opened and identified for many reasons:

  1. The file is not found

  2. The file is corrupted

  3. A wrong path to the module base

  4. The format of the file is not recognized

  5. ...and so on ...

What you should do first, is to Verify the above points, before trying others investigations.

waiting for your response ...

0
Oussama CHOUGRANI
On 8/10/14, 1:47 PM

I just removed the default image default initialisation at line 438

and removed the getter function at line 458 

And now it works fine ;)

0
ahmed abdulaziz taha
On 4/14/14, 6:05 PM

try to make this line as a comment 'photo': lambda self, cr, uid, ctx: self._get_default_image(cr, uid, ctx.get('default_is_company', False), ctx), in the file (school.py)

Tnx...worked for me

Oluwaseun
on 10/20/14, 12:10 PM

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

2 follower(s)

Stats

Asked: 4/1/14, 12:41 AM
Seen: 3780 times
Last updated: 3/16/15, 8:10 AM