Skip to main content

I am getting an error when I try to use:

from utils import plot_image


the error which I am getting:


ImportError                               Traceback (most recent call last)

~\AppData\Local\Temp/ipykernel_6632/733020416.py in

9 from sentinelhub import MimeType, CRS, BBox, SentinelHubRequest, SentinelHubDownloadClient, DataCollection, bbox_to_dimensions, DownloadRequest

10

—> 11 from utils import plot_image

12

13 CLIENT_ID=‘76186bb6-a02e-4457-9a9d-126e4fffaed4’


ImportError: cannot import name ‘plot_image’ from ‘utils’ (c:\users\majid\appdata\local\programs\python\python39\lib\site-packages\utils_init_.py)


This is part of the code I am using:
#Import them

import os

import datetime

import numpy as np

import matplotlib.pyplot as plt

import plot_utils


from sentinelhub import SHConfig

from sentinelhub import MimeType, CRS, BBox, SentinelHubRequest, SentinelHubDownloadClient, DataCollection, bbox_to_dimensions, DownloadRequest


from utils import plot_image

Be the first to reply!

Reply