← Back to team overview

credativ team mailing list archive

[Bug 920418] Re: [6.1 RC1] unable to create an employee - TypeError: can't escape non-string object

 

*** This bug is a duplicate of bug 899794 ***
    https://bugs.launchpad.net/bugs/899794

Hello Dieter,

Your bug report looks quite similar to existing bug 899794, so for the moment let's consider them as duplicate.
Your feedback on bug 899794 would be helpful because it is currently considered "Incomplete", as we have been unable to figure out the exact cause. Some people have reported that updating the Python or Psycopg lib fixed the issue: see my comment #4 and the following ones on that bug.

Thanks for reporting and for any feedback you could provide!

** Summary changed:

- [6.1 RC1] unable to create an employee
+ [6.1 RC1] unable to create an employee - TypeError: can't escape non-string object

** Description changed:

- I,stalled R6.1 RC1, using the PostGreSQL from my R6.0.3 installation.
+ Installed R6.1 RC1, using the PostGreSQL from my v6.0.3 installation.
  
- I created a new database from the 6.2 web client interface
+ I created a new database from the 6.1 web client interface
  I installed the HR module (Recruitement process)
  
  When I create a new employee => create button in the list, the form view of a new employee displays fine.
  There is 1 manadatory field (name)
  I fill this in.
  
  When I press the save button, I get following staktrace:
  
  Client Traceback (most recent call last):
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 176, in dispatch
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\controllers\main.py", line 810, in create
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 579, in send
- 
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 176, in dispatch
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\controllers\main.py", line 810, in create
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 579, in send
  
  Server Traceback (most recent call last):
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 560, in send
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\netsvc.py", line 325, in dispatch_rpc
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\service\web_services.py", line 580, in dispatch
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 166, in execute_kw
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 120, in wrapper
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 175, in execute
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 163, in execute_cr
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\orm.py", line 4145, in create
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\sql_db.py", line 153, in wrapper
-   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\sql_db.py", line 215, in execute
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 560, in send
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\netsvc.py", line 325, in dispatch_rpc
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\service\web_services.py", line 580, in dispatch
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 166, in execute_kw
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 120, in wrapper
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 175, in execute
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 163, in execute_cr
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\orm.py", line 4145, in create
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\sql_db.py", line 153, in wrapper
+   File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\sql_db.py", line 215, in execute
  TypeError: can't escape non-string object

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/920418

Title:
  [6.1 RC1] unable to create an employee - TypeError: can't escape non-
  string object

Status in OpenERP Addons (modules):
  New

Bug description:
  Installed R6.1 RC1, using the PostGreSQL from my v6.0.3 installation.

  I created a new database from the 6.1 web client interface
  I installed the HR module (Recruitement process)

  When I create a new employee => create button in the list, the form view of a new employee displays fine.
  There is 1 manadatory field (name)
  I fill this in.

  When I press the save button, I get following staktrace:

  Client Traceback (most recent call last):
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 176, in dispatch
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\controllers\main.py", line 810, in create
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\openerplib\main.py", line 250, in proxy
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\openerplib\main.py", line 117, in proxy
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 579, in send

  Server Traceback (most recent call last):
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\openerp\addons\web\common\http.py", line 560, in send
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\netsvc.py", line 325, in dispatch_rpc
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\service\web_services.py", line 580, in dispatch
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 166, in execute_kw
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 120, in wrapper
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 175, in execute
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\osv.py", line 163, in execute_cr
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\osv\orm.py", line 4145, in create
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\sql_db.py", line 153, in wrapper
    File "C:\Program Files\OpenERP 6.1rc1-20120112-173907\server\.\openerp\sql_db.py", line 215, in execute
  TypeError: can't escape non-string object

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/920418/+subscriptions


References