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 #142

Closed
sjib opened this issue May 11, 2024 · 2 comments
Closed

ResourceWarning: unclosed file #142

sjib opened this issue May 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@sjib
Copy link
Contributor

sjib commented May 11, 2024

Describe the bug

2024-05-11T21:39:39     WARNING    warning:C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgepplugin\gui\qgepdatamodeldialog.py:112: ResourceWarning: unclosed file 
              return func(*args, **kwargs)
             
             traceback: File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgepplugin\gui\qgepdatamodeldialog.py", line 112, in wrapper
              return func(*args, **kwargs)
2024-05-11T21:46:05     WARNING    warning:C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\xml\etree\ElementTree.py:580: ResourceWarning: unclosed file 
              self._root = parser._parse_whole(source)
             
             traceback: File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgepplugin\qgepplugin.py", line 539, in actionImportClicked
              action_import(self)
              File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\gui\__init__.py", line 176, in action_import
              import_dialog = GuiImport(plugin.iface.mainWindow())
              File "C:\Users/Stefan/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgepplugin\qgepqwat2ili\qgepqwat2ili\gui\gui_import.py", line 33, in __init__
              loadUi(os.path.join(os.path.dirname(__file__), "gui_import.ui"), self)
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\site-packages\PyQt5\uic\__init__.py", line 238, in loadUi
              return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\site-packages\PyQt5\uic\Loader\loader.py", line 66, in loadUi
              return self.parse(filename, resource_suffix)
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\site-packages\PyQt5\uic\uiparser.py", line 1020, in parse
              document = parse(filename)
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\xml\etree\ElementTree.py", line 1229, in parse
              tree.parse(source, parser)
              File "C:\PROGRA~1\QGIS 3.28.4\apps\Python39\lib\xml\etree\ElementTree.py", line 580, in parse
              self._root = parser._parse_whole(source)
@sjib sjib added this to the Datamodel 1.6.3 Plugin 1.6.4 milestone Oct 14, 2024
@sjib sjib added the bug Something isn't working label Oct 14, 2024
@sjib
Copy link
Contributor Author

sjib commented Oct 17, 2024

@ponceta I am not so deep in python to debug this.

Maybe already solved with this #167 as we have now a rollback_session?

@ponceta
Copy link
Member

ponceta commented Oct 18, 2024

It looks like a function was not stopped and therefore still locked a specific file, please reopen if you see the same issue on 1.6.4

@ponceta ponceta closed this as completed Oct 18, 2024
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

2 participants