gvellut / FreehandRasterGeoreferencer

QGIS plugin for the interactive georeferencing of rasters
GNU General Public License v2.0
50 stars 13 forks source link

Plugin error on a Linux build #43

Closed zeddock closed 3 years ago

zeddock commented 3 years ago

I am on Manjaro Linux with QGIS 3.20.0 I get this error when installing from zip: Couldn't load plugin 'FreehandRasterGeoreferencer-master' due to an error when calling its classFactory() method

ImportError: cannot import name 'resources_rc' from 'FreehandRasterGeoreferencer-master' (/home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer-master/init.py) Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/qgis/utils.py", line 335, in _startPlugin plugins[packageName] = package.classFactory(iface) File "/home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer-master/init.py", line 24, in classFactory from .freehandrastergeoreferencer import FreehandRasterGeoreferencer File "/usr/lib/python3.9/site-packages/qgis/utils.py", line 799, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer-master/freehandrastergeoreferencer.py", line 19, in from . import resources_rc # noqa ImportError: cannot import name 'resources_rc' from 'FreehandRasterGeoreferencer-master' (/home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer-master/init.py)

Python version: 3.9.6 (default, Jun 30 2021, 10:22:16) [GCC 11.1.0] QGIS version: 3.20.0-Odense Odense, exported

Python Path: /home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins/LAStools /usr/share/qgis/python /home/jim/.local/share/QGIS/QGIS3/profiles/default/python /home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins /usr/share/qgis/python/plugins /usr/lib/python39.zip /usr/lib/python3.9 /usr/lib/python3.9/lib-dynload /usr/lib/python3.9/site-packages /home/jim/.local/share/QGIS/QGIS3/profiles/default/python /home/jim/.local/share/QGIS/QGIS3/profiles/default/python/plugins/kmltools/libs QGIS Plugin Error

gvellut commented 3 years ago

Thank you for your bug report.

How did you install the plugin ? Through the QGIS Plugin Manager or with a clone of the repo ?

If you have cloned the repo, you will need to generate a few Python files, using the build.sh script (you will need the pyrcc5 and pyuic5 tools).

zeddock commented 3 years ago

I downloaded the zip and installed form zip

I am not familiar with the build.sh. Can you point me toward a tutorial or give me the steps please?

Thank you.

zeddock commented 3 years ago

I see it was closed.

What was the issue? Or is it just resolved from some other update being done?

Thank you.

Jim

...sent from my scrawney phone. please forgive typos...

On Thu, Aug 19, 2021, 2:44 PM Guilhem Vellut @.***> wrote:

Closed #43 https://github.com/gvellut/FreehandRasterGeoreferencer/issues/43.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gvellut/FreehandRasterGeoreferencer/issues/43#event-5182980040, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGKYJWMYYMRNNNCUE32JAGDT5VGJRANCNFSM5BRLUNXQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .