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

error in loading path #8

Open
farliz opened this issue Mar 5, 2020 · 6 comments
Open

error in loading path #8

farliz opened this issue Mar 5, 2020 · 6 comments

Comments

@farliz
Copy link

farliz commented Mar 5, 2020

I'm trying to follow the tutorial but executing the first code of eolearn_basics.ipynb, I get the following error.

...`
---> 28 if path.startswith('s3://'):
29 return load_s3_filesystem(path, *kwargs)
30

AttributeError: 'PosixPath' object has no attribute 'startswith'
`
I don't have experience in programming, please help me to solve this.

Cheers

@devisperessutti
Copy link
Contributor

Hi @farliz,

Did you run it using Binder or locally? Because I checked on Binder and runs as supposed.

@farliz
Copy link
Author

farliz commented Mar 5, 2020

I run it locally... I will reinstall the package ...
I now use Binder and it run ok.

@geh
Copy link

geh commented Sep 25, 2020

Can confirm this happens locally with Python 3.8 on Ubuntu 20.04.

@geh
Copy link

geh commented Sep 25, 2020

It also happens in Binder (using the link at beginning of README.md).
Captura de pantalla de 2020-09-25 09-16-57

@geh
Copy link

geh commented Sep 25, 2020

I could fix it by replacing the line:

eopatch = EOPatch.load(INPUT_EOPATCH, lazy_loading=True)

by:

eopatch = EOPatch.load(str(INPUT_EOPATCH), lazy_loading=True)

@AleksMat
Copy link
Contributor

Hi @geh, this notebook is a bit outdated. I recommend checking the more up-to-date version of this notebook in the main eo-learn repository.

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

4 participants