Looks like it might be a python2.6 compatibility issue. Was there a change with the timeout parameter?
-Chris On Tue, Jun 23, 2009 at 2:27 AM, Jack Stewart <[email protected]>wrote: > > When testing with the Paypal sandbox I've found the IPN is being > received but not processed by Satchmo. Using the Paypal IPN tester I > get the error below. There are a few references on the web to similar > erros being a python issue. Any clues? > > 2009-06-23 19:15:15,170 root : INFO Satchmo Started > 2009-06-23 19:15:18,311 shop.listeners: DEBUG Added default shop > listeners > 2009-06-23 19:15:18,508 sslurllib : DEBUG Installing SSLv2 HTTPS > Methods into urllib2 > 2009-06-23 19:15:27,746 recentlist.middleware: DEBUG Product url is > ^/shop/product/(?P<slug>[-\w]+)/ > 2009-06-23 19:15:27,779 root : DEBUG Test IPN on PAYPAL > 2009-06-23 19:15:27,800 root : DEBUG PayPal IPN data: > <QueryDict: {u'last_name': [u'Smith'], u'txn_id': [u'4623715'], > u'receiver_email': > [u'[email protected]<u%[email protected]>'], > u'payment_status': > [u'Completed'], u'tax': [u'2.02'], u'payer_status': [u'unverified'], > u'residence_country': [u'US'], u'invoice': [u'abc1234'], > u'address_state': [u'CA'], u'item_name1': [u'something'], u'txn_type': > [u'cart'], u'address_street': [u'123, any street'], u'quantity1': > [u'1'], u'payment_date': [u'00:15:04 Jun. 23, 2009 PDT'], > u'first_name': [u'John'], u'mc_shipping': [u'3.02'], u'item_number1': > [u'AK-1234'], u'mc_gross1': [u'9.34'], u'custom': [u'xyz123'], > u'notify_version': [u'2.4'], u'address_name': [u'John Smith'], > u'test_ipn': [u'1'], u'receiver_id': [u'TESTSELLERID1'], u'payer_id': > [u'TESTBUYERID01'], u'mc_handling1': [u'1.67'], u'verify_sign': > [u'AbfT2FcWp5yf1KyrYCmBMo8Lg0oWA9gk106CIcorcKiQnw2svUCYvtGm'], > u'mc_handling': [u'2.06'], u'charset': [u'windows-1252'], > u'address_zip': [u'95131'], u'address_country_code': [u'US'], > u'address_city': [u'San Jose'], u'address_status': [u'confirmed'], > u'address_country': [u'United States'], u'mc_fee': [u'0.44'], > u'mc_currency': [u'USD'], u'payer_email': > [u'[email protected] <u%[email protected]>'], > u'payment_type': [u'instant'], > u'mc_shipping1': [u'1.02']}> > 2009-06-23 19:15:27,843 root : ERROR Traceback (most recent > call last): > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre- > py2.6.egg/payment/modules/paypal/views.py", line 126, in ipn > if not confirm_ipn_data(data, PP_URL): > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre- > py2.6.egg/payment/modules/paypal/views.py", line 183, in > confirm_ipn_data > fo = urllib2.urlopen(req, params) > File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen > return _opener.open(url, data, timeout) > File "/usr/lib/python2.6/urllib2.py", line 383, in open > response = self._open(req, data) > File "/usr/lib/python2.6/urllib2.py", line 401, in _open > '_open', req) > File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain > result = func(*args) > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre- > py2.6.egg/satchmo_utils/sslurllib.py", line 45, in https_open > return self.do_open(HTTPSv2Connection, req) > File "/usr/lib/python2.6/urllib2.py", line 1087, in do_open > h = http_class(host, timeout=req.timeout) # will parse host:port > TypeError: __init__() got an unexpected keyword argument 'timeout' > Traceback (most recent call last): > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre- > py2.6.egg/payment/modules/paypal/views.py", line 126, in ipn > if not confirm_ipn_data(data, PP_URL): > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre- > py2.6.egg/payment/modules/paypal/views.py", line 183, in > confirm_ipn_data > fo = urllib2.urlopen(req, params) > File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen > return _opener.open(url, data, timeout) > File "/usr/lib/python2.6/urllib2.py", line 383, in open > response = self._open(req, data) > File "/usr/lib/python2.6/urllib2.py", line 401, in _open > '_open', req) > File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain > result = func(*args) > File "/usr/local/lib/python2.6/dist-packages/Satchmo-0.9_pre- > py2.6.egg/satchmo_utils/sslurllib.py", line 45, in https_open > return self.do_open(HTTPSv2Connection, req) > File "/usr/lib/python2.6/urllib2.py", line 1087, in do_open > h = http_class(host, timeout=req.timeout) # will parse host:port > TypeError: __init__() got an unexpected keyword argument 'timeout' > imeout' > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
