Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Bo Victor Thomsen via QGIS-User
For example - using google search: https://issues.qgis.org/issues/21464 Med venlig hilsen / Best regards Bo Victor Thomsen Den 23-03-2023 kl. 15:24 skrev Johannes Kröger (WhereGroup): Does it really happen all the time for you? It took me quite a while to reproduce. Is there an existing

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Bo Victor Thomsen via QGIS-User
I can't honestly answer that question. It's almost automatic (Like a Pavlov's dog) for me nowadays to manually set the locale for QGIS on every computer I'm using. So I normally don't experience the problem any more. And I don't use the plugin builder anymore to generate the skeleton of a

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread WhereGroup
Created issue: https://github.com/qgis/QGIS/issues/52359 Am 23.03.23 um 15:24 schrieb Johannes Kröger (WhereGroup) via QGIS-User: Does it really happen all the time for you? It took me quite a while to reproduce. Is there an existing issue already? I'll make one otherwise. Remember: Bugs

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread WhereGroup
Does it really happen all the time for you? It took me quite a while to reproduce. Is there an existing issue already? I'll make one otherwise. Remember: Bugs cannot be fixed if you keep the knowledge of their existence to yourself ;) Cheers, Hannes Am 23.03.23 um 15:09 schrieb Bo Victor

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Bo Victor Thomsen via QGIS-User
Urgh.. There's a sh*tload of existing plugins, based on the plugin builder,  having this problem (Including some of my own) Med venlig hilsen / Best rega ards Bo Victor Thomsen Den 23-03-2023 kl. 15:10 skrev Richard Duivenvoorde via QGIS-User: On 3/23/23 14:00, Bruno Streit wrote: Thank

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Richard Duivenvoorde via QGIS-User
On 3/23/23 14:00, Bruno Streit wrote: Thank you, that works perfectly! I've set the userLocal with QSettings().setValue('locale/userLocale', 'en_US'). Now the plugins work. But how do I happen to miss this setting (on more than one computer)? In Options - General, I override the System Local,

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Bo Victor Thomsen via QGIS-User
That's an old error. And I really don't know why it hasn't been fixed. But to circumvent it: * Activate the "Override System Locale" checkbox in Menu: "Settings" --> "Options" --> top of section "General" * Choose the right values in the now visible comboboxes: "User Interface

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread WhereGroup
Took a second look in the lunch break. The issue has been long fixed in the repository (August 2019! https://github.com/g-sherman/Qgis-Plugin-Builder/issues/116) but an updated version of the Plugin Builder was never published so people using it will create buggy code with it. It would be

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread WhereGroup
(@gary: I'm not sure but I think this comes from the plugin builder, is that possible?) Yes, https://github.com/g-sherman/Qgis-Plugin-Builder/blob/e51befa0ab980a57311c6f33d8d026d02da21cc3/plugin_templates/toolbutton_with_dockwidget/template/module_name.tmpl#L53 Funnily enough I ran into

Re: [Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Richard Duivenvoorde via QGIS-User
This means that you do not have a 'locale/userLocale' setting... Which if the plugin tries to find out your language receiveds 'None' Which it cannot get the first 2 chars from (using [0:2]) If you open the python console in QGIS, and paste/enter: QSettings().value('locale/userLocale') you

[Qgis-user] Couldn't load plugin XY due to an error when calling its classFactory() method

2023-03-23 Thread Bruno Streit via QGIS-User
Hi List I keep getting an error when loading or installing plugins as 'Geometry Paster', 'Geodata to ENVI-met' and many others. It seems not to be a plugin related error, since it happens with many plugins. Or is it? I'm working with QGIS Firenze ltr and had the problem with Biatowieza