AssertionError重新启动后,在 Raspberry Pi Zero W 上运行我的脚本时,我得到以下信息。几分钟后错误停止发生,我可以按预期与我的 Firebase 数据库交互,没有问题。但是,这仍然存在问题,因为它会阻止我在设备连接到 wifi 后立即成功运行脚本。我还在firebase-admin-python 存储库中将此作为问题发布。Traceback (most recent call last): File "/home/pi/weatherbox/48_hour_forecast.py", line 136, in <module> render_forecast(args.location) File "/home/pi/weatherbox/48_hour_forecast.py", line 88, in render_forecast forecast_data_48_hours.append(darksky.get_time_machine_forecast(location, timestamp_today)) File "/home/pi/weatherbox/darksky.py", line 83, in get_time_machine_forecast coordinates = get_lat_long(location_search) File "/home/pi/weatherbox/darksky.py", line 16, in get_lat_long saved_location = saved_location_ref.get() File "/usr/local/lib/python2.7/dist-packages/firebase_admin/db.py", line 219, in get return self._client.body('get', self._add_suffix(), params=params) File "/usr/local/lib/python2.7/dist-packages/firebase_admin/_http_client.py", line 93, in body resp = self.request(method, url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/firebase_admin/db.py", line 882, in request return super(_Client, self).request(method, url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/firebase_admin/_http_client.py", line 84, in request resp = self._session.request(method, self._base_url + url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/google/auth/transport/requests.py", line 198, in request self._auth_request, method, url, request_headers) File "/usr/local/lib/python2.7/dist-packages/google/auth/credentials.py", line 122, in before_request
添加回答
举报
0/150
提交
取消