Odoo Help

0

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

By
Debashis Das
on 4/1/14, 12:41 AM 4,739 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
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
0
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 ...

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

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