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

import file.csv error. How to fix it?

By
Trong Danh
on 5/21/13, 1:51 PM 1,324 views
ERROR:web-services:Uncaught exception

Traceback (most recent call last):

  File "osv\osv.pyo", line 122, in wrapper
  File "osv\osv.pyo", line 176, in execute
  File "osv\osv.pyo", line 167, in execute_cr
  File "D:\GSProject\GSOpenERP\Ver6x\Server\addons\base\module\wizard\base_import_language.py", line 59, in import_lang

  tools.trans_load_data(cr, fileobj, fileformat, import_data.code, lang_name=import_data.name)
  File "tools\translate.pyo", line 932, in trans_load_data
  File "D:\GSProject\GSOpenERP\Ver6x\Server\addons\base\ir\ir_translation.py", line 186, in create
    self._get_source.clear_cache(cursor.dbname, user, trans_obj['name'], trans_obj['type'], trans_obj['lang'], source=trans_obj['src'])
  File "tools\misc.pyo", line 783, in clear
  File "tools\func.pyo", line 89, in wrapper
  File "tools\lru.pyo", line 112, in pop
  File "tools\func.pyo", line 89, in wrapper  
File "tools\lru.pyo", line 37, in __getitem__

KeyError: (('dbname', 'hrm011'), ('lang', u'en_US'), ('name', u'addons\\tw_hr_base\\tw_hr_employee.py'), ('source', u'Ki\u1ec3m tra d\u1eef li\u1ec7u'), ('types', u'code'))
0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 5/21/13, 4:06 PM

I do not know what language you are using, but I expect some kind of east asian (from taiwan?).

It looks like the source is having some weird characters behind it.

The error is about a Key not found cq not valid.

The self._get_source.clear_cache is looking for the keys: name, type, lang and source.

In your last line, I see: dbname, lang, name, source and types.

It looks like a typin error, replace types with type, and try again.

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

0 follower(s)

Stats

Asked: 5/21/13, 1:51 PM
Seen: 1324 times
Last updated: 3/16/15, 8:10 AM