Thu 26 Apr 2012 02:10:22 PM UTC, comment #2:
Hi Paras
The qrcode library has changed since version 2.4 and GNU Health 1.4.5 works with qrcode library 2.3.1
You can do a: pip uninstall qrcode
And then: pip install qrcode==2.3.1
For the upcoming GNU Health 1.6 version, we will fix the bug, to make it work with the last qrcode version.
Regards
|
Thu 26 Apr 2012 01:34:56 PM UTC, original submission:
QR Code Module throwing error after upgrading to 1.4.5
The following is the traceback
ERROR:common.message:Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 108, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 147, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 155, in dispatch
res = getattr(obj, method)(args_without_context, *kargs)
File "/trytond/model/modelsql.py", line 638, in read
res2 = self._columns[field].get(ids, self, field_list, values=res)
File "/trytond/model/fields/function.py", line 89, in get
res[name] = getattr(model, self.getter)(ids, name)
File "/trytond/modules/health_qrcodes/health_qrcodes.py", line 67, in make_qrcode
qr_image.save(holder, format='PNG')
TypeError: save() got an unexpected keyword argument 'format'
|