Attributeerror: 'nonetype' Object Has No Attribute 'excluded_of'
Solution 1:
Update - 1 (on 2020-12-27)
The issue has been fixed in pip==20.3.3
and thus you will not receive this exception.
But, (here) the redis-log-handler==0.0.1.dev32
depends on redis==3.0.1
but, you have redis==3.5.3
on the requirements.txt and hence the dependencies will not resolve. So, you will further receive and an error (I would say, a validation error) as,
ERROR: Cannot install -r requirements.txt (line 4) and redis==3.5.3 because these package versions have conflicting dependencies.
The conflict is caused by: The user requested redis==3.5.3 redis-log-handler 0.0.1.dev32 depends on redis==3.0.1
To fix this you could try to:
- loosen the range of package versions you've specified
- remove package versions to allow pip attempt to solve the dependency conflict
This error report is pretty much helpful and it is time to adjust your package dependencies.
Note:If you are not interested in adjusting the dependencies and want to resolve it as before, go though the below section
Original Post
This is an issue with pip version 20.3
and not yet fixed fixed in pip==20.3.3
.
Method 1
Install the previous stable version of the pip (20.2.X) by,
pip install --upgrade pip~=20.2.0
Method 2
Use --use-deprecated
flag while installing the requirements
pip install -r requirements.txt --use-deprecated=legacy-resolver
Post a Comment for "Attributeerror: 'nonetype' Object Has No Attribute 'excluded_of'"