当前位置:网站首页>'module 'object is not callable error
'module 'object is not callable error
2022-07-07 11:16:00 【ITSOK_ U】
python Report errors :TypeError: ‘module’ object is not callable(“ modular ” Object is not callable )
- The specific code is posted below , I can't find what went wrong , I thought it was the wrong class name, which should be lowercase , Finally, looking back, it turned out to be my own py The file name is also coverage.py.
import coverage
import unittest
if __name__ == "__main__":
# Instantiate objects
cov = coverage.coverage()
# To analyze
cov.start()```
- This causes the imported module to be named the same as the program file written by yourself , Obviously, the file module written by yourself is imported here , Not imported coverage.
- terms of settlement : Change the name of the program file , as follows : Right click the program file with the mouse , Or shortcut key shift+F6,
边栏推荐
- The eighth training assignment
- 学习笔记|数据小白使用DataEase制作数据大屏
- Vscode 尝试在目标目录创建文件时发生一个错误:拒绝访问【已解决】
- Multithreaded application (thread pool, singleton mode)
- Go redis Middleware
- Unity script generates configurable files and loads
- 对比学习之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- 2022.7.4DAY596
- JSON format query of MySQL
- 【pyqt】tableWidget里的cellWidget使用信号与槽机制
猜你喜欢
JS add spaces to the string
基于华为云IOT设计智能称重系统(STM32)
Using ENSP to do MPLS pseudo wire test
2021 summary and 2022 outlook
[C #] the solution of WinForm operation zoom (blur)
[untitled]
Still cannot find RPC dispatcher table failed to connect in virtual KD
Ping tool ICMP message learning
测试开发基础,教你做一个完整功能的Web平台之环境准备
Socket socket programming
随机推荐
Vuthink正确安装过程
Go Slice 比较
关于jmeter中编写shell脚本json的应用
RationalDMIS2022 高级编程宏程序
Project ERROR: Unknown module(s) in QT: core gui
From pornographic live broadcast to live broadcast E-commerce
Go slice comparison
2021 summary and 2022 outlook
0.96 inch IIC LCD driver based on stc8g1k08
[untitled]
测试优惠券要怎么写测试用例?
What if copying is prohibited?
变量的解构赋值
网络协议 概念
Laya common script commands
2021-04-23
【C#】WinForm运行缩放(变糊)的解决方法
[untitled]
Network foundation (1)
How to use cherry pick?