1

I am getting the following errror when a python program is run

File "/home/user/Desktop/important/paper/ordereddict.py", line 1, in from collections import MutableMapping ImportError: cannot import name MutableMapping

When I tried import collections it works fine. Please help.

I am using version Python 2.5.2

2 Answers 2

4

collections.MutableMapping was introduced only in Python 2.6, so you need at least that version of Python to use your ordereddict module.

Sign up to request clarification or add additional context in comments.

Comments

1

You have to use Python 2.6 to use MutableMapping

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.