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

initGui() method error at install on Ubuntu server #286

Closed
BallJonathan opened this issue Aug 31, 2023 · 0 comments · Fixed by #287
Closed

initGui() method error at install on Ubuntu server #286

BallJonathan opened this issue Aug 31, 2023 · 0 comments · Fixed by #287
Labels
enhancement New feature or request

Comments

@BallJonathan
Copy link

Reported by User:

Hello,

On several occasions I have attempted to install the QGIS Koordinates plugin. Each time it fails, including when I uninstall and reinstall the plugin. The error message is below. QGIS is installed on a stand alone ubuntu server. QGIS is used by a single user.

Couldn't load plugin 'koordinates' due to an error when calling its initGui() method

AttributeError: 'QMainWindow' object has no attribute 'screen'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/qgis/utils.py", line 448, in startPlugin
plugins[packageName].initGui()
File "/home/administrator/.local/share/QGIS/QGIS3/profiles/default/python/plugins/koordinates/plugin.py", line 49, in initGui
self.dock = Koordinates(self.iface.mainWindow())
File "/home/administrator/.local/share/QGIS/QGIS3/profiles/default/python/plugins/koordinates/gui/koordinates.py", line 446, in init
if os.name == 'nt' or self.window().screen().devicePixelRatio() > 1:
AttributeError: 'QMainWindow' object has no attribute 'screen'

Python version: 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0]
QGIS version: 3.26.3-Buenos Aires Buenos Aires, 65e4edfdad

Python Path:
/usr/share/qgis/python
/home/administrator/.local/share/QGIS/QGIS3/profiles/default/python
/home/administrator/.local/share/QGIS/QGIS3/profiles/default/python/plugins
/usr/share/qgis/python/plugins
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/home/administrator/.local/lib/python3.8/site-packages
/usr/local/lib/python3.8/dist-packages
/usr/lib/python3/dist-packages
/home/administrator/.local/share/QGIS/QGIS3/profiles/default/python
/home/administrator/.local/share/QGIS/QGIS3/profiles/default/python/plugins/ee_plugin/extlibs_linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant