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

save_to_memory closes stream so you can't use it later #6

Closed
xgilest opened this issue Jan 26, 2015 · 3 comments
Closed

save_to_memory closes stream so you can't use it later #6

xgilest opened this issue Jan 26, 2015 · 3 comments

Comments

@xgilest
Copy link

xgilest commented Jan 26, 2015

...
output = StringIO()
book = pe.Book({'hoja1':[['datos', 'de', 'prueba'],[1, 2, 3]], })
book.save_to_memory('csv', output)
logger.debug(output.getvalue())
This will raise an exception "I/O operation on closed file"

@chfw
Copy link
Member

chfw commented Jan 26, 2015

Thanks for reporting.

I have added similar test code to my tests but I failed to reproduce the bug. So, could you please share a bit more code that exposes the bug that you are having?

@xgilest
Copy link
Author

xgilest commented Jan 28, 2015

I haven't had the time to prepare a reproduceable script with the bug, as soon as I can I'll send you. Thx

@chfw
Copy link
Member

chfw commented Feb 5, 2015

I am closing this error as no known way to reproduce the bug. Let's reopen this when it becomes reproducible

@chfw chfw closed this as completed Feb 5, 2015
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

No branches or pull requests

2 participants