Is it a Bug?

Help
xu long
2008-06-21
2013-04-25
  • xu long
    xu long
    2008-06-21

    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!

     
    • blam
      blam
      2008-06-22

      Thanks, this is a bug. It will be fixed in the next release.

       
    • xu long
      xu long
      2008-06-23

      Thanks,I'll take a try to fix it too.

       
      • blam
        blam
        2008-06-27

        The problem is that _kOBEXSessionNotConnectedError shouldn't be there. This exception is only being raised if connect() is failing for some reason.