Reputation: 6935
I'm trying to follow the Pebble C watchface tutorial, and I can get the time to display, but I can't get any weather information to show up. Looking at the logs, it appears that there is a fatal error immediately upon startup:
[INFO ] Enabling application logging...
[INFO ] Displaying logs ... Ctrl-C to interrupt.
[INFO ] Traceback (most recent call last):
File "/usr/local/Cellar/pebble-sdk/3.0/tools/pebblecomm/pebble.py", line 777, in _reader
self._ws_client.handle_response(endpoint, resp)
AttributeError: 'NoneType' object has no attribute 'handle_response'
[INFO ] <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'handle_response'
[ERROR ] Lost connection to Pebble
I even have a log message as the very first line of code in the main
function, but it doesn't display:
int main(void) {
APP_LOG(APP_LOG_LEVEL_INFO, "Main.");
init();
app_event_loop();
deinit();
}
I'm also getting a concerning warning upon building that might be related:
/usr/local/Cellar/pebble-sdk/3.0/libexec/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Does anyone know what might be happening? The total lack of any logs makes me think that my watchface code is not related to the crash. I can post some code if requested, though.
EDIT: I tried again with another project, with all of the code copy-pasted from Pebble's tutorial source code. Same problem.
Upvotes: 0
Views: 154
Reputation: 396
This isn't your fault. This is an issue with the commandline tool. Upgrading to the latest SDK should fix this.
brew update
brew upgrade pebble-sdk
Upvotes: 1