Hi Everyone
I'm trying to get the SMS gateway working, keep getting errors:
I have:
- registered for Clicktell service
- purchased credits
- created an API (http)
- tested the account and API just using the browser and it works ie send the sms
- gone into file:
openerp-server-5.0.0-3/build/lib/openerp-server/tools/misc.py
and changed the commenting so it now reads:
f = urllib.urlopen("http://api.clickatell.com/http/sendmsg", params)
#f = urllib.urlopen("http://196.7.150.220/http/sendmsg", params)
And I still get a big massive error, (see below).
Does anyone have any hints as to what I'm missing?
Thanks
RLJB.
Error returned:
<type> Python 2.5.2: /usr/bin/python
Sun May 10 01:17:25 2009
A problem occurred in a Python script. Here is the sequence of function calls
leading up to the error, in the order they occurred.
/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py
in _run(self=<cherrypy>)
119 applyFilters('before_main')
120 if self.execute_main:
121 self.main()
122 break
123 except cherrypy.InternalRedirect, ir:
self = <cherrypy>, self.main = <bound method Request.main of <cherrypy>>
/usr/lib/python2.5/site-packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py
in main(self=<cherrypy>, path='/wizard/action')
262 self.object_path = '/' + '/'.join(object_path[1:])
263 try:
264 body = page_handler(*virtual_path, **self.params)
265 except Exception, x:
266 if hasattr(x, "args"):
body undefined, page_handler = <function>, virtual_path = [], self =
<cherrypy>, self.params = {'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...}
/usr/lib/python2.5/site-packages/openerp_web-5.0.0_3.1-py2.5.egg/openerp/tinyres.py
in wrapper(*args=(), **kw={'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
87 # User is logged in; allow access
88 clear_login_fields(kw)
89 return fn(*args, **kw)
90 else:
91 # User isn't logged in yet.
fn = <bound method Wizard.action of <openerp>>, args = (), kw =
{'_terp_context': u'{}', '_terp_count': u'', '_terp_datas': u"{'model':
u'res.partner', 'form': {}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}",
'_terp_domain': u'[]', '_terp_editable': u'True', '_terp_id': u'False',
'_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...}
/<string> in action(self=<openerp>, tg_errors=None, tg_exceptions=None,
*_decorator__varargs=(), **kw={'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py
in expose(func=<function>, *args=(<openerp>,), **kw={'_terp_context': u'{}',
'_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form': {},
'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...})
358 output = database.run_with_transaction(
359 func._expose, func, accept, func._allow_json,
360 *args, **kw)
361 return output
362 func.exposed = True
args = (<openerp>,), kw = {'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...}
/<string> in run_with_transaction(func=<function>, *args=(<function>,
'text/html', True, <openerp>), **kw={'_terp_context': u'{}', '_terp_count':
u'', '_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1,
'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable':
u'True', '_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'',
'_terp_model': u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/database.py
in so_rwt(func=<function>, *args=(<function>, 'text/html', True, <openerp>),
**kw={'_terp_context': u'{}', '_terp_count': u'', '_terp_datas': u"{'model':
u'res.partner', 'form': {}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}",
'_terp_domain': u'[]', '_terp_editable': u'True', '_terp_id': u'False',
'_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
357 try:
358 try:
359 retval = func(*args, **kw)
360 commit_all()
361 return retval
retval undefined, func = <function>, args = (<function>, 'text/html', True,
<openerp>), kw = {'_terp_context': u'{}', '_terp_count': u'', '_terp_datas':
u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type': 'pdf', 'ids':
[1]}", '_terp_domain': u'[]', '_terp_editable': u'True', '_terp_id': u'False',
'_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...}
/<string> in _expose(func=<function>, accept='text/html', allow_json=True,
*args=(<openerp>,), **kw={'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py
in (_func=<function>, accept='text/html', allow_json=True, *args=(<openerp>,),
**kw={'_terp_context': u'{}', '_terp_count': u'', '_terp_datas': u"{'model':
u'res.partner', 'form': {}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}",
'_terp_domain': u'[]', '_terp_editable': u'True', '_terp_id': u'False',
'_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
371 rulefunc = lambda _func, accept, allow_json, *args, **kw:
372 _execute_func(_func, template, format, content_type,
373 mapping, fragment, args, kw)))
374
375 if allow_json:
mapping = None, fragment = False, args = (<openerp>,), kw = {'_terp_context':
u'{}', '_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form':
{}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...}
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py
in _execute_func(func=<function>, template='json', format=None,
content_type=None, mapping=None, fragment=False, args=(<openerp>,),
kw={'_terp_context': u'{}', '_terp_count': u'', '_terp_datas': u"{'model':
u'res.partner', 'form': {}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}",
'_terp_domain': u'[]', '_terp_editable': u'True', '_terp_id': u'False',
'_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
408 # this means big memory usage, and we don't want that in
production
409 log.debug("Calling %s with *(%s), **(%s)", func, args, kw)
410 output = errorhandling.try_call(func, *args, **kw)
411 if isinstance(output, list):
412 return output
output undefined, global errorhandling = <module>, errorhandling.try_call =
<function>, func = <function>, args = (<openerp>,), kw = {'_terp_context':
u'{}', '_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form':
{}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...}
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/errorhandling.py
in try_call(func=<function>, self=<openerp>, *args=(), **kw={'_terp_context':
u'{}', '_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form':
{}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...})
90 restart_transaction(1)
91 try:
92 output = dispatch_error(self, func, None, e, *args, **kw)
93 except NoApplicableMethods:
94 raise exc_type, exc_value, exc_trace
output undefined, global dispatch_error = <function>, self = <openerp>, func =
<function>, builtin None = None, e = ValueError('need more than 1 value to
unpack', <function>), args = (), kw = {'_terp_context': u'{}', '_terp_count':
u'', '_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1,
'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable':
u'True', '_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'',
'_terp_model': u'wizard.res.partner.sms_send', '_terp_offset': u'', ...}
/<string> in dispatch_error(controller=<openerp>, tg_source=<function>,
tg_errors=None, tg_exceptions=ValueError('need more than 1 value to unpack',
<function>), *args=(), **kw={'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/errorhandling.py
in adaptor(controller=<openerp>, tg_source=<function>, tg_errors=None,
tg_exceptions=ValueError('need more than 1 value to unpack', <function>),
*args=(), **kw={'_terp_context': u'{}', '_terp_count': u'', '_terp_datas':
u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type': 'pdf', 'ids':
[1]}", '_terp_domain': u'[]', '_terp_editable': u'True', '_terp_id': u'False',
'_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
67 if tg_format is not None:
68 kw['tg_format'] = tg_format
69 return func(controller, *args, **kw)
70 return adaptor
71
func = <function>, controller = <openerp>, args = (), kw = {'_terp_context':
u'{}', '_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form':
{}, 'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...}
/<string> in action(self=<openerp>, tg_errors=None,
tg_exceptions=ValueError('need more than 1 value to unpack', <function>),
*_decorator__varargs=(), **kw={'_terp_context': u'{}', '_terp_count': u'',
'_terp_datas': u"{'model': u'res.partner', 'form': {}, 'id': 1, 'report_type':
'pdf', 'ids': [1]}", '_terp_domain': u'[]', '_terp_editable': u'True',
'_terp_id': u'False', '_terp_ids': u'[]', '_terp_limit': u'', '_terp_model':
u'wizard.res.partner.sms_send', '_terp_offset': u'', ...})
/usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg/turbogears/controllers.py
in validate(func=<function>, *args=(<openerp>,), **kw={'_terp_context': u'{}',
'_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form': {},
'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...})
150 # do not validate a second time if already validated
151 if hasattr(request, 'validation_state'):
152 return func(*args, **kw)
153
154 form = init_form(args and args[0] or kw["self"])
func = <function>, args = (<openerp>,), kw = {'_terp_context': u'{}',
'_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form': {},
'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...}
/usr/lib/python2.5/site-packages/openerp_web-5.0.0_3.1-py2.5.egg/openerp/subcontrollers/wizard.py
in action(self=<openerp>, tg_errors=None, tg_exceptions=ValueError('need more
than 1 value to unpack', <function>), **kw={'_terp_context': u'{}',
'_terp_count': u'', '_terp_datas': u"{'model': u'res.partner', 'form': {},
'id': 1, 'report_type': 'pdf', 'ids': [1]}", '_terp_domain': u'[]',
'_terp_editable': u'True', '_terp_id': u'False', '_terp_ids': u'[]',
'_terp_limit': u'', '_terp_model': u'wizard.res.partner.sms_send',
'_terp_offset': u'', ...})
221
222 if tg_exceptions:
223 raise tg_exceptions
224
225 params, datas = TinyDict.split(kw)
tg_exceptions = ValueError('need more than 1 value to unpack', <function>)
<type>: ('need more than 1 value to unpack', <function>)
args = ('need more than 1 value to unpack', <function>)
message = 'need more than 1 value to unpack'
-------------------- m2f --------------------
--
http://www.openobject.com/forum/viewtopic.php?p=36094#36094
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users