Community mailing list archives

community@mail.odoo.com

ir_attachment.py fails to load a file..

by
redCOR AG, robert rottermann
- 08/12/2015 08:19:14
hi there,
while I am developping a new module (actually while I am learning odoo) 
I see the following error in the log:

why so?
looking in the .local/share/robert/filestore/urgestein/
I see a number of directories.
What are these about?

thanks for your info
robert

2015-08-12 11:59:07,058 20762 ERROR urgestein 
openerp.addons.base.ir.ir_attachment: _read_file reading 
/home/robert/.local/share/robert/filestore/urgestein/dc/dcf00aacce882bbfd117c0277e514f829b4c5bf0
Traceback (most recent call last):
   File 
"/home/robert/projects/urgestein/urgestein/parts/odoo/openerp/addons/base/ir/ir_attachment.py", 
line 125, in _file_read
     r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: 
u'/home/robert/.local/share/robert/filestore/urgestein/dc/dcf00aacce882bbfd117c0277e514f829b4c5bf0'
2015-08-12 11:59:07,119 20762 INFO urgestein werkzeug: 127.0.0.1 - - 
[12/Aug/2015 11:59:07] "GET 
/web/binary/image?model=ir.attachment&field=datas&id=8&resize=100%252C80 
HTTP/1.1" 200 -