godber / gdal_pds

A GDAL wrapper for the PDS filetype in python
MIT License
1 stars 1 forks source link

Fails on Python 2.6 because the label parser uses OrderedDict #1

Open godber opened 10 years ago

godber commented 10 years ago

The PDS Label parser uses OrderedDict which is not available in Python 2.6. I have removed 2.6 from the travis.yml but this could be easily fixed.

======================================================================
ERROR: Failure: ImportError (cannot import name OrderedDict)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/nose/loader.py", line 413, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/travis/virtualenv/python2.6/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/travis/build/godber/gdal_pds/tests/label_test.py", line 2, in <module>
    from gdal_pds import label
  File "/home/travis/build/godber/gdal_pds/gdal_pds/__init__.py", line 8, in <module>
    from gdal_pds import label
  File "/home/travis/build/godber/gdal_pds/gdal_pds/label.py", line 7, in <module>
    from collections import OrderedDict
ImportError: cannot import name OrderedDict