[Errno 13] Permission denied: u'reports.zip'

Hi,

I am getting error “IOError: [Errno 13] Permission denied: u’reports.zip” while trying to export data through running command “C:\python27\scripts\commcare-export --output-format xlsx --project test --query C:\a\test.xlsx” .

Traceback (most recent call last):
File “C:\python27\scripts\commcare-export-script.py”, line 11, in
load_entry_point(‘commcare-export==0.12.7’, ‘console_scripts’, ‘commcare-export’)()
File “c:\python27\lib\site-packages\commcare_export\cli.py”, line 200, in entry_point
main(sys.argv[1:])
File “c:\python27\lib\site-packages\commcare_export\cli.py”, line 84, in main
main_with_args(args)
File “c:\python27\lib\site-packages\commcare_export\cli.py”, line 191, in main_with_args
‘rows’: [ [uuid.uuid4().hex, args.query, query_file_md5, run_start.isoformat()] ]
File “c:\python27\lib\site-packages\commcare_export\writers.py”, line 118, in exit
self.book.save(self.file)
File “c:\python27\lib\site-packages\openpyxl\workbook\workbook.py”, line 265, in save
save_dump(self, filename)
File “c:\python27\lib\site-packages\openpyxl\writer\dump_worksheet.py”, line 314, in save_dump
writer.save(filename)
File “c:\python27\lib\site-packages\openpyxl\writer\excel.py”, line 167, in save
archive = ZipFile(filename, ‘w’, ZIP_DEFLATED)
File “c:\python27\lib\zipfile.py”, line 756, in init
self.fp = open(file, modeDict[mode])
IOError: [Errno 13] Permission denied: u’reports.zip’

  •     I have full permission on C: drive/Python27 folder and folder "a" created on c drive.
    

Kindly help me on this.

Regards

Afroz Khan | IT Officer | +91 9415037876 | afroz.khan@crs.orgmailto:afroz.khan@crs.org | Skype: Afroz.khan82
B-116/8, Indira Nagar, Lucknow, Uttar Pradesh 226016 India | crs.orghttp://www.crs.org/

[CRS_Email_Signature_English]

Connect with us on:
[cid:image002.png@01D1CD64.AECAE050]http://www.facebook.com/CatholicReliefServices [cid:image003.png@01D1CD64.AECAE050] https://twitter.com/CatholicRelief [cid:image004.png@01D1CD64.AECAE050] http://instagram.com/catholicreliefservices [cid:image005.png@01D1CD64.AECAE050] https://www.linkedin.com/company/catholic-relief-services [cid:image006.png@01D1CD64.AECAE050] https://plus.google.com/+catholicreliefservices/posts [cid:image007.png@01D1CD64.AECAE050] https://www.youtube.com/catholicrelief [cid:image008.png@01D1CD64.AECAE050] http://www.pinterest.com/catholicrelief/