Hi ,
I need yours support in resolving the issue for a setup to Export the CommCare by using the API to an Excel file:
and and i am getting stuck with an error in the 3rd step (Run the examples and save the output to an Excel Workbook) with the below command line:
C:\python27\scripts\commcare-export --output-format xlsx --output registrations-export-results.xlsx --project
https://www.commcarehq.org/a/programme --query "C:\Documents and Settings\Admin\My Documents\Commcare\Pregnancy-Registration.xlsx"
The error is as follows:
Traceback (most recent call last):
File "C:\python27\scripts\commcare-export-script.py", line 9, in <module>
load_entry_point('commcare-export==0.11.7', 'console_scripts', 'commcare-exp
ort')()
File "C:\Python27\lib\site-packages\commcare_export\cli.py", line 181, in entr
y_point
main(sys.argv[1:])
File "C:\Python27\lib\site-packages\commcare_export\cli.py", line 71, in main
main_with_args(args)
File "C:\Python27\lib\site-packages\commcare_export\cli.py", line 166, in main
_with_args
writer.write_table(table)
File "C:\Python27\lib\site-packages\commcare_export\writers.py", line 99, in w
rite_table
for row in table['rows']:
File "C:\Python27\lib\site-packages\commcare_export\minilinq.py", line 255, in
iterate
for item in source_result:
File "C:\Python27\lib\site-packages\commcare_export\commcare_hq_client.py", li
ne 105, in iterate_resource
batch = self.get(resource, params)
File "C:\Python27\lib\site-packages\commcare_export\commcare_hq_client.py", li
ne 91, in get
raise Exception('GET %s failed (%s): %s' % (resource_url, response.status_co
de, response.text))
Exception
Thanks in advance for your reply/suggestions.
With regards,
GD Sahu