← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 670228] Re: Report generation crashes on web-client (64 Bit OS)

 

Hello,

  Aplologies for not attaching this earlier.



[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[01]: Exception:
Incorrect padding

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[02]: Traceback (most
recent call last):

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[03]:   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
line 711, in go

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[04]:     (result,
format) = obj.create(cr, uid, ids, datas, context)

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[05]:   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py",
line 399, in create

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[06]:     fnct_ret =
fnct(cr, uid, ids, data, report_xml, context)

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[07]:   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py",
line 462, in create_source_pdf

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[08]:     return
self.create_single_pdf(cr, uid, ids, data, report_xml, context)

[2010-11-03 08:39:39,703][openerp] ERROR:web-services:[09]:   File
"/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py",
line 482, in create_single_pdf

[2010-11-03 08:39:39,704][openerp] ERROR:web-services:[10]:     logo =
base64.decodestring(rml_parser.logo)

[2010-11-03 08:39:39,704][openerp] ERROR:web-services:[11]:   File
"/usr/lib/python2.6/base64.py", line 321, in decodestring

[2010-11-03 08:39:39,704][openerp] ERROR:web-services:[12]:     return
binascii.a2b_base64(s)

[2010-11-03 08:39:39,704][openerp] ERROR:web-services:[13]: Error: Incorrect
padding

[03/Nov/2010:08:39:40] HTTP Traceback (most recent call last):


Looks like the yellow one is the culprit.

There are other problems reported by other python programmers on the net
with base64.py,

   hence I asked whether those were at fault (?)


Best regards,

Arshad

On Wed, Nov 3, 2010 at 1:55 PM, Arshad Hisham A.P.M <arshad.hisham@xxxxxxxxx
> wrote:

> Hello,
>
>    Thank you for the response.
>
>    This is with a fresh install of OpenERP 6.0 RC1 web client with no
> modifications and with no customisations.
>
>    i.e with demo data.
>
>   As I again repeated earlier - the installation is on Ubuntu 10.04 LTS 64
> bit.
>
>   I tried connecting to the 64 bit server through an openerp 6.0 client
> installed on another 32 bit linux machine.
>
>   The same error was repeated when tyring to print an accounting report.
>
>   So may be it is a problem with the openerp 6.0 server running on the 64
> bit LTS ubuntu?
>
>   I am pasting the traceback here
>
>   administrator@ubuntu:~/openerp-client-6.0.0-rc1/bin$
> /home/administrator/openerp-client-6.0.0-rc1/bin/modules/gui/window/tree.py:140:
> GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
>   rb.set_icon_widget(hb)
> /home/administrator/openerp-client-6.0.0-rc1/bin/modules/gui/window/tree.py:145:
> GtkWarning: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed
>   wid.insert(rb, -1)
> Traceback (most recent call last):
>   File
> "/home/administrator/openerp-client-6.0.0-rc1/bin/widget/view/form_gtk/parser.py",
> line 121, in button_clicked
>     model.get_button_action(self.form.screen, id, self.attrs)
>   File
> "/home/administrator/openerp-client-6.0.0-rc1/bin/widget/model/record.py",
> line 375, in get_button_action
>     obj._exec_action(result, {}, context=context)
>   File
> "/home/administrator/openerp-client-6.0.0-rc1/bin/modules/action/main.py",
> line 171, in _exec_action
>     self.exec_report(action['report_name'], datas, context)
>   File
> "/home/administrator/openerp-client-6.0.0-rc1/bin/modules/action/main.py",
> line 58, in exec_report
>     val = rpc.session.rpc_exec_auth('/report', 'report_get', report_id)
>   File "/home/administrator/openerp-client-6.0.0-rc1/bin/rpc.py", line 185,
> in rpc_exec_auth
>     return sock.exec_auth(method, *args)
>   File "/home/administrator/openerp-client-6.0.0-rc1/bin/rpc.py", line 119,
> in exec_auth
>     res = self.execute(method, self._uid, self._passwd, *args)
>   File "/home/administrator/openerp-client-6.0.0-rc1/bin/rpc.py", line 136,
> in execute
>     raise e
> tiny_socket.Myexception: ("warning -- Incorrect padding\n\n(<class
> 'binascii.Error'>, Error('Incorrect padding',), <traceback object at
> 0x487eab8>)", 'Traceback (most recent call last):\n  File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 489,
> in dispatch\n    result =
> ExportService.getService(service_name).dispatch(method, auth, params)\n
>  File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
> line 685, in dispatch\n    res = fn(db, uid, *params)\n  File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
> line 763, in exp_report_get\n    return self._check_report(report_id)\n
>  File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
> line 741, in _check_report\n    self.abortResponse(exc, exc.message,
> \'warning\', exc.traceback)\n  File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 129,
> in abortResponse\n    raise Exception("%s -- %s\\n\\n%s"%(origin,
> description, details))\nException: warning -- Incorrect padding\n\n(<class
> \'binascii.Error\'>, Error(\'Incorrect padding\',), <traceback object at
> 0x487eab8>)\n')
>
>
>
> best regards,
> Arshad
>
> On Wed, Nov 3, 2010 at 1:34 PM, Fabien (Open ERP) <fp@xxxxxxxxxxx> wrote:
>
>> Hello,
>> We need more information: did you used a logo in the company ? is this
>> with demo data or others data ?
>>
>> ** Changed in: openobject-addons
>>       Status: New => Incomplete
>>
>> --
>> Report generation crashes on web-client (64 Bit OS)
>> https://bugs.launchpad.net/bugs/670228
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>> Status in OpenObject Addons Modules: Incomplete
>>
>> Bug description:
>> When we try to generate an accounting report from the web client. ( 6.0
>> RC1 )
>>
>> For example.
>>
>> The General Ledger report from Accounting division
>>  ( Reporting -> Legal Reports -> Accounting Reports -> General Ledger )
>>
>> It crashes with the message - (<class 'binascii.Error'>, Error('Incorrect
>> padding',), <traceback object at 0x4b1f200>)
>>
>> We are using 64 bit Ubuntu 10.04 LTS. This seems to work fine when running
>> on a 32 bit Ubuntu 10.04 LTS.
>>
>> After a bit of googling we found that the issue maybe with Python
>> libraries (?) that you are using.
>>
>> The source code we are using is the same that is published on the OpenERP
>> website ( 6.0 RC1 )
>>
>> To unsubscribe from this bug, go to:
>> https://bugs.launchpad.net/openobject-addons/+bug/670228/+subscribe
>>
>
>

-- 
Report generation crashes on web-client (64 Bit OS)
https://bugs.launchpad.net/bugs/670228
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Incomplete

Bug description:
When we try to generate an accounting report from the web client. ( 6.0 RC1 )

For example.

The General Ledger report from Accounting division
 ( Reporting -> Legal Reports -> Accounting Reports -> General Ledger )

It crashes with the message - (<class 'binascii.Error'>, Error('Incorrect padding',), <traceback object at 0x4b1f200>)

We are using 64 bit Ubuntu 10.04 LTS. This seems to work fine when running on a 32 bit Ubuntu 10.04 LTS.

After a bit of googling we found that the issue maybe with Python libraries (?) that you are using.

The source code we are using is the same that is published on the OpenERP website ( 6.0 RC1 )





References