TransWikia.com

module 'rasterio' has no attribute 'open'

Geographic Information Systems Asked by rim zayani on July 8, 2021

I am new to rasterio. I’m trying to open a tif file using this code:

import rasterio
dataset= rasterio.open('/home/zaianir/Documents/DB/serie_temporelle_s2/serie_temporelle_s2/Sentinel2_T31TCJ_MASKS.tif')

But I get this error:

AttributeError: module 'rasterio' has no attribute 'open'

How do I avoid this error?

One Answer

I had this error two weeks ago. I installed rasterio 1.0.21 with conda (not with pypi). Now, rasterio.open("_.tif") works.

Answered by rdmato33 on July 8, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP