Hi,
I am trying to convert .xlsx file to csv file using xlsx2csv methd(https://github.com/dilshod/xlsx2csv) but I am getting following error:
Traceback (most recent call last):
File "C:\Program Files (x86)\eclipse-SDK-4.2.1-win32\eclipse\d ropins\PyDev 2.7.1\plugins\o rg.python.pydev _2.7.1.20121009 13\pysrc\pydev_ runfiles.py", line 432, in __get_module_fr om_str
mod = __import__(modn ame)
File "C:\Users\nages h\workspace\mte ch_project__pha se_2\src\csvtod ic.py", line 3, in <module>
xlsx2csv("mprod uct.xlsx", open("mproduct_ converted.csv", "w+"))
File "C:\Users\nages h\workspace\mte ch_project__pha se_2\src\xlsxto csv.py", line 115, in xlsx2csv
ziphandle = zipfile.ZipFile (infilepath)
File "C:\Python27\li b\zipfile.py", line 714, in __init__
self._GetConten ts()
File "C:\Python27\li b\zipfile.py", line 748, in _GetContents
self._RealGetCo ntents()
File "C:\Python27\li b\zipfile.py", line 763, in _RealGetContent s
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
ERROR: Module: csvtodic could not be imported (file: C:\Users\nagesh \workspace\mtec h_project__phas e_2\src\csvtodi c.py).
Can anyone help?
I am trying to convert .xlsx file to csv file using xlsx2csv methd(https://github.com/dilshod/xlsx2csv) but I am getting following error:
Traceback (most recent call last):
File "C:\Program Files (x86)\eclipse-SDK-4.2.1-win32\eclipse\d ropins\PyDev 2.7.1\plugins\o rg.python.pydev _2.7.1.20121009 13\pysrc\pydev_ runfiles.py", line 432, in __get_module_fr om_str
mod = __import__(modn ame)
File "C:\Users\nages h\workspace\mte ch_project__pha se_2\src\csvtod ic.py", line 3, in <module>
xlsx2csv("mprod uct.xlsx", open("mproduct_ converted.csv", "w+"))
File "C:\Users\nages h\workspace\mte ch_project__pha se_2\src\xlsxto csv.py", line 115, in xlsx2csv
ziphandle = zipfile.ZipFile (infilepath)
File "C:\Python27\li b\zipfile.py", line 714, in __init__
self._GetConten ts()
File "C:\Python27\li b\zipfile.py", line 748, in _GetContents
self._RealGetCo ntents()
File "C:\Python27\li b\zipfile.py", line 763, in _RealGetContent s
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file
ERROR: Module: csvtodic could not be imported (file: C:\Users\nagesh \workspace\mtec h_project__phas e_2\src\csvtodi c.py).
Can anyone help?
Comment