Pebble表面在安装后立即崩溃

时间:2015-07-02 18:51:14

标签: pebble-watch pebble-sdk

我试图关注Pebble C watchface tutorial,我可以抽出时间来展示,但我无法显示任何天气信息。查看日志,似乎在启动时立即出现致命错误:

[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

我甚至有一条日志消息作为main函数中的第一行代码,但它没有显示:

int main(void) {
    APP_LOG(APP_LOG_LEVEL_INFO, "Main.");
    init();
    app_event_loop();
    deinit();
}

我在建筑时也会收到一个可能相关的警告:

/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

有谁知道可能会发生什么?完全没有任何日志让我觉得我的表盘代码与崩溃无关。不过,我可以根据要求发布一些代码。

编辑:我再次尝试使用另一个项目,所有代码都是从Pebble&#39; tutorial source code复制粘贴的。同样的问题。

1 个答案:

答案 0 :(得分:1)

这不是你的错。这是命令行工具的问题。升级到最新的SDK应该可以解决这个问题。

brew update
brew upgrade pebble-sdk