Error de Setencia

Renato Droguett rdroguett en intico.cl
Lun Abr 28 19:30:22 CEST 2008


Muchachos:

 

            Gausto con saludarlos a todos y agradecer a lsoq ue me han brindado ayuda en mi proyecto. en esta oprtunidad me encuentro tpando solamente en una sentencia que paso datos por parametro

 

python demo.py 00:1D:F6:11:C9:2F 7

 

client = lightblue.obex.OBEXClient("00:1D:F6:11:C9:2F", 7)

 

quiero remplzarla por ...

 

client = lightblue.obex.OBEXClient(sys.argv[1], sys.argv[2])

 

obtengo de error...

 

Traceback (most recent call last):

  File "app.py", line 26, in ?

    client = lightblue.obex.OBEXClient(sys.argv[1], sys.argv[2])

  File "/usr/lib/python2.4/site-packages/lightblue/_obex.py", line 50, in __init__

    raise TypeError("channel must be int, was %s" % type(channel))

TypeError: channel must be int, was <type 'str'>

 

Agredesco la ayuda de todos

 

 

_______________________________________________
Lista de correo Python-es 
http://listas.aditel.org/listinfo/python-es
FAQ: http://listas.aditel.org/faqpyes





Más información sobre la lista de distribución Python-es