open-geocomputing / OpenEarthEngineLibrary

https://www.open-geocomputing.org/OpenEarthEngineLibrary/
129 stars 39 forks source link

CalledProcessErro with non-zero exit status 128 #18

Closed masolele closed 6 months ago

masolele commented 1 year ago

CalledProcessError: Command '['git', 'clone', 'https://github.com/open-geocomputing/OpenEarthEngineLibrary.git', 'OEEL']' returned non-zero exit status 128.

mgravey commented 1 year ago

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

masolele commented 1 year ago

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')

mgravey commented 1 year ago

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 ?

masolele commented 1 year ago

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.

masolele commented 1 year ago

Capture

mgravey commented 1 year ago

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

masolele commented 1 year ago

I used pip install oeel

mgravey commented 1 year ago

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 ?

masolele commented 1 year ago

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

mgravey commented 1 year ago

did you find a work around ?