首页 > 其他分享 >ModuleNotFoundError: No module named '_pytest.resultlog'

ModuleNotFoundError: No module named '_pytest.resultlog'

时间:2023-12-06 23:56:23浏览次数:36  
标签:named No module rerunfailures pytest 版本

新环境运行Python时报错 ModuleNotFoundError: No module named '_pytest.resultlog'

上网查,看到解决方法  https://www.cnblogs.com/QiKa/p/14457269.html

解决办法:
①升级pytest-rerunfailures版本到9.1.1
②卸载pytest-rerunfailures使用pytest-reportlog代替
③降低pytest版本到6.1.0以下

pip list看了一下我的版本:

pytest版本:


pytest-rerunfailures版本:

遂对pytest-rerunfailures进行了升级:pip install --upgrade pytest-rerunfailures,升级后版本:

升级后恢复正常!

标签:named,No,module,rerunfailures,pytest,版本
From: https://www.cnblogs.com/luoshuai7394/p/17880809.html

相关文章

  • node内置模块
    //1.path模块console.log(path.join('a','b','c'))//相对路径a\b\cconsole.log(path.resolve('a','b','c'))//绝对路径D:\桌面\express\a\b\cconsole.log(path.parse('http://web.chenfeng.online�......
  • EndNote如何显示论文中国作者名字第二个字的拼音?
      本文介绍利用EndNote软件,对论文参考文献中英文文献的汉语拼音姓名(即含有中国作者的英文论文)的名的第二个字的首写字母加以补充显示。  例如,假如有如下一篇文章:  可知其第一作者的姓为Kong,名为Xiangbin,很显然,该作者除了姓之外的名共有两个字。假如,我们现在希望出现在参考......
  • P3205 [HNOI2010] 合唱队
    原题链接导入1.对于一个给定的序列,最后一个加进来的元素不是最左端就是最右端,如果是最左端,那么代表去掉最左端的序列中最后一个加进来的元素比最左端小,最右端同理。2.对于一个给定的序列,可能的排序结果无非两类,一类是以最左端的元素结尾的,一类是以最右端的元素结尾的。因此设\(......
  • 交叉编译提示ModuleNotFoundError: No module named 'packaging'
    如果你的目标环境中的python是通过交叉编译自行生成的,可能会遇到这个提示在你已经完成python的交叉编译后,你就需要crossenv,然后完成对应库的适配 #Makecrossenvpipinstallcrossenvpython3-mcrossenv--without-pip$crosspy/bin/python3/your/cross-env #Activate......
  • jupyter notebook代码补全扩展安装遇到 Jupyter command `jupyter-contrib` not found
    Jupytercommandjupyter-contribnotfound.解决方案——新的安装方式。方法1:pip方式1.先使用以下命令,卸载旧版本的jupyter_contrib_nbextensions和upyter_nbextensions_configurator:分别用cmd命令,卸载之前的安装pipuninstalljupyter_contrib_nbextensionspipuninsta......
  • Nodejs APM监控实战分享
    如何对线上的nodejs做监控,了解相关的GC、内存使用情况、性能,如何更好的了解相关的指标,我们需要做一个采集线上数据的方案,但是又不希望侵入性太强,首先收集的指标。内存相关指标说明堆内存rss:常驻内存,node进程分配的总内存大小external:v8管理的C++所占用的内存大小arra......
  • kettle从入门到精通 第二十三课 kettle carte 错误(java.lang.OutOfMemoryError: GC ov
     1、Couldnotemitbufferduetolackofrequests(无法发出缓冲区,因为请求不足。)原因有两点:1)消费者处理数据能力较弱,如表输出步骤。2)消费者没有处理数据,如传递的数据中有字段type=1的数据,这种情况没有处理。解放方案:针对1)采用多线程处理和开启批量提交,如下图所示批量插入......
  • selenium.common.exceptions.SessionNotCreatedException: Message: session not crea
    pyhon调selenium报:selenium.common.exceptions.SessionNotCreatedException:Message:sessionnotcreated:ThisversionofChromeDriveronlysupportsChromeversion103Currentbrowserversionis120.0.xxx.0withbinarypathC:\ProgramFiles\Google\Chrome\......
  • Data is Null. This method or property cannot be called on Null values.
    升级到abp.io7.4EF报错System.Data.SqlTypes.SqlNullValueException:DataisNull.ThismethodorpropertycannotbecalledonNullvalues.atMicrosoft.Data.SqlClient.SqlBuffer.ThrowIfNull()atMicrosoft.Data.SqlClient.SqlBuffer.get_String()atMicroso......
  • Extraneous children found when component already has explicitly named default sl
    下述代码会报错:Extraneouschildrenfoundwhencomponentalreadyhasexplicitlynameddefaultslot.Thesechildrenwillbeignored.<el-table-columnprop="goodsState"label="商品状态"width="120"/><template#default="......