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

ResourceWarning: unclosed file #569

Closed
maradragan opened this issue Aug 30, 2021 · 2 comments
Closed

ResourceWarning: unclosed file #569

maradragan opened this issue Aug 30, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@maradragan
Copy link

maradragan commented Aug 30, 2021

I am using xhtml2pdf 0.2.5 with python3.7 and I get the following warnings:

/usr/local/lib/python3.7/site-packages/xhtml2pdf/w3c/css.py:891: ResourceWarning: unclosed file <io.TextIOWrapper name='<here_path_to_file>' mode='r' encoding='UTF-8'>
return cssParser.parseExternal(import
)

/usr/local/lib/python3.7/site-packages/xhtml2pdf/parser.py:643: ResourceWarning: unclosed file <_io.BufferedReader name='<here_path_to_file>'>
pisaLoop(nnode, context, path, **kw)

@pb-dod
Copy link

pb-dod commented Sep 8, 2021

@maradragan You're sure you're seeing these errors on python 3.7? I'm only seeing them on 3.8.

@sguldemond
Copy link

@luisza idem #568, seems to be solved with v0.2.7

@timobrembeck timobrembeck added the bug Something isn't working label Feb 1, 2023
@timobrembeck timobrembeck changed the title ResourceWarning: unclosed file ResourceWarning: unclosed file Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants