open-geocomputing / OpenEarthEngineLibrary

https://www.open-geocomputing.org/OpenEarthEngineLibrary/
125 stars 38 forks source link

CalledProcessErro with non-zero exit status 128 #18

Closed masolele closed 2 months ago

masolele commented 10 months ago

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

mgravey commented 10 months ago

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

masolele commented 10 months 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 10 months 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 10 months 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 10 months ago

Capture

mgravey commented 10 months 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 10 months ago

I used pip install oeel

mgravey commented 10 months 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 10 months 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 10 months ago

did you find a work around ?