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

codec wrong error message #901

Closed
117503445 opened this issue Jul 23, 2023 · 0 comments · Fixed by #902
Closed

codec wrong error message #901

117503445 opened this issue Jul 23, 2023 · 0 comments · Fixed by #902

Comments

@117503445
Copy link
Contributor

for codec != none and text output, will report an error ValueError: Codec is required for a binary I/O output. The error message is wrong.

output_string = StringIO()
with open(f, 'rb') as fin:
    extract_text_to_fp(fin, output_string, laparams=LAParams(),
                output_type='html', codec='utf-8')
@117503445 117503445 mentioned this issue Jul 23, 2023
5 tasks
@pietermarsman pietermarsman linked a pull request Jan 1, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant