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\dropins\PyDev 2.7.1\plugins\org.python.pydev_2.7.1.2012100913\py src\pydev_runfiles.py", line 432, in __get_module_from_str
mod = __import__(modname)
File "C:\Users\nagesh\workspace\mtech_project__phase_2\ src\csvtodic.py", line 3, in <module>
xlsx2csv("mproduct.xlsx", open("mproduct_converted.csv", "w+"))
File "C:\Users\nagesh\workspace\mtech_project__phase_2\ src\xlsxtocsv.py", line 115, in xlsx2csv
ziphandle = zipfile.ZipFile(infilepath)
File "C:\Python27\lib\zipfile.py", line 714, in __init__
self._GetContents()
File "C:\Python27\lib\zipfile.py", line 748, in _GetContents
self._RealGetContents()
File "C:\Python27\lib\zipfile.py", line 763, in _RealGetContents
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\mtech_project__phase_2\s rc\csvtodic.py).
Can anyone help?