Conversation
Githubcopilot111
left a comment
There was a problem hiding this comment.
user got this error, so provided further update on 18/3
Couldn't load plugin 'AusMap' due to an error when calling its initGui() method
AttributeError: type object 'QIODevice' has no attribute 'ReadOnly'
Traceback (most recent call last):
File "C:\PROGRA1/QGIS401.0/apps/qgis/./python\qgis\utils.py", line 511, in startPlugin
plugins[packageName].initGui()
File "C:\Users/Chris.Dzwinek/AppData/Roaming/QGIS/QGIS4\profiles\default/python/plugins\AusMap\ausmap.py", line 48, in initGui
self.create_menu()
File "C:\Users/Chris.Dzwinek/AppData/Roaming/QGIS/QGIS4\profiles\default/python/plugins\AusMap\ausmap.py", line 52, in create_menu
self.config.load()
File "C:\Users/Chris.Dzwinek/AppData/Roaming/QGIS/QGIS4\profiles\default/python/plugins\AusMap\config.py", line 17, in load
self.ausmap_config.load()
File "C:\Users/Chris.Dzwinek/AppData/Roaming/QGIS/QGIS4\profiles\default/python/plugins\AusMap\ausmap_config.py", line 24, in load
self.qlr_file = self._get_qlr_file()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users/Chris.Dzwinek/AppData/Roaming/QGIS/QGIS4\profiles\default/python/plugins\AusMap\ausmap_config.py", line 70, in _get_qlr_file
return self._read_cached_qlr()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users/Chris.Dzwinek/AppData/Roaming/QGIS/QGIS4\profiles\default/python/plugins\AusMap\ausmap_config.py", line 89, in _read_cached_qlr
f.open(QIODevice.ReadOnly)
^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QIODevice' has no attribute 'ReadOnly'
Python version: 3.12.13 (main, Mar 5 2026, 15:14:54) [MSC v.1944 64 bit (AMD64)]
QGIS version: 4.0.0-Norrköping Norrköping, 1ddcee3d0e4
Python Path:
Tested on a Windows 11 QGIS4 install by copying the repo folder to %APPDATA%\QGIS\QGIS4\profiles\default\python\plugins\AusMap\