Traceback (most recent call last):


 "C:\Users\S10500\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder\widgets\ipythonconsole\client.py", line 575, in show_time

elapsed_time = time.monotonic() - self.t0
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Traceback (most recent call last):


 "code.py", line 6, in <module>

with rasterio.open(gzip_infile) as raster_infile:


 "[path]/env/lib/python3.6/site-packages/rasterio/__init__.py", line 152, in open

raise TypeError("invalid path: {0!r}".format(path))
TypeError: invalid path: <gzip _io.BufferedReader name='sample_ascii_grid.txt.gz' 0x104ef95c0>
