[Python-modules-team] Bug#423314: [Fwd: Re: python-tclink 3.4 fails with python2.5]

Bernd Zeimetz bernd at bzed.de
Fri May 11 07:14:55 UTC 2007


Package: python-tclink
Version: 3.4.0-5
Severity: important


Filing a new bug report to document this issue in a proper way. I'm
already taking care of it.


-------- Original Message --------
Subject: 	Re: python-tclink 3.4 fails with python2.5
Date: 	Thu, 10 May 2007 10:47:40 -0700
From: 	Johnny Luong <johnny at trustcommerce.com>
Organization: 	TrustCommerce
To: 	Bernd Zeimetz <bernd at bzed.de>
References: 	<46430038.7000108 at bzed.de>



Hi Bernd,

Based on your error message, it would appear that the 'action' field is
somehow not making it to the tclink object, even though you appear to be
using it correctly in #3.  Try the following:

1) Change custid to '2000003' and password to '123456'.  Its an account
I use for testing (it won't be available forever though unlike the
TestMerchant) -- this will allow me to find the transactions in the logs.

2) Run the example we provided or provide me with the actual code
sequence responsible for submitting the transaction -- this will help me
narrow it down for you.  I can probably find a machine here somewhere
with Python 2.5 installed on it or if necessary, build it from source on
a Debian or Fedora box.

As always, we generally appreciate the efforts of open source developers
such as yourself.

Thanks,
Johnny

Bernd Zeimetz wrote:
> Dear developers,
> 
> while building a new Debian package which was supposed to contain
> python2.5 support for your tclink library I had to find out, that your
> example does not work, if the c library was built against python 2.5.1.
> I've use the python shell to replay this, it's a copy&paste from your
> example:
> 
> In [1]: import tclink
> 
> In [2]: print 'Using TCLink version', tclink.getVersion()
> Using TCLink version 3.4-Python-Linux-x86_64
> 
> In [3]: params = {
>    ...:         'custid':    'TestMerchant',
>    ...:         'password':  'password',
>    ...:         'action':    'preauth',
>    ...:         'cc':        '4111111111111111',
>    ...:         'exp':       '0404',
>    ...:         'amount':    '100',
>    ...:         'avs':       'n'
>    ...: }
> 
> In [4]: result = tclink.send(params)
> 
> In [5]: print result
> {'status': 'baddata', 'error': 'missingfields', 'offenders': 'action'}
> 
> 
> Doing the same in a python2.4 shell works just well.
> Is this a known bug? Any suggestions to solve this? At the moment I've
> limited the Debian package to provide a library for python 2.4 only, but
> there will be a day in the future when py2.4 will be removed from the
> archives, and chances are good that somebody would like to use your
> library with 2.5.
> 
> 
> Best regards,
> 
> Bernd Zeimetz








More information about the Python-modules-team mailing list