Skip to content

Error running example code #44

@Sananvalinta

Description

@Sananvalinta

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions