Pebble 表盘在安装后立即崩溃
Pebble watchface crashes immediately upon installation
我正在尝试关注 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
有人知道会发生什么吗?完全没有任何日志让我认为我的表盘代码与崩溃无关。不过,如果需要,我可以 post 一些代码。
编辑:我再次尝试另一个项目,所有代码都是从 Pebble 的 tutorial source code 复制粘贴的。同样的问题。
这不是你的错。这是命令行工具的问题。升级到最新的 SDK 应该可以解决这个问题。
brew update
brew upgrade 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
有人知道会发生什么吗?完全没有任何日志让我认为我的表盘代码与崩溃无关。不过,如果需要,我可以 post 一些代码。
编辑:我再次尝试另一个项目,所有代码都是从 Pebble 的 tutorial source code 复制粘贴的。同样的问题。
这不是你的错。这是命令行工具的问题。升级到最新的 SDK 应该可以解决这个问题。
brew update
brew upgrade pebble-sdk