Skip to main content

Hi,

While exploring “https://github.com/azupanc/eo-ex/blob/master/notebooks/water-level-monitor/theewaterskloof_dam_water_level.ipynb” I am stuck at line

“from sentinelhub.common import BBox, CRS”.The error is :-No module named ‘sentinelhub.common’.

What could be the reason for this problem?

Hi,

In the newest version of sentinelhub-py module common was renamed to geometry. That is why you are getting an error.

Please change that line into

from sentinelhub import BBox, CRS

Okay got it.It solved my problem.Thank You.


Kindly help me in one more error:-

AttributeError: ‘tuple’ object has no attribute ‘exterior’


Hi,

this example is no longer maintained. Please take a look at sentinel-hub/water-observatory-backend instead for a working and up-to-date example.

Best regards

PS: I updated the example’s README with this note.


Okay thank you for this reference.


Hi,

I was trying the
GitHub - sentinel-hub/water-observatory-backend: Monitoring water levels of lakes and reservoirs using satellite imagery example.

There are invalid syntax error in some scripts that are present in src.


What Python version are you using? Is this due to f-strings that are available from Python 3.6?


I am using python version 3.5


If you don’t wish to upgrade your python installation to 3.6, then the solution is to replace the f-strings like


f'{resx}m'

with


'{}m'.format(resx)

Reply