[Django]-Why I am getting "Not Implemented Error: Database objects do not implement truth value testing or bool()." while running makemigration cmd in django

83๐Ÿ‘

โœ…

The problem is with the new version of pymongo (4.0 from 29.11.2021) which is not supported by Djongo 1.3.6. You need to install pymongo 3.12.1. I had the same problem 2 hours ago.

๐Ÿ‘คKolioster

21๐Ÿ‘

The actual problem is with pymongo==4.0.1.
when installing the mongoengine by pip install mongoengine it installs the pymongo==3.12.3
So, it is not necessary to again install mongoengine just install pymongo==3.12.3 by
pip install pymongo==3.12.3.

๐Ÿ‘คAdam Al-Rahman

11๐Ÿ‘

Install pymongo version

pip install pymongo==3.12.3

or change python version below 3.7

Due to version change error occurred

๐Ÿ‘คZAVERI SIR

7๐Ÿ‘

Changed my pymongo version back to 3.12.1 and now it works.

๐Ÿ‘คKhushal

2๐Ÿ‘

Installling mongoengine worked for me.
command : pip install mongoengine

๐Ÿ‘คKAUSHAL KISHORE

0๐Ÿ‘

I changed my python version on python==3.6.9 and now it is working and migrate successfully.

๐Ÿ‘คSham Sundar

0๐Ÿ‘

I changed pymongo version to 3.12.3 and it was solved

0๐Ÿ‘

The incompatibility issue started with pymongo 4.0, by installing the previous version=3.13.0 will "solve" this issue.

0๐Ÿ‘

enter image description here
install pymongo version 3.13.0 which worked for me

๐Ÿ‘คJung__tek

-2๐Ÿ‘

Try to install django-mongoengine and it will solve the problem for sure.

๐Ÿ‘คMuhammad Afzaal

Leave a comment