我试图跟踪鹅卵石C观察面教程,我可以有时间显示,但我无法获得任何天气信息显示。查看日志,似乎在启动时立即出现了致命错误:
[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有人知道会发生什么事吗?任何日志的完全缺乏使我认为我的观察面代码与崩溃无关。不过,如果有要求,我可以发布一些代码。
编辑:我再次尝试了另一个项目,所有的代码拷贝-粘贴从鹅卵石的教程源代码。同样的问题。
发布于 2015-07-03 05:10:05
这不是你的错。这是命令行工具的一个问题。升级到最新的SDK应该可以修复这个问题。
brew update
brew upgrade pebble-sdkhttps://stackoverflow.com/questions/31192396
复制相似问题