Closed kfuku52 closed 2 years ago
Availability of a link, esp. Google and Amazon are based on country. I.e. some GWS data is only available from within the US, while others are worldwide.
During testing I noticed that a trying to download from a GWS link only available to the US, Urllib.request
will throw a URLError within python.
I used the "in-house" python wget, because I felt this was a more 'pythonic' approach. I will change this to subprocess.run()
, no problem.
I'm afraid that URLError
can be caused by many problems, and the error message would be misleading when the cause isn't the country.
I used the "in-house" python wget, because I felt this was a more 'pythonic' approach.
That pythonic approach uses urllib, and you've implemented a urllib-based download already. You can check how the package wget
is implemented from here: https://pypi.org/project/wget/#files
@Hego-CCTB I just found that the package wget
, not the command wget
, is still used in getfastq
. Is there any reason to use it?
If there was any reason, I forgot about it. I'll change it to use subprocess.run() with the wget
.
Done. I'll push the update later today.
This was done. Never came back to close this.
This service may not be publicly available in your country
I'm not sure why this stdout "ERROR" message implies the country is the problem. Is there any relationship with URLError?Also, please remove the dependency to the python package
wget
. We should directly use the commandwget
without the library. Or is there any problem withsubprocess.run()
?