smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
955 stars 168 forks source link

Python3.11启动失败 #239

Open Ariel08081214 opened 8 months ago

Ariel08081214 commented 8 months ago

D:\workspace>python -m solox Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "D:\developTools\setup\Python\Python311\Lib\site-packages\solox__main.py", line 17, in from solox.web import main File "D:\developTools\setup\Python\Python311\Lib\site-packages\solox\web.py", line 18, in from solox.view.apis import api File "D:\developTools\setup\Python\Python311\Lib\site-packages\solox\view\apis.py", line 7, in from solox.public.apm import CPU, Memory, Network, FPS, Battery, GPU, Target File "D:\developTools\setup\Python\Python311\Lib\site-packages\solox\public\apm.py", line 6, in import tidevice File "D:\developTools\setup\Python\Python311\Lib\site-packages\tidevice__init__.py", line 7, in from ._device import BaseDevice as Device File "D:\developTools\setup\Python\Python311\Lib\site-packages\tidevice_device.py", line 29, in from PIL import Image File "D:\developTools\setup\Python\Python311\Lib\site-packages\PIL\Image.py", line 82, in from . import _imaging as core ImportError: cannot import name '_imaging' from 'PIL' (D:\developTools\setup\Python\Python311\Lib\site-packages\PIL\init__.py)

我本地装了3.8、3.11,3.8可以启动低版本的,但是3.11无法启动高版本的,请问怎么解决呢?

rafa0128 commented 8 months ago

你是不是自己整了pillow这个模块?你卸载pillow后,重装一下solox试试

mutexz commented 8 months ago

我本地python3.11版本测试,正常启动,可以试试pip install -U Pillow更新pillow包

Ariel08081214 commented 8 months ago

@mutexz @rafa0128 尝试了,没用,我换3.12可以了,感谢

Ariel08081214 commented 8 months ago

@rafa0128 图片里的指标有些不是很明白,想请教下? image

1、CPU中System部分是什么? 2、Memory中Total、Native、Dalvik分别代表什么呢?

Ariel08081214 commented 7 months ago

@rafa0128 @mutexz memory部分我去查了,但是CPU中System部分是什么?求解答,感谢

mutexz commented 7 months ago

@rafa0128 @mutexz memory部分我去查了,但是CPU中System部分是什么?求解答,感谢

系统占用的CPU

rafa0128 commented 7 months ago

https://github.com/smart-test-ti/SoloX/blob/master/DocForAndroid.md @Ariel08081214 这里都有,注意看文档