[trunk] Cannot login anymore only create new database

Bug #322025 reported by EdbO
4
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Used software: trunk from 27-01-2009 @ 20:30

Updated the database and try to log in. I get the error:

[Tue Jan 27 2009 16:59:22] ERROR:web-services:[01]: Exception in call: Traceback (most recent call last):
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[02]: File "/opt/server/bin/wizard/__init__.py", line 85, in execute_cr
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[03]: fields = copy.deepcopy(result_def['fields'])
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[04]: File "/usr/lib/python2.4/copy.py", line 174, in deepcopy
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[05]: y = copier(x, memo)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[06]: File "/usr/lib/python2.4/copy.py", line 268, in _deepcopy_dict
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[07]: y[deepcopy(key, memo)] = deepcopy(value, memo)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[08]: File "/usr/lib/python2.4/copy.py", line 174, in deepcopy
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[09]: y = copier(x, memo)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[10]: File "/usr/lib/python2.4/copy.py", line 268, in _deepcopy_dict
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[11]: y[deepcopy(key, memo)] = deepcopy(value, memo)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[12]: File "/usr/lib/python2.4/copy.py", line 204, in deepcopy
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[13]: y = _reconstruct(x, rv, 1, memo)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[14]: File "/usr/lib/python2.4/copy.py", line 336, in _reconstruct
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[15]: y = callable(*args)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[16]: File "/usr/lib/python2.4/copy_reg.py", line 92, in __newobj__
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[17]: return cls.__new__(cls, *args)
[Tue Jan 27 2009 16:59:22] ERROR:web-services:[18]: TypeError: function() takes at least 2 arguments (0 given)

On both server and client-side. Tried to create a new database which is working, but then click on "connect now" and I got the same error.

Revision history for this message
EdbO (edbo-design-deactivatedaccount) wrote :

Note, I'm working on CentOS 5.2 which has python 2.4 installed. Languages are also not working because of a bug in the locale.py of python (this is fixed in 2.5).

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote :

you may have downloaded a broken version, please bzr up.

Changed in openobject-server:
status: New → Fix Released
Revision history for this message
EdbO (edbo-design-deactivatedaccount) wrote :

I did an update .....

Tree is up to date at revision 2178.
Tree is up to date at revision 1656.
Tree is up to date at revision 912.
Tree is up to date at revision 2215.

Changed in openobject-server:
status: Fix Released → New
Revision history for this message
Luc Maurer @ Camptocamp (lmaurer-c2c) wrote :

I confirme the bug !

Revision history for this message
Fabien (Open ERP) (fp-tinyerp) wrote : Re: [Bug 322025] Re: [trunk] Cannot login anymore only create new database

Strange, I can connect. I fixed the account_followup problem at
installation. Can you retry ?
Thanks,

Luc Maurer @ Camptocamp wrote:
> I confirme the bug !
>

--
Fabien Pinckaers
CEO Tiny - OpenERP Editor
Chaussée de Namur 40
B-1367 Grand-Rosière
Belgium
Phone: +32.81.81.37.00
Fax: +32.81.73.35.01
Web: http://openerp.com

Great Achievements Start With Tiny Investments
   -- Marty, 2005

Revision history for this message
EdbO (edbo-design-deactivatedaccount) wrote :

I have also tried it on a Fedora 10 installation. There I can log in without any problem. IMO this is because OpenERP is build on python 2.5 instead of 2.4 which is used by CentOS and other enterprise distros.

Revision history for this message
Luc Maurer @ Camptocamp (lmaurer-c2c) wrote :

the bug is still here :-)

ERROR:common.message:Message function() takes at least 2 arguments (0 given): Traceback (most recent call last):
  File "/opt/openerp/server/bin/netsvc.py", line 226, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/opt/openerp/server/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/opt/openerp/server/bin/service/web_services.py", line 537, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/opt/openerp/server/bin/service/web_services.py", line 517, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/opt/openerp/server/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/opt/openerp/server/bin/wizard/__init__.py", line 85, in execute_cr
    fields = copy.deepcopy(result_def['fields'])
  File "copy.py", line 174, in deepcopy
    y = copier(x, memo)
  File "copy.py", line 268, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "copy.py", line 174, in deepcopy
    y = copier(x, memo)
  File "copy.py", line 268, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "copy.py", line 204, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "copy.py", line 336, in _reconstruct
    y = callable(*args)
  File "copy_reg.py", line 92, in __newobj__
    return cls.__new__(cls, *args)
TypeError: function() takes at least 2 arguments (0 given)

Revision history for this message
Jan Verlaan (jan-verlaan) wrote :

bug confirmed in system debian with phyton 2.4 when opening e.g. chart of accounts

Traceback (most recent call last):
  File "/openerp/server/bin/netsvc.py", line 226, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/openerp/server/bin/netsvc.py", line 74, in __call__
    return getattr(self, method)(*params)
  File "/openerp/server/bin/service/web_services.py", line 537, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/openerp/server/bin/service/web_services.py", line 517, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/openerp/server/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/openerp/server/bin/wizard/__init__.py", line 85, in execute_cr
    fields = copy.deepcopy(result_def['fields'])
  File "copy.py", line 174, in deepcopy
    y = copier(x, memo)
  File "copy.py", line 268, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "copy.py", line 174, in deepcopy
    y = copier(x, memo)
  File "copy.py", line 268, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "copy.py", line 204, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "copy.py", line 336, in _reconstruct
    y = callable(*args)
  File "copy_reg.py", line 92, in __newobj__
    return cls.__new__(cls, *args)
TypeError: function() takes at least 2 arguments (0 given)

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

We try to be compatible with python 2.4 and python 2.5

Revision history for this message
EdbO (edbo-design-deactivatedaccount) wrote :

There are more things with python 2.4 e.g. locale settings. There is a known bug which is fixed in 2.5. This evening I will report that bug too, so you can look into it.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Thanks

Revision history for this message
TeMPO (info-tempo-consulting) wrote :

Hello all

I tried just nonw on a Debian etch and I have also the Bug
I only have python2.4 installed

[mer jan 28 2009 15:18:46] INFO:web-service:successful login from 'admin' using database 'momo5'
[mer jan 28 2009 15:18:46] ERROR:web-services:[01]: Exception in call: Traceback (most recent call last):
[mer jan 28 2009 15:18:46] ERROR:web-services:[02]: File "/home/tempo/openerp/ server/bin/wizard/__init__.py", line 85, in execute_cr
[mer jan 28 2009 15:18:46] ERROR:web-services:[03]: fields = copy.deepcopy(r esult_def['fields'])
[mer jan 28 2009 15:18:46] ERROR:web-services:[04]: File "copy.py", line 174, in deepcopy
[mer jan 28 2009 15:18:46] ERROR:web-services:[05]: y = copier(x, memo)
[mer jan 28 2009 15:18:46] ERROR:web-services:[06]: File "copy.py", line 268, in _deepcopy_dict
[mer jan 28 2009 15:18:46] ERROR:web-services:[07]: y[deepcopy(key, memo)] = deepcopy(value, memo)
[mer jan 28 2009 15:18:46] ERROR:web-services:[08]: File "copy.py", line 174, in deepcopy
[mer jan 28 2009 15:18:46] ERROR:web-services:[09]: y = copier(x, memo)
[mer jan 28 2009 15:18:46] ERROR:web-services:[10]: File "copy.py", line 268, in _deepcopy_dict
[mer jan 28 2009 15:18:46] ERROR:web-services:[11]: y[deepcopy(key, memo)] = deepcopy(value, memo)
[mer jan 28 2009 15:18:46] ERROR:web-services:[12]: File "copy.py", line 204, in deepcopy
[mer jan 28 2009 15:18:46] ERROR:web-services:[13]: y = _reconstruct(x, rv, 1, memo)
[mer jan 28 2009 15:18:46] ERROR:web-services:[14]: File "copy.py", line 336, in _reconstruct
[mer jan 28 2009 15:18:46] ERROR:web-services:[15]: y = callable(*args)
[mer jan 28 2009 15:18:46] ERROR:web-services:[16]: File "copy_reg.py", line 9 2, in __newobj__
[mer jan 28 2009 15:18:46] ERROR:web-services:[17]: return cls.__new__(cls, *args)
[mer jan 28 2009 15:18:46] ERROR:web-services:[18]: TypeError: function() takes at least 2 arguments (0 given)

Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Ce bug bloque toutes nouvelles installations du Debian Etch :(

Christophe.

Le 28 janv. 09 à 15:24, TeMPO a écrit :

> Hello all
>
> I tried just nonw on a Debian etch and I have also the Bug
> I only have python2.4 installed
>
> [mer jan 28 2009 15:18:46] INFO:web-service:successful login from
> 'admin' using database 'momo5'
> [mer jan 28 2009 15:18:46] ERROR:web-services:[01]: Exception in
> call: Traceback (most recent call last):
> [mer jan 28 2009 15:18:46] ERROR:web-services:[02]: File "/home/
> tempo/openerp/ server/bin/wizard/__init__.py", line 85, in execute_cr
> [mer jan 28 2009 15:18:46] ERROR:web-services:[03]: fields =
> copy.deepcopy(r esult_def['fields'])
> [mer jan 28 2009 15:18:46] ERROR:web-services:[04]: File
> "copy.py", line 174, in deepcopy
> [mer jan 28 2009 15:18:46] ERROR:web-services:[05]: y =
> copier(x, memo)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[06]: File
> "copy.py", line 268, in _deepcopy_dict
> [mer jan 28 2009 15:18:46] ERROR:web-services:[07]:
> y[deepcopy(key, memo)] = deepcopy(value, memo)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[08]: File
> "copy.py", line 174, in deepcopy
> [mer jan 28 2009 15:18:46] ERROR:web-services:[09]: y =
> copier(x, memo)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[10]: File
> "copy.py", line 268, in _deepcopy_dict
> [mer jan 28 2009 15:18:46] ERROR:web-services:[11]:
> y[deepcopy(key, memo)] = deepcopy(value, memo)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[12]: File
> "copy.py", line 204, in deepcopy
> [mer jan 28 2009 15:18:46] ERROR:web-services:[13]: y =
> _reconstruct(x, rv, 1, memo)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[14]: File
> "copy.py", line 336, in _reconstruct
> [mer jan 28 2009 15:18:46] ERROR:web-services:[15]: y =
> callable(*args)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[16]: File
> "copy_reg.py", line 9 2, in __newobj__
> [mer jan 28 2009 15:18:46] ERROR:web-services:[17]: return
> cls.__new__(cls, *args)
> [mer jan 28 2009 15:18:46] ERROR:web-services:[18]: TypeError:
> function() takes at least 2 arguments (0 given)
>
> --
> [trunk] Cannot login anymore only create new database
> https://bugs.launchpad.net/bugs/322025
> You received this bug notification because you are subscribed to
> OpenObject.

Cordialement,

Christophe Chauvet
--
Christophe Chauvet
Directeur Technique/Technical Manager
Sylëam Info Services
1 Place de l'église
61250 Damigny
Tel +33 (0)2 33 31 22 12
        +33 (0)6 76 08 96 08

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

fixed and tested with python 2.4

Changed in openobject-server:
status: New → Fix Released
Revision history for this message
c001os (c001os) wrote :

How can i apply the patch?

i get the error:
patch -b < translate.patch patching file translate.py
Hunk #1 FAILED at 566.
1 out of 1 hunk FAILED -- saving rejects to file translate.py.rej

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.