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

Cannot run the plugin in QGIS 3.26 #54

Open
saberraz opened this issue Jul 25, 2022 · 1 comment
Open

Cannot run the plugin in QGIS 3.26 #54

saberraz opened this issue Jul 25, 2022 · 1 comment
Labels

Comments

@saberraz
Copy link
Contributor

saberraz commented Jul 25, 2022

Couldn't load plugin 'OSTranslatorII' due to an error when calling its classFactory() method

TypeError: setValue(self, int): argument 1 has unexpected type 'float' 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/home/saber/.local/share/QGIS/QGIS3/profiles/default/python/plugins/OSTranslatorII/__init__.py", line 17, in classFactory
    return OsTranslatorII(iface)
  File "/home/saber/.local/share/QGIS/QGIS3/profiles/default/python/plugins/OSTranslatorII/os_translator_ii.py", line 36, in __init__
    self.dlg = OsTranslatorIIDialog(iface)
  File "/home/saber/.local/share/QGIS/QGIS3/profiles/default/python/plugins/OSTranslatorII/os_translator_ii_dialog.py", line 56, in __init__
    self.initialise_ui()
  File "/home/saber/.local/share/QGIS/QGIS3/profiles/default/python/plugins/OSTranslatorII/os_translator_ii_dialog.py", line 206, in initialise_ui
    self.simultaneousJobsSpinBox.setValue( val )
TypeError: setValue(self, int): argument 1 has unexpected type 'float'


Python version: 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0] 
QGIS version: 3.26.1-Buenos Aires Buenos Aires, b609df9ed4 
@PeterPetrik PeterPetrik added the bug label Aug 4, 2022
saberraz added a commit that referenced this issue Sep 19, 2022
@gregorywilliams
Copy link

The linked fix also worked for me on 3.24.3-Tisler

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

No branches or pull requests

3 participants