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

[WinError 53]:The network path on WINDOWS-10 machine #20

Open
vignesh1987 opened this issue Nov 27, 2019 · 2 comments
Open

[WinError 53]:The network path on WINDOWS-10 machine #20

vignesh1987 opened this issue Nov 27, 2019 · 2 comments

Comments

@vignesh1987
Copy link

Hi,
I am trying to test the ridge_map package. But I get a windows error when I try the first steps as described on the Github page

[WinError 53] The network path was not found: '\\\\.cache\\srtm'

The code I typed is
from ridge_map import RidgeMap RidgeMap().plot_map()
image

@ColCarroll
Copy link
Owner

This is a problem with the SRTM package, unfortunately. It looks like, from the stack trace, they are not using Windows safe path objects (i.e., os.path.join(...) or pathlib)

A quick and dirty way to try to fix this is to open this file where you installed it (it is in the stack trace at ~\AppData\Local\Continuum\anaconda3\envs\myenv\lib\site-packages\srtm\main.py) and change all the

'%s/%s' % (self.get_srtm_dir(), file_name)

to

mod_path.join(self.get_srtm_dir(), file_name)

If we want to be good citizens, one of us could send this as a pull request to the main project (https://github.com/tkrajina/srtm.py)

@vignesh1987
Copy link
Author

Hi ,
I tried the hack but it does not work. Gives me the same error. I understand your suggestion but strangely does not work. I will submit an issue at the SRTM page. Thanks for your help.

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

2 participants