mapbox / rio-rgbify

Encoded arbitrary bit depth rasters in pseudo base-256
MIT License
99 stars 36 forks source link

No such command "rgbify". #10

Closed jingsam closed 5 years ago

jingsam commented 6 years ago

I install rasterio and rio-rgbify:

brew install gdal
sudo -H pip install rasterio
sudo -H pip install rio-rgbify

When I use:

rio rgbify aa.tiff aa.mbtiles

I get this error:

Usage: rio [OPTIONS] COMMAND [ARGS]...

Error: No such command "rgbify".

Anything am I missing?

dnomadb commented 6 years ago

@jingsam it appears that the version on PyPi does not include this PR, which fixes the rasterio API change: https://github.com/mapbox/rio-rgbify/pull/7. As such, the extension cannot be loaded -- my apologies! I'll get a version bump + publish going tomorrow, but feel free to clone + install via github as noted here; this should work.

jingsam commented 6 years ago

Many thanks. Have a good day!

dnomadb commented 6 years ago

@jingsam --> https://pypi.python.org/pypi/rio-rgbify/0.3.1

If it works, feel free to close this issue.

jingsam commented 6 years ago

Wired, I uninstall rgbify and reinstall rgbify 0.3.1, still errors. Should I also reinstall rasterio? Note that I am using macOS 10.13.2. and pip install with sudo -H

dnomadb commented 6 years ago

@jingsam hmm. I'd recommend (if you are not):

I know this sounds like a lot, but I have found that virtualenvs end up saving me a lot of work installing + uninstalling python packages in the future.

All this said, you should def try reinstalling rasterio, and make sure you have all these requirements installed: https://github.com/mapbox/rio-rgbify/blob/master/requirements.txt

What happens when you pip freeze | grep rasterio ?

jingsam commented 6 years ago

I successfuly installed rio-rgbify with virtualenv. Many thanks. But I would like to test installing without virtualenv, figure out why this happens.

jqtrde commented 5 years ago

Glad you got it working @jingsam! Given that, I'm gonna close here.