opengisch / qfieldsync

Sync your projects to QField
https://qfield.org/
GNU Lesser General Public License v3.0
53 stars 26 forks source link

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

Closed TheDude005 closed 5 months ago

TheDude005 commented 5 months ago

I updated the plugin after updating Qgis today and now it is no longer working with a python issue.

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

ModuleNotFoundError: No module named 'libqfieldsync.offliners' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/qgis/utils.py", line 426, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/jordan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qfieldsync/init.py", line 48, in classFactory from qfieldsync.qfield_sync import QFieldSync File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/jordan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qfieldsync/qfield_sync.py", line 42, in from qfieldsync.gui.package_dialog import PackageDialog File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/jordan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/qfieldsync/gui/package_dialog.py", line 27, in from libqfieldsync.offliners import QgisCoreOffliner File "/usr/lib/python3/dist-packages/qgis/utils.py", line 923, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'libqfieldsync.offliners'

Python version: 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] QGIS version: 3.36.1-Maidenhead Maidenhead, 3e589453264

suricactus commented 5 months ago

Thank for the report Dude005!

Do you still have the error when you restart you QGIS or it is a one-time event?

TheDude005 commented 5 months ago

Restarting again and reinitializing the plugin worked. Thanks

On Thu, Mar 28, 2024, 3:25 AM Ivan Ivanov @.***> wrote:

Thank for the report Dude005!

Do you still have the error when you restart you QGIS or it is a one-time event?

— Reply to this email directly, view it on GitHub https://github.com/opengisch/qfieldsync/issues/575#issuecomment-2024655566, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDSKQ635HIIFR4B72KOEFDY2PAYLAVCNFSM6AAAAABFL472NSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGY2TKNJWGY . You are receiving this because you authored the thread.Message ID: @.***>