Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble with running notebooks #234

Open
frazucca opened this issue Jan 26, 2023 · 2 comments
Open

trouble with running notebooks #234

frazucca opened this issue Jan 26, 2023 · 2 comments

Comments

@frazucca
Copy link

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

@seralra96
Copy link

You can check this #230

@mkshah605
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants