Traceback (most recent call last):
File "boobee.py", line 122, in <module>
Broadcast(send_file,Table_Name,TABLE_PARA)
File "boobee.py", line 59, in Broadcast
State = Send_File(client_bdaddr,file_path)
File "/home/boobee/Desktop/sigleFile/file_trans.py", line 46, in Send_File
obex.sendfile(client_bdaddr,channel,file_Path)
File "/usr/lib/python2.5/site-packages/lightblue/_obex.py", line 253, in sendfile
resp = client.put(headers, fileobj)
File "/usr/lib/python2.5/site-packages/lightblue/_obex.py", line 93, in put
self.__checkconnected()
File "/usr/lib/python2.5/site-packages/lightblue/_obex.py", line 166, in __checkconnected
raise OBEXError(_kOBEXSessionNotConnectedError,
NameError: global name '_kOBEXSessionNotConnectedError' is not defined
this error is rarely occurs,but when it happened,the program is broken!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Message get from terminal is below:
Traceback (most recent call last):
File "boobee.py", line 122, in <module>
Broadcast(send_file,Table_Name,TABLE_PARA)
File "boobee.py", line 59, in Broadcast
State = Send_File(client_bdaddr,file_path)
File "/home/boobee/Desktop/sigleFile/file_trans.py", line 46, in Send_File
obex.sendfile(client_bdaddr,channel,file_Path)
File "/usr/lib/python2.5/site-packages/lightblue/_obex.py", line 253, in sendfile
resp = client.put(headers, fileobj)
File "/usr/lib/python2.5/site-packages/lightblue/_obex.py", line 93, in put
self.__checkconnected()
File "/usr/lib/python2.5/site-packages/lightblue/_obex.py", line 166, in __checkconnected
raise OBEXError(_kOBEXSessionNotConnectedError,
NameError: global name '_kOBEXSessionNotConnectedError' is not defined
this error is rarely occurs,but when it happened,the program is broken!
Thanks, this is a bug. It will be fixed in the next release.
Thanks,I'll take a try to fix it too.
The problem is that _kOBEXSessionNotConnectedError shouldn't be there. This exception is only being raised if connect() is failing for some reason.