Libpebble fails to upload sdk.pbw


When I try to use libpebble to upload the sdk.pbw, I am getting the following error:

Erics-MBP:libpebble eric$ ./ --pebble_id 00:18:33:E4:D6:EA --lightblue load ../pebble-sdk-release-001/sdk/build/sdk.pbw 
[DEBUG   ] LightBlue process has started on pid 13666
[DEBUG   ] Connection established to 00:18:33:E4:D6:EA
[DEBUG   ] Initializing reader thread
[DEBUG   ] Reader thread loaded on tid Thread-1
Traceback (most recent call last):
  File "/Users/eric/pebble-dev/libpebble/pebble/", line 268, in _reader
    resp = self._internal_endpoint_handlers[endpoint](endpoint, resp)
  File "/Users/eric/pebble-dev/libpebble/pebble/", line 697, in _appbank_status_response
    unpack("!II32s32sIH", data[offset:offset+appinfo_size])
error: unpack requires a string argument of length 78
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 552, in __bootstrap_inner
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/Users/eric/pebble-dev/libpebble/pebble/", line 274, in _reader
    raise PebbleError(, "Lost connection to Pebble")
PebbleError: Lost connection to Pebble (ID:00:18:33:E4:D6:EA)

Traceback (most recent call last):
  File "./", line 218, in <module>
  File "./", line 212, in main
    raise e
pebble.pebble.PebbleError: could not obtain app list; try again (ID:00:18:33:E4:D6:EA)

Any ideas?


Sign In or Register to comment.