Neutree / COMTool

Cross platform communicate assistant(Serial/network/terminal tool)( 跨平台 串口调试助手 网络调试助手 终端工具 linux windows mac Raspberry Pi )支持插件和二次开发
https://neucrack.com/p/186
GNU Lesser General Public License v3.0
1.85k stars 338 forks source link

issues #92

Closed KingingWang closed 1 year ago

KingingWang commented 1 year ago
(comtools) root@jupyter:~/COMTool# comtool
2023-03-01 07:55:46 - [INFO] -  Config path: /root/.config/comtool/config.json
2023-03-01 07:55:46 - [INFO] -  Log path: /root/.config/comtool/run.log
2023-03-01 07:55:46 - [INFO] -  loading config from /root/.config/comtool/config.json
2023-03-01 07:55:46 - [INFO] -  loading config complete
-- set locale to en
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted
Neutree commented 1 year ago

应该是差什么依赖 可以 先执行export QT_DEBUG_PLUGINS=1 看看调试信息, 也许 https://neucrack.com/p/407 有参考意义

KingingWang commented 1 year ago

sudo apt install python3-pyqt5 我以为只有树莓派要这个,原来所有的都要

Neutree commented 1 year ago

不是啊,如果你下载的二进制包理论上就不需要的; 如果你是源码安装比如 pip install comtool 它会自己下载

KingingWang commented 1 year ago

就源码编译安装,没有自动安装,pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple也执行了

KingingWang commented 1 year ago

我用的是ubuntu22.04和debian系统,都是这样的,sudo apt install python3-pyqt5就好了

Neutree commented 1 year ago

你是什么系统,我用我最近新装的ubuntu22.04,直接pip install comtool -i https://pypi.douban.com/simple

可以看到自动装了 pyqt5: image

直接 comtool 就能启动

image

KingingWang commented 1 year ago

我没有pip install comtool -i https://pypi.douban.com/simple我是想源码直接编译的,就直接pip install -r requirements.txt

Neutree commented 1 year ago

那没啥区别

KingingWang commented 1 year ago

但是确实报那个错误...

Neutree commented 1 year ago

应该是差什么依赖 可以 先执行export QT_DEBUG_PLUGINS=1 看看调试信息, 也许 https://neucrack.com/p/407 有参考意义

按照这个看看缺啥依赖吧 调一调

Neutree commented 1 year ago

噢你已经解决了 那就行

BunnySakura commented 7 months ago

如果使用pip安装成功但是执行comtool显示找不到命令,可以直接执行:

python -m COMTool.Main

为了方便使用,可以写一个别名用来执行comtool。这里以Zsh举例,Bash差不多:

nano ~/.zshrc # 编辑zsh配置

在最后一行添加:

alias comtool='python -m COMTool.Main' # 指定别名comtool