Avdhesh Parashar
Avdhesh Parashar

Reputation: 1197

AttributeError: 'module' object has no attribute 'MutableSet'

I installed BitTornado without root access by downloading the zip and running command 'pip install -e path/to/bittornado/'. The installation was successful but when I tried using it for downloading the file, the following error occurred --
AttributeError: 'module' object has no attribute 'MutableSet'.
The following screenshot has the details.

BitTornado Error

I'm new to Python. If someone know what's happening, please help. Thanks in advance.

Upvotes: 0

Views: 8430

Answers (1)

anthony sottile
anthony sottile

Reputation: 70195

BitTornado only supports python3 (and not python2.x). The specific error is due to a change in python3 which makes imports absolute by default (unless the relative import syntax is used) -- as such it is importing the BitTorando.Types.collections module for import collections.

I'd suggest making a python3 virtualenv and installing BitTornado there. (Or if you want a system-wide installation, use pip3 install ...)

Upvotes: 1

Related Questions