Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with AppData Folder and Make on Windows #35

Open
lmonninger opened this issue May 2, 2019 · 3 comments
Open

Issue with AppData Folder and Make on Windows #35

lmonninger opened this issue May 2, 2019 · 3 comments

Comments

@lmonninger
Copy link

lmonninger commented May 2, 2019

Hi @alexamici, I've run into an error when requesting a DEM through using elevation.clip() in a Python script on Windows. It appears make is running into some kind of problem entering an AppData subdirectory. Here's the output I'm getting the Visual Studio console:

make: Entering directory 'C:/Users/lmonn/AppData/Local/bopen/elevation/Cache/SRTM1'
The system cannot find the path specified.
The syntax of the command is incorrect.
make: *** [Makefile:17: spool/N41/N41E012.hgt.gz] Error 1
make: Leaving directory 'C:/Users/lmonn/AppData/Local/bopen/elevation/Cache/SRTM1'
Traceback (most recent call last):
  File "test_one.py", line 338, in <module>
    elevation.clip(bounds=(12.35, 41.8, 12.65, 42), output=output, product='SRTM1')
  File "C:\Users\lmonn\AppData\Local\Programs\Python\Python37-32\lib\site-packages\elevation\datasource.py", line 181, in clip
    datasource_root = seed(bounds=bounds, **kwargs)
  File "C:\Users\lmonn\AppData\Local\Programs\Python\Python37-32\lib\site-packages\elevation\datasource.py", line 153, in seed
    ensure_tiles(datasource_root, ensure_tiles_names, **kwargs)
  File "C:\Users\lmonn\AppData\Local\Programs\Python\Python37-32\lib\site-packages\elevation\datasource.py", line 115, in ensure_tiles
    return util.check_call_make(path, targets=['download'], variables=variables_items, **kwargs)
  File "C:\Users\lmonn\AppData\Local\Programs\Python\Python37-32\lib\site-packages\elevation\util.py", line 93, in check_call_make
    subprocess.check_call(cmd, shell=True)
  File "C:\Users\lmonn\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make -C C:\Users\lmonn\AppData\Local\bopen\elevation\Cache\SRTM1 download ENSURE_TILES="N41/N41E012.tif"' returned non-zero exit status 2.

What do you think the issue could be?

Note: I've tried this with 'SRTM3' as well.

@daimeng
Copy link

daimeng commented Jun 25, 2019

Getting this on Mac also.
subprocess.CalledProcessError: Command 'make -C ~/Library/Caches/elevation/SRTM3 all ' returned non-zero exit status 2.

@owvarley
Copy link

I ran into a similar error message today, I realised that I was missing a required dependencies. In my instance I had forgotten to include 'curl', check the project README and make sure you have all the specified dependencies installed.

@1261136052
Copy link

hi ,this problem have hero solve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants