I am working with some python code given to me, and it fails on my system. Specifically on the statement of from collections import OrderedDict
having a capital O and capital D.
But if I change the statement to be import ordereddict
it does not fail.
And if I try import OrderedDict
it fails with a not found error.
My version of python is 2.6.9 per the SuSE SLES SDK 11.4. The python I am trying to execute I believe was written for an earlier 2.6.x version of python.
Is this problem I am experiencing a direct result of the python version?
Does anyone have any suggestions how to properly fix this problem?
Is there a difference between OrderedDict
and ordereddict
and whether or not it comes from collections
?