Giter Club home page Giter Club logo

Comments (10)

mgravey avatar mgravey commented on June 16, 2024

we will lot go far with this !!
what do you try to do ?

from openearthenginelibrary.

masolele avatar masolele commented on June 16, 2024

I am loading a module using Google Earth Engine Python API. This module consists of functions for processing sentinel 1 images in earth engine. I want to run thin in gee python API. In gee I would normally use require('users/robertnag82/usa/:A_sentinel1_preprocessing2').

I tried doing the same in gee python API with
sentpro =oeel.requireJS('users/robertnag82/usa/:A_sentinel1_preprocessing2')

I also tried using https://geemap.org/notebooks/120_javascript/ but keep getting the same error
sentpro = geemap.requireJS('users/robertnag82/usa/:A_sentinel1_preprocessing2')

from openearthenginelibrary.

mgravey avatar mgravey commented on June 16, 2024

Hi,
I am not 100% sure, but from my test it's more a geemap issue
It look like you repo need to be public such as ou can automatically load it like that.

Personally, I would advise you to copy your js in a file and to import the file with a local path.

I am not sure, because the error I get is different and make much more sense.
Are you on a windows ?
Are you sure to have git installed and in the path ?

from openearthenginelibrary.

masolele avatar masolele commented on June 16, 2024

The repo is public, I have git version 2.25.1. and I work on a Linux server. I will try copying the js file locally and i hope that will work.

On the other hand, I get the same error when importing oeel.
from oeel import oeel
CalledProcessError: Command '['git', 'clone', 'https://github.com/open-geocomputing/OpenEarthEngineLibrary.git', 'OEEL']' returned non-zero exit status 128.

from openearthenginelibrary.

masolele avatar masolele commented on June 16, 2024

Capture

from openearthenginelibrary.

mgravey avatar mgravey commented on June 16, 2024

Did you by accident ˋsudo pip install oeelˋ ? I mean with sudo
Maybe an issue happen if the user that run the initialize of oeel do not have write access on the oeel package directory

from openearthenginelibrary.

masolele avatar masolele commented on June 16, 2024

I used pip install oeel

from openearthenginelibrary.

mgravey avatar mgravey commented on June 16, 2024

I assume you try to uninstall and reinstall oeel.

The error message is clear "could not create work tree dir 'OEEL': Permission denied "

So for sure it's a write access issue. Now, why? is complicated to know. can you run the initialisation in a sudo python ? else you can go in the oeel package directory and run a the git clone command from there ?

from openearthenginelibrary.

masolele avatar masolele commented on June 16, 2024

I dont have sudo access! let me try your suggestiob of running a the git clone command from the oeel package directory.

from openearthenginelibrary.

mgravey avatar mgravey commented on June 16, 2024

did you find a work around ?

from openearthenginelibrary.

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.