【问题标题】:Why do I get an error when installing my Pebble app on the aplite emulator?为什么在aplite 模拟器上安装我的Pebble 应用程序时出现错误?
【发布时间】:2015-06-29 08:22:29
【问题描述】:

我很难将我的 Pebble 应用程序安装到 aplite 模拟器。我使用的是 Mac SDK,而不是 CloudPebble,当我输入时:

pebble install --emulator aplite --debug

我得到以下输出:

[DEBUG   ] Initializing reader thread
[DEBUG   ] Reader thread loaded on tid Thread-1
[DEBUG   ] Phone ==> Watch: 000d000b035590fef60078055554432b32
[DEBUG   ] Phone ==> Watch: 0001001000
[DEBUG   ] Watch ==> Phone: 00960010015553bdef76322e392d71656d75352d362d67663761343430350000000000000000000000663761343430350000fe0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005553bdef00000000000000000000000000000000000000000000000000000026658a035553bdef656e5f55530000015858585858585800
[DEBUG   ] Phone ==> Watch: 00111770025ce319237d734d77af654e024035e51e
[DEBUG   ] Watch ==> Phone: 00960010015553bdef76322e392d71656d75352d362d67663761343430350000000000000000000000663761343430350000fe0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005553bdef00000000000000000000000000000000000000000000000000000026658a035553bdef656e5f55530000015858585858585800
[DEBUG   ] Status: '\x00\x00\x00\x01'
[DEBUG   ] WS Operation failed with response 16777216
[ERROR   ] Failed to install 'build/xxx-xxx.pbw'
[DEBUG   ] Phone info: 'pypkjs,0.0.0,qemu'
[INFO    ] Starting new HTTP connection (1): 209.118.208.39
[DEBUG   ] Analytics collection disabled due to lack of internet connectivity

知道出了什么问题吗?

basalt 模拟器没有这样的问题。

更新在运行 pebble wipepebble login 后,我收到的消息略有不同:

[DEBUG   ] Phone ==> Watch: 00020031ff02
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): timeline-sync.getpebble.com
Traceback (most recent call last):
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/libexec/lib/python2.7/site-packages/gevent-1.0-py2.7-macosx-10.10-intel.egg/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/runner/websocket.py", line 173, in go_do_install
self.pebble.pebble.install_app_pebble_protocol(f.name)
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 1186, in install_app_pebble_protocol
[DEBUG   ] Status: '\x00\x00\x00\x01'
watch_fw_version = self.get_watch_fw_version()
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 662, in get_watch_fw_version
self.get_watch_version_info()
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 645, in get_watch_version_info
version_info = self.get_versions()
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 920, in get_versions
return EndpointSync(self, "VERSION").get_data()
  File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 504, in get_data
raise PebbleError(None, "Timed out... Is the Pebble phone app connected/direct BT connection up?")
PebbleError: Timed out... Is the Pebble phone app connected/direct BT connection up? (ID:None) <Greenlet at 0x109490e10: go_do_install> failed with PebbleError

[DEBUG   ] WS Operation failed with response 16777216
[ERROR   ] Failed to install 'build/statium-pebble.pbw'

【问题讨论】:

  • 注意:这篇文章可能是一个特定于Pebble SDK 3.0beta12 的错误(在下面,用户报告使用Pebble SDK 3.1 和模拟器命令pebble wipe 解决了这个问题)。 截至 2021 年,当前版本为 Pebble SDK 4.3,官方在这里找到:developer.rebble.io/developer.pebble.com/sdk/index.html

标签: pebble-watch pebble-sdk


【解决方案1】:

这是一个一般性错误,在 aplite 上每隔一段时间就会发生一次。这将在命令行 SDK 3.1 中修复。

您可以运行 pebble wipepebble login 来解决问题,直到 3.1 正式修复。

【讨论】:

  • 没有帮助。虽然得到更详细的错误。参看。更新的问题。
  • 我刚刚升级到 SDK 3.1(我是 3.0beta12),现在一切正常。也许擦拭毕竟是负责任的。 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-11-02
  • 1970-01-01
  • 1970-01-01
  • 2016-04-23
  • 2021-01-25
  • 1970-01-01
相关资源
最近更新 更多