当前位置:网站首页>TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
TypeError: ‘Collection‘ object is not callable. If you meant to call the ......
2022-04-23 04:56:00 【Huang Jiajun】
TypeError: 'Collection' object is not callable. If you meant to call the 'update' method on a 'Collection' object it is failing because no such method exists.
Error reason :
pymongo4.0.1 Great changes have taken place ,pymongo 4.0.1 It doesn't contain 'Collection' object.
Solution 1 :( When I was experimenting , Failed to successfully download to the lower version pymongo)
(1) uninstall pymongo 4.0.1
C:\Users\nx>pip uninstall pymongo
(2) install pymongo-3.5.1
C:\Users\nx>pip install pymongo==3.5.1
Solution 2 :
Change the function that cannot be called to pymongo4.0.1 Functions with similar functions in the or implement that function by yourself .
版权声明
本文为[Huang Jiajun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230454290173.html
边栏推荐
- Innovation training (V) configuration information
- C# List字段排序含有数字和字符
- Open the past and let's start over.
- Innovation training (IX) integration
- What's the difference between error and exception
- Innovation training (II) task division
- 机器学习---线性回归
- Use model load_ state_ Attributeerror appears when dict(): 'STR' object has no attribute 'copy‘
- The object needs to add additional attributes. There is no need to add attributes in the entity. The required information is returned
- PHP 统计指定文件夹下文件的数量
猜你喜欢
Spark FAQ sorting - must see before interview
Thoughts on a small program
【数据库】MySQL多表查询(一)
Detailed explanation of the differences between TCP and UDP
解决ValueError: Argument must be a dense tensor: 0 - got shape [198602], but wanted [198602, 16].
Leetcode 1547: minimum cost of cutting sticks
[WinUI3]编写一个仿Explorer文件管理器
CLion+OpenCV identify ID number - detect ID number
Use model load_ state_ Attributeerror appears when dict(): 'STR' object has no attribute 'copy‘
独立站运营 | FaceBook营销神器——聊天机器人ManyChat
随机推荐
AQS源码阅读
[database] MySQL basic operation (basic operation ~)
Introduction to raspberry pie 3B - system installation
getprop 属性
Last day of 2017
Agile practice | agile indicators to improve group predictability
Details related to fingerprint payment
Sword finger offer: the path with a certain value in the binary tree (backtracking)
Innovation training (II) task division
用LCR表完美测试无线充电系统中的线圈
【数据库】MySQL基本操作(基操~)
selenium模式下切换窗口,抓取数据的实现
L2-011 玩转二叉树(建树+BFS)
Simply drag objects to the item bar
Making message board with PHP + MySQL
Introduction to load balancing
Solutions to the failure of sqoop connection to MySQL
C list field sorting contains numbers and characters
PIP3 installation requests Library - the most complete pit sorting
AQS source code reading