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

localtileserver issue #206

Closed
Saroramath opened this issue Nov 1, 2023 · 9 comments
Closed

localtileserver issue #206

Saroramath opened this issue Nov 1, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@Saroramath
Copy link

Saroramath commented Nov 1, 2023

Environment Information

  • samgeo version: Default (Downloading segment_geospatial-0.10.1-py2.py3-none-any.whl )
  • Python version: 3.10.12
  • Operating System: Google Colab

Description

Error running the tutorial Satellite

What I Did

I was running the Satellite tutorial and it is giving error on this code cell:
m.add_raster(image, layer_name="Image")


ImportError: localtileserver is not installed. Please install it before proceeding. https://github.com/banesullivan/localtileserver

trying pip install localtileserver does not resolve.

@Saroramath Saroramath added the bug Something isn't working label Nov 1, 2023
@giswqs
Copy link
Member

giswqs commented Nov 1, 2023

Did you following the intructions to install localtileserver?

pip install localtileserver

@Saroramath
Copy link
Author

Yes, I had tried

pip install localtileserver

but it did not help with the error.

@giswqs
Copy link
Member

giswqs commented Nov 1, 2023

It is likely you have a gdal installation problem. Run the following. If it does not work, then it is a gdal problem.

from osgeo import gdal

@Saroramath
Copy link
Author

Thank, this command is running fine but the error is still there.
I did have issues with osgeo in my local environment but currently I am running "satellite.ipynb" in Google Colab.

@giswqs
Copy link
Member

giswqs commented Nov 1, 2023

It works fine on my end. Make sure you restart runtime after installation.
image

@Saroramath
Copy link
Author

Thanks, It's running for me as well. Just the error on this code cell still persist. Please close the issue if fine.
Screenshot 2023-11-01 at 1 02 06 PM
Screenshot 2023-11-01 at 1 01 16 PM

@fnavarro620
Copy link

fnavarro620 commented Nov 7, 2023

I recently solved this problem by installing localtileserver in this version pip install localtileserver==0.3.5

@Saroramath
Copy link
Author

Thanks,
pip install localtileserver==0.3.5
does resolves the issue.

@giswqs
Copy link
Member

giswqs commented Nov 9, 2023

I tested the latest localtileserver on Colab. If you restart the runtime after installation, everything works fine.

@giswqs giswqs closed this as completed Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants