Traceback (most recent call last): File "D:\GitClone\Digitallife\Digital_Life_Server\SocketServer.py", line 16, in <module> from ASR import ASRService File "D:\GitClone\Digitallife\Digital_Life_Server\ASR\ASRService.py", line 4, in <module> from ASR.rapid_paraformer import RapidParaformer File "D:\GitClone\Digitallife\Digital_Life_Server\ASR\rapid_paraformer\__init__.py", line 4, in <module> from .rapid_paraformer import RapidParaformer File "D:\GitClone\Digitallife\Digital_Life_Server\ASR\rapid_paraformer\rapid_paraformer.py", line 11, in <module> from .utils import (CharTokenizer, Hypothesis, ONNXRuntimeError, File "D:\GitClone\Digitallife\Digital_Life_Server\ASR\rapid_paraformer\utils.py", line 14, in <module> from typeguard import check_argument_types ImportError: cannot import name 'check_argument_types' from 'typeguard' (C:\Users\Ren\anaconda3\envs\digitallife\Lib\site-packages\typeguard\__init__.py)
时间: 2023-07-21 20:11:15 浏览: 486
这个错误是因为你正在导入的 `typeguard` 模块中缺少了 `check_argument_types` 这个函数。这可能是由于你安装的 `typeguard` 版本与代码中使用的版本不兼容导致的。
为了解决这个问题,你可以尝试升级 `typeguard` 模块到最新版本。可以使用以下命令来升级 `typeguard` 模块:
```
pip install --upgrade typeguard
```
升级完成后,重新运行代码,看看问题是否解决。如果问题仍然存在,你可以尝试查看你的代码和依赖项是否与 `typeguard` 兼容,或者尝试使用其他兼容的版本。
相关问题
Traceback (most recent call last): File "D:\pythonProject_ecg_analyzation_x\main.py", line 20, in <module> r_peaks, bpm = GetRpeak.getrpeak(ecg_voltage, user_number) File "D:\pythonProject_ecg_analyzation_x\GetRpeak.py", line 31, in getrpeak _r_peaks = hp.peak_detection(m) AttributeError: module 'HeartPy' has no attribute 'peak_detection'
这个错误提示是因为你使用了一个名为HeartPy的模块,但在该模块中没有名为"peak_detection"的属性或函数。你可以检查一下HeartPy模块中是否有其他的函数或属性可以替代"peak_detection"函数。另外,你也可以尝试在HeartPy模块的官方文档中查找相关信息,或者联系该模块的开发者以获取帮助。
Traceback (most recent call last): File "D:\pythonProject_ecg_analyzation_x\main.py", line 26, in <module> form = GetModel.getmodel(normalized_beat_xy, ecg_voltage, r_peaks, user_number) File "D:\pythonProject_ecg_analyzation_x\GetModel.py", line 10, in getmodel model = pickle.load(f) ModuleNotFoundError: No module named 'xgboost'
这个错误是因为在你的代码中使用了XGBoost模型,但是你的Python环境中并没有安装XGBoost库。你需要在你的环境中安装XGBoost库,可以使用以下命令:
```
pip install xgboost
```
如果你使用的是conda环境,可以使用以下命令:
```
conda install -c anaconda py-xgboost
```
安装完成后,再次运行代码即可。
阅读全文
相关推荐

















