Skip to content

RSXML module warnings #1

@KellyMWhitehead

Description

@KellyMWhitehead

Getting a few warnings in from the rsxml module when using QRiS. Low priority, but annoying.

2025-12-05T10:16:10     WARNING    warning:C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py:150: DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
              if realization_nodes:
             
             traceback: File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\gp\load_project_task.py", line 50, in finished
              self.callback(self.qris_project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\qris_toolbar.py", line 490, in on_project_loaded
              self.dockwidget.build_tree_view(project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\view\frm_dockwidget.py", line 202, in build_tree_view
              self.rs_project = RSProject(self.qris_project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\lib\rs_project.py", line 60, in __init__
              rs_project_existing = rsxml.project_xml.Project.load_project(self.project_rs_xml_path)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py", line 106, in load_project
              return Project.from_xml(xml_node, xml_file_path)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py", line 150, in from_xml
              if realization_nodes:
             
2025-12-05T10:16:10     WARNING    warning:C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py:152: DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
              if realization_node:
             
             traceback: File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\gp\load_project_task.py", line 50, in finished
              self.callback(self.qris_project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\qris_toolbar.py", line 490, in on_project_loaded
              self.dockwidget.build_tree_view(project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\view\frm_dockwidget.py", line 202, in build_tree_view
              self.rs_project = RSProject(self.qris_project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\lib\rs_project.py", line 60, in __init__
              rs_project_existing = rsxml.project_xml.Project.load_project(self.project_rs_xml_path)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py", line 106, in load_project
              return Project.from_xml(xml_node, xml_file_path)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py", line 152, in from_xml
              if realization_node:
             
2025-12-05T10:16:10     WARNING    warning:C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Realization.py:144: DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
              if found:
             
             traceback: File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\gp\load_project_task.py", line 50, in finished
              self.callback(self.qris_project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\qris_toolbar.py", line 490, in on_project_loaded
              self.dockwidget.build_tree_view(project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\view\frm_dockwidget.py", line 202, in build_tree_view
              self.rs_project = RSProject(self.qris_project)
              File "C:\Users/kelly/AppData/Roaming/QGIS/QGIS3\profiles\DEV/python/plugins\qris_dev\src\lib\rs_project.py", line 60, in __init__
              rs_project_existing = rsxml.project_xml.Project.load_project(self.project_rs_xml_path)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py", line 106, in load_project
              return Project.from_xml(xml_node, xml_file_path)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Project.py", line 153, in from_xml
              realizations.append(Realization.from_xml(realization_node, common_datasets))
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Realization.py", line 181, in from_xml
              datasets = Realization.datasets_from_xml(xml_node, 'Datasets', common_datasets)
              File "C:\Users\kelly\AppData\Roaming\Python\Python312\site-packages\rsxml\project_xml\Realization.py", line 144, in datasets_from_xml
              if found:

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions