Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception has occurred: AttributeError 'XlsxWriter' object has no attribute 'save' #54

Open
SM-47 opened this issue May 3, 2023 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@SM-47
Copy link

SM-47 commented May 3, 2023

Please provide as much info as you can for expedited resolution.
I am trying to generate an excel file here but getting the following error :

Exception has occurred: AttributeError 'XlsxWriter' object has no attribute 'save' File "D:\Others\temp.py", line 11, in <module> table_data = et_sess.process_file(filepath=pdf_location, pages="all", output_format="xlsx") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'XlsxWriter' object has no attribute 'save'

This is the what i have done so far :

pdf_location = "./PDFs/1.pdf"
output_excel_location = '1.xlsx'
table_data = et_sess.process_file(filepath=pdf_location, pages="all", output_format="xlsx")
et_sess.save_output(output_excel_location, output_format="xlsx")
et_sess.process_file()

I tried uninstalling XlsxWriter but its not helping ? Anything wrong that i am doing here ? Thanks.

@SM-47 SM-47 added the good first issue Good for newcomers label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants