C:\HuiGuanTool\perceptionqa_v37\venv\Lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, Traceback (most recent call last): File "C:\Users\haohua.tian\Desktop\Geely_1027\log_check_Geely\log_auto_check.py", line 8, in <module> from utils import get_log, untar_gz_file, error_excel_reader 这个是什么问题
时间: 2023-08-08 18:05:11 浏览: 57
这个问题是由于使用的 Blowfish 加密算法被标记为已废弃,导致引发 CryptographyDeprecationWarning 警告。你的代码中导入了 utils 模块,并调用了其中的 get_log、untar_gz_file 和 error_excel_reader 函数。然而,根据提供的信息,无法确定这些函数与报错信息之间的具体关联。可能需要进一步检查代码中是否有使用了 Blowfish 加密算法的部分,并考虑替换为其他更安全的加密算法。
相关问题
ImportError: cannot import name 'datetime' from 'pandas' (C:\python_daima\venv\lib\site-packages\pandas\__init__.py)
根据提供的引用内容,出现了一个ImportError: cannot import name 'datetime' from 'pandas' (C:\python_daima\venv\lib\site-packages\pandas\__init__.py)的错误。这个错误通常是由于pandas库中的datetime模块无法导入引起的。可能的原因是pandas库版本过低或者安装有问题。
解决这个问题的方法是更新pandas库或重新安装pandas库。你可以使用以下命令来更新pandas库:
```shell
pip install --upgrade pandas
```
如果更新不起作用,你可以尝试重新安装pandas库:
```shell
pip uninstall pandas
pip install pandas
```
请注意,重新安装pandas库可能会导致其他依赖项出现问题,因此请谨慎操作。
ImportError: cannot import name 'EVENT_TYPE_OPENED' from 'watchdog.events' (E:\Python_Data\venv\Lib\site-packages\watchdog\events.py)
这个错误是由于在'watchdog.events'模块中找不到名为'EVENT_TYPE_OPENED'的引用导致的。根据提供的引用内容,这个错误可能是由于以下原因之一引起的:
1. 当前目录下没有名为'watchdog.events'的模块。
2. 导入语句中使用的模块名或引用名称可能有误。
要解决这个错误,可以尝试以下几个步骤:
1. 确保在当前目录下存在名为'watchdog.events'的模块文件。
2. 检查导入语句中的模块名和引用名称是否正确。可以使用以下命令列出当前目录下的所有.py文件:
3. 确保Python环境中已安装watchdog库。可以使用以下命令创建一个独立的Python运行环境并安装所需的库:[3]
4. 如果问题仍然存在,可以尝试升级watchdog库或查找其他解决方法。
请注意,具体的解决方法可能因你的具体情况而异。建议根据具体错误信息和引用内容进一步调查和排除问题。