Giter VIP home page Giter VIP logo

Comments (7)

dnomadb avatar dnomadb commented on June 11, 2024 1

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

  • Downloading and using python from python.org (probably 3.x), it includes pip + virtualenv. If not, use a homebrew python.
  • Using a virtualenv to both (a) keep your python environments more manageable, and (b) not require sudo upon pip installing (which can be a security risk)
  • Once you create a virtualenv, you can:
    • pip install numpy (required for rasterio)
    • pip install rasterio --pre (uses compiled wheels for gdal binaries)
    • pip install rio-rgbify
    • or, cd into a cloned rio-rgbify, `pip install -e '.[test]'

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 ?

from rio-rgbify.

dnomadb avatar dnomadb commented on June 11, 2024

@jingsam it appears that the version on PyPi does not include this PR, which fixes the rasterio API change: #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.

from rio-rgbify.

jingsam avatar jingsam commented on June 11, 2024

Many thanks. Have a good day!

from rio-rgbify.

dnomadb avatar dnomadb commented on June 11, 2024

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

If it works, feel free to close this issue.

from rio-rgbify.

jingsam avatar jingsam commented on June 11, 2024

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

from rio-rgbify.

jingsam avatar jingsam commented on June 11, 2024

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

from rio-rgbify.

jqtrde avatar jqtrde commented on June 11, 2024

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

from rio-rgbify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.