notebooks icon indicating copy to clipboard operation
notebooks copied to clipboard

trouble with running notebooks

Open frazucca opened this issue 2 years ago • 2 comments

Hi I've follow the instruction in order to run the docker for jupyter notebooks (great!!).

But when I choose to run the calculate_coverage.ipynb I get the following error

**_# Notebook dependencies from future import print_function

from datetime import datetime import copy from functools import partial import geopandas as gpd import os

from IPython.display import display, Image import matplotlib from matplotlib import cm import matplotlib.pyplot as plt import numpy as np import pandas as pd from planet import Auth from planet import Session, DataClient, OrdersClient import pyproj import rasterio from rasterio import features as rfeatures from shapely.ops import transform from shapely.geometry import shape import shapely.ops

%matplotlib inline

ImportError Traceback (most recent call last) in 14 import numpy as np 15 import pandas as pd ---> 16 from planet import Auth 17 from planet import Session, DataClient, OrdersClient 18 import pyproj

ImportError: cannot import name 'Auth' from 'planet' (/opt/conda/lib/python3.7/site-packages/planet/__init__.py)_**

Any hints? TIA fz

frazucca avatar Jan 26 '23 17:01 frazucca

You can check this https://github.com/planetlabs/notebooks/issues/230

seralra96 avatar Feb 20 '23 16:02 seralra96

Thanks @seralra96 ! Yes @frazucca it's likely because you still have V1 of our Python SDK installed, but V2 is the most current version and will allow you to work with these notebooks. You can learn more about how to get started with our Planet SDK using this Quick Start Guide.

mkshah605 avatar Feb 24 '23 19:02 mkshah605