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

Error on install #160

Closed
jesbrz opened this issue Oct 27, 2023 · 2 comments
Closed

Error on install #160

jesbrz opened this issue Oct 27, 2023 · 2 comments
Assignees

Comments

@jesbrz
Copy link

jesbrz commented Oct 27, 2023

I get this error when I try to install:

Plugin 'qgis-plugx-plugin' could not be loaded due to an error calling its classFactory() method

ImportError: cannot import name 'write_json' from 'utils' (/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/utils.py) 
Traceback (most recent call last):
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis-plugx-plugin/__init__.py", line 9, in classFactory
    from qgis2plugx import QGIS2PlugX
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis-plugx-plugin/qgis2plugx.py", line 7, in 
    from ui.main_dialog import MainDialog
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis-plugx-plugin/ui/main_dialog.py", line 22, in 
    from translator.vector.label import generate_label_vector
  File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis-plugx-plugin/translator/vector/label.py", line 7, in 
    from utils import write_json
ImportError: cannot import name 'write_json' from 'utils' (/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/utils.py)

Versión de Python: 3.9.5 (default, Sep 10 2021, 16:18:19) [Clang 12.0.5 (clang-1205.0.22.11)]
Versión de QGIS: 3.32.3-Lima Lima, 67d46100b5b

@bordoray
Copy link
Collaborator

bordoray commented Nov 2, 2023

Hi @jesbrz , thanks for your feedback.

ImportError: cannot import name 'write_json' from 'utils' (/Users/xxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/qgis2web/utils.py) 

It looks that plugin install makes a conflict with another plugin (here qgis2web).
If you disable qgis2web and relaunch QGIS, it should work.

I agree that it is not a solution though, I will try to fix it.

@bordoray bordoray self-assigned this Nov 2, 2023
@bordoray
Copy link
Collaborator

bordoray commented Dec 4, 2023

Close with #161

@bordoray bordoray closed this as completed Dec 4, 2023
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

No branches or pull requests

2 participants