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

Error running example code #44

Open
Sananvalinta opened this issue Dec 15, 2020 · 0 comments
Open

Error running example code #44

Sananvalinta opened this issue Dec 15, 2020 · 0 comments

Comments

@Sananvalinta
Copy link

Hello,
I try to run the example code on a Windows 10 and I get the following error:

(py27) C:\Users\jhammar\Anaconda3\envs\py27>python ./peps_download.py -c S2ST -l 'Toulouse' -a peps.txt -d 2017-01-01 -f 2017-02-01
curl -k -o search.json https://peps.cnes.fr/resto/api/collections/S2ST/search.json?q='Toulouse'\&startDate=2017-01-01\&completionDate=2017-02-01\&maxRecords=500
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 93589 0 93589 0 0 93402 0 --:--:-- 0:00:01 --:--:-- 93402
'startDate' is not recognized as an internal or external command,
operable program or batch file.
'completionDate' is not recognized as an internal or external command,
operable program or batch file.
'maxRecords' is not recognized as an internal or external command,
operable program or batch file.
(u'S2A_MSIL1C_20201017T105041_N0209_R051_T31TCJ_20201017T130423', u'disk')
(u'S2B_MSIL1C_20201101T105209_N0209_R051_T31TCJ_20201101T120122', u'disk')
(u'S2B_MSIL1C_20201211T105349_N0209_R051_T31TCJ_20201211T130154', u'disk')
...
##########################
20 products to download
##########################
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 93590 0 93590 0 0 124k 0 --:--:-- --:--:-- --:--:-- 124k
'startDate' is not recognized as an internal or external command,
operable program or batch file.
'completionDate' is not recognized as an internal or external command,
operable program or batch file.
'maxRecords' is not recognized as an internal or external command,
operable program or batch file.
(u'S2A_MSIL1C_20201017T105041_N0209_R051_T31TCJ_20201017T130423', u'disk')
(u'S2B_MSIL1C_20201101T105209_N0209_R051_T31TCJ_20201101T120122', u'disk')
(u'S2B_MSIL1C_20201211T105349_N0209_R051_T31TCJ_20201211T130154', u'disk')
...
Traceback (most recent call last):
File "./peps_download.py", line 393, in
print("\nDownload of product : %s" % prod)
LookupError: unknown encoding: cp65001

does anyone have an idea what the problem might be?
Very thankful for any tips :)
Best,

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

1 participant