New question #211319 on OpenUpgrade Server:
https://answers.launchpad.net/openupgrade-server/+question/211319

Hi there,

first and foremost thank you for the effort you and all involved have put into 
this tool, I truly appreciate it.


I am trying to migrate from 6.0.3 to 6.1. During the migration process I am 
getting an UnicodeDecodeError exception.
Any advice?

Thank you

./openerp-server  --stop-after-init -d mydb -r openerp -w xxx 
--addons-path=~/ou-61-addons/ --db_host=127.0.0.1 -u all
2012-10-15 23:04:57,739 6868 INFO ? openerp: OpenERP version 6.1
2012-10-15 23:04:57,739 6868 INFO ? openerp: addons paths: /home/me/ou-61-addons
2012-10-15 23:04:57,739 6868 INFO ? openerp: database hostname: 127.0.0.1
2012-10-15 23:04:57,739 6868 INFO ? openerp: database port: 5432
2012-10-15 23:04:57,739 6868 INFO ? openerp: database user: openerp
2012-10-15 23:04:57,739 6868 WARNING ? openerp.modules.module: module web: 
module not found
2012-10-15 23:04:57,739 6868 CRITICAL ? openerp.modules.module: Couldn't load 
module web
2012-10-15 23:04:57,739 6868 CRITICAL ? openerp.modules.module: unsupported 
operand type(s) for +: 'bool' and 'str'
2012-10-15 23:04:57,739 6868 ERROR ? openerp: Failed to load server-wide module 
`web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "./openerp-server", line 252, in <module>
    openerp.modules.module.load_openerp_module(m)
  File "/home/me/ou-61/openerp/modules/module.py", line 407, in 
load_openerp_module
    zip_mod_path = mod_path + '.zip'
TypeError: unsupported operand type(s) for +: 'bool' and 'str'
2012-10-15 23:04:57,774 6868 INFO mydb openerp.modules.loading: module base: 
loading objects
2012-10-15 23:04:57,913 6868 INFO mydb openerp.modules.module: module base: 
creating or updating database tables
2012-10-15 23:04:59,055 6868 INFO mydb openerp.modules.loading: module base: 
loading base_data.xml
2012-10-15 23:04:59,465 6868 INFO mydb openerp.modules.loading: module base: 
loading security/base_security.xml
2012-10-15 23:04:59,601 6868 INFO mydb openerp.modules.loading: module base: 
loading base_menu.xml
2012-10-15 23:04:59,694 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_security.xml
2012-10-15 23:04:59,732 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_config.xml
2012-10-15 23:04:59,758 6868 INFO mydb openerp.modules.loading: module base: 
loading data/res.country.state.csv
2012-10-15 23:04:59,968 6868 INFO mydb openerp.modules.loading: module base: 
loading base_update.xml
2012-10-15 23:05:00,090 6868 INFO mydb openerp.modules.loading: module base: 
loading ir/wizard/wizard_menu_view.xml
2012-10-15 23:05:00,103 6868 INFO mydb openerp.modules.loading: module base: 
loading ir/ir.xml
2012-10-15 23:05:01,107 6868 INFO mydb openerp.modules.loading: module base: 
loading ir/ir_config_parameter_view.xml
2012-10-15 23:05:01,148 6868 INFO mydb openerp.modules.loading: module base: 
loading ir/workflow/workflow_view.xml
2012-10-15 23:05:01,335 6868 INFO mydb openerp.modules.loading: module base: 
loading ir/report/ir_report.xml
2012-10-15 23:05:01,342 6868 INFO mydb openerp.modules.loading: module base: 
loading module/module_view.xml
2012-10-15 23:05:01,405 6868 INFO mydb openerp.modules.loading: module base: 
loading module/module_data.xml
2012-10-15 23:05:01,656 6868 INFO mydb openerp.modules.loading: module base: 
loading module/module_report.xml
2012-10-15 23:05:01,665 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_module_import_view.xml
2012-10-15 23:05:01,680 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_module_update_view.xml
2012-10-15 23:05:01,703 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_language_install_view.xml
2012-10-15 23:05:01,724 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_import_language_view.xml
2012-10-15 23:05:01,745 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_module_upgrade_view.xml
2012-10-15 23:05:01,779 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_module_configuration_view.xml
2012-10-15 23:05:01,796 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_export_language_view.xml
2012-10-15 23:05:01,826 6868 INFO mydb openerp.modules.loading: module base: 
loading module/wizard/base_update_translations_view.xml
2012-10-15 23:05:01,874 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_request_view.xml
2012-10-15 23:05:02,040 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_lang_view.xml
2012-10-15 23:05:02,080 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_log_view.xml
2012-10-15 23:05:02,114 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_partner_report.xml
2012-10-15 23:05:02,121 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_partner_view.xml
2012-10-15 23:05:02,425 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_partner_shortcut_data.xml
2012-10-15 23:05:02,428 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_bank_view.xml
2012-10-15 23:05:02,584 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_country_view.xml
2012-10-15 23:05:02,672 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_currency_view.xml
2012-10-15 23:05:02,732 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_partner_event_view.xml
2012-10-15 23:05:02,802 6868 INFO mydb openerp.modules.loading: module base: 
loading res/wizard/partner_sms_send_view.xml
2012-10-15 23:05:02,817 6868 INFO mydb openerp.modules.loading: module base: 
loading res/wizard/partner_wizard_massmail_view.xml
2012-10-15 23:05:02,833 6868 INFO mydb openerp.modules.loading: module base: 
loading res/wizard/partner_clear_ids_view.xml
2012-10-15 23:05:02,848 6868 INFO mydb openerp.modules.loading: module base: 
loading res/wizard/partner_wizard_ean_check_view.xml
2012-10-15 23:05:02,861 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_partner_data.xml
2012-10-15 23:05:02,873 6868 INFO mydb openerp.modules.loading: module base: 
loading res/ir_property_view.xml
2012-10-15 23:05:02,946 6868 INFO mydb openerp.modules.loading: module base: 
loading security/base_security.xml
2012-10-15 23:05:03,117 6868 INFO mydb openerp.modules.loading: module base: 
loading publisher_warranty/publisher_warranty_view.xml
2012-10-15 23:05:03,201 6868 INFO mydb openerp.modules.loading: module base: 
loading security/ir.model.access.csv
2012-10-15 23:05:03,996 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_widget_view.xml
2012-10-15 23:05:04,065 6868 INFO mydb openerp.modules.loading: module base: 
loading res/res_widget_data.xml
2012-10-15 23:05:04,090 6868 INFO mydb openerp.modules.loading: module base: 
loading publisher_warranty/publisher_warranty_data.xml
2012-10-15 23:05:04,148 6868 ERROR mydb openerp: Failed to initialize database 
`mydb`.
Traceback (most recent call last):
  File "./openerp-server", line 95, in preload_registry
    db, registry = openerp.pooler.get_db_and_pool(dbname, 
update_module=config['init'] or config['update'], pooljobs=False)
  File "/home/me/ou-61/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module, 
pooljobs)
  File "/home/me/ou-61/openerp/modules/registry.py", line 180, in get
    update_module, pooljobs)
  File "/home/me/ou-61/openerp/modules/registry.py", line 202, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/me/ou-61/openerp/modules/loading.py", line 460, in load_modules
    loaded_modules, processed_modules = load_module_graph(cr, graph, status, 
perform_checks=(not update_module), report=report, registry=registry)
  File "/home/me/ou-61/openerp/modules/loading.py", line 373, in 
load_module_graph
    modobj.update_translations(cr, 1, [module_id], None)
  File "/home/me/ou-61/openerp/addons/base/module/module.py", line 579, in 
update_translations
    filter_lang = [lang.code for lang in lang_obj.browse(cr, uid, lang_ids)]
  File "/home/me/ou-61/openerp/osv/orm.py", line 476, in __getattr__
    return self[name]
  File "/home/me/ou-61/openerp/osv/orm.py", line 391, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, 
context=self._context, load="_classic_write")
  File "/home/me/ou-61/openerp/osv/orm.py", line 3435, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/me/ou-61/openerp/osv/orm.py", line 3495, in _read_flat
    res.extend(cr.dictfetchall())
  File "/usr/lib/python2.6/dist-packages/psycopg2/psycopg1.py", line 91, in 
dictfetchall
    rows = _2cursor.fetchall(self)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 13: 
ordinal not in range(128)

-- 
You received this question notification because you are a member of
OpenUpgrade Drivers, which is an answer contact for OpenUpgrade Server.

-- 
Mailing list: https://launchpad.net/~openupgrade-drivers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openupgrade-drivers
More help   : https://help.launchpad.net/ListHelp

Reply via email to