Skip to content

update to suit QGIS4#81

Open
Githubcopilot111 wants to merge 2 commits intoWMS-Engineering:mainfrom
Githubcopilot111:qgis4-update
Open

update to suit QGIS4#81
Githubcopilot111 wants to merge 2 commits intoWMS-Engineering:mainfrom
Githubcopilot111:qgis4-update

Conversation

@Githubcopilot111
Copy link

Tested on a Windows 11 QGIS4 install by copying the repo folder to %APPDATA%\QGIS\QGIS4\profiles\default\python\plugins\AusMap\

Copy link
Author

@Githubcopilot111 Githubcopilot111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

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

Successfully merging this pull request may close these issues.

1 participant