小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
运行FishBot配置助手闪退
-
你好,
我在安装“ FishBot配置助手及固件发布页”的时候遇到一些问题。
1. 我是ubuntu22.04 + humble, 然后人在海外(不知道有没有影响)
我在安装配置助手时,是下载了git里的fishbot_tool.v1.0.0.beta1.linux_amd64,然后把他放到虚拟机ubuntu22.04里解压的。
解压后,我运行运行命令 xhost + && sudo docker run -it --rm --privileged -v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY fishros2/fishbot_tool:v1.0.0.beta1 时:
他会闪现一下配置助手的界面,然后立马就消失了。
运行&报错结果:
cheng@cheng-virtual-machine:~$ xhost + && sudo docker run -it --rm --privileged -v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY fishros2/fishbot_tool:v1.0.0.beta1
access control disabled, clients can connect from any host
[sudo] password for cheng:
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
2024-04-29 10:31:58 > FishBot配置工具已启动.
2024-04-29 10:31:58 > [提示]获取到当前系统设备 ['/dev/ttyS0']
Traceback (most recent call last):
File "main.py", line 236, in <module>
File "main.py", line 215, in show
File "main.py", line 62, in first_startup_operate
File "main.py", line 164, in choose_device_callback
KeyError: 'motion_board'
[7] Failed to execute script 'main' due to unhandled exception!2. 我也尝试运行:配置助手:xhost + && sudo docker run -it --rm --privileged -v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY fishros2/fishbot-tool:v1.0.0.20240219 python3 main.py 也报错了。
报错结果:
cheng@cheng-virtual-machine:~$ xhost + && sudo docker run -it --rm --privileged -v /dev:/dev -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY fishros2/fishbot-tool:v1.0.0.20240219 python3 main.py
access control disabled, clients can connect from any host
2024-04-29 10:37:33 > [提示]获取到当前系统设备 []
[]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connection.py", line 806, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/ssl.py", line 465, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/ssl.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.10/ssl.py", line 1100, in _create
self.do_handshake()
File "/usr/lib/python3.10/ssl.py", line 1371, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.10/dist-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='fishros.org.cn', port=443): Max retries exceeded with url: /forum/api/v3/posts/2301 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/fishbot_tool/fishbot_tool/main.py", line 245, in <module>
fishbottool = FishBotTool()
File "/fishbot_tool/fishbot_tool/main.py", line 57, in init
self.choose_device_callback()
File "/fishbot_tool/fishbot_tool/main.py", line 175, in choose_device_callback
board_bin = get_version_data()
File "/fishbot_tool/fishbot_tool/data.py", line 13, in get_version_data
response = requests.get(version_info_url)
File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/requests/adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='fishros.org.cn', port=443): Max retries exceeded with url: /forum/api/v3/posts/2301 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))请大佬解答一下,谢谢。
-
@Chengyawen26 可以使用最新的windows/linux 可执行文件版本:
-
@小鱼
大佬,你好,根据你的回复,我重新安装了tool,但是无论在Windows上还是在linux上,都同时出现了相同的error。报错如下:Traceback (most recent call last): File "main.py", line 236, in <module> File "main.py", line 215, in show File "main.py", line 62, in first_startup_operate File "main.py", line 164, in choose_device_callback KeyError: 'motion_board'
尝试了很多,始终没找到解决方法,求解答,谢谢
-
1 在win上
在Windows上运行报错的截图如下
2 在Linux上
在Ubuntu22.04里,我运行了release里最新版的,linux版和source版,但是都报同样的错误:
求解答,谢谢!
-
@Chengyawen26 先回退用beta beta版本,我抽空检查下这个bug
-
@Chengyawen26 请检查你的电脑是否可以访问:https://fishros.org.cn/forum/api/v3/posts/2301 网址
-
@Chengyawen26 已经在beta2上修复了该问题,晚些访问release页面可以下载