spectralpython / spectral

Python module for hyperspectral image processing
MIT License
571 stars 139 forks source link

AttributeError: __enter__, __exit__ #66

Closed felixriese closed 7 years ago

felixriese commented 7 years ago

I get for the following code

with spectral.io.envi.read_envi_header(filepath) as f:
        print(f)

an AttributeError depending on the Python version. This seems to be a problem with the with-statement as pointed out here.