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

rio_tiler.reader has no attribute tile #19

Open
flynneva opened this issue Nov 28, 2021 · 3 comments
Open

rio_tiler.reader has no attribute tile #19

flynneva opened this issue Nov 28, 2021 · 3 comments

Comments

@flynneva
Copy link

hi kyle! first off, great work and thank you for sharing your code!

running the example in the README.md I am seeing this error:

Traceback (most recent call last):
  File "main.py", line 7, in <module>
    tile, mask = tile(url, x, y, z, tilesize=512)
  File "/home/flynn/.local/lib/python3.8/site-packages/usgs_topo_tiler/usgs_topo.py", line 72, in tile
    return reader.tile(
AttributeError: module 'rio_tiler.reader' has no attribute 'tile'

Looks like maybe rio_tiler API was changed/updated?

@flynneva
Copy link
Author

I installed rio-tiler-3.0.0a6.tar.gz when I ran python3 -m pip install 'rio-tiler>=2.0a6'

@flynneva
Copy link
Author

downgrading to rio-tiler==2.0a6 fixed the error 👍🏼

@kylebarron
Copy link
Owner

Ah, yeah when I originally was working on this, rio-tiler 2.0 hadn't been released yet, so I had to pin >=2.0a6 to force the new version. Now that 3.0 alphas exist pip finds the wrong version.

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

2 participants