PratyushTripathy / QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning

https://plugins.qgis.org/plugins/produce_training_data_for_deep_learning/
GNU General Public License v3.0
48 stars 15 forks source link

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

Open makamkkumar opened 2 years ago

makamkkumar commented 2 years ago

IndexError: pop from empty list Traceback (most recent call last): File "/home/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/dataGeneratorDeepLearning8.py", line 16, in from pyrsgis import raster File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ModuleNotFoundError: No module named 'pyrsgis'

During handling of the above exception, another exception occurred:

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/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/init.py", line 35, in classFactory from .produce_training_data_for_deep_learning import produceTrainingDataForDeepLearning File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/produce_training_data_for_deep_learning.py", line 29, in from .dataGeneratorDeepLearning8 import dataGeneratorClass File "/usr/lib/python3/dist-packages/qgis/utils.py", line 888, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/dataGeneratorDeepLearning8.py", line 18, in firstTimeRun() File "/home/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins/produce_training_data_for_deep_learning/dataGeneratorDeepLearning8.py", line 8, in firstTimeRun path.pop() IndexError: pop from empty list

Python version: 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] QGIS version: 3.22.3-Białowieża Białowieża, 1628765ec7

Python Path: /usr/share/qgis/python /home/robotics/.local/share/QGIS/QGIS3/profiles/default/python /home/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins /usr/share/qgis/python/plugins /usr/lib/python38.zip /usr/lib/python3.8 /usr/lib/python3.8/lib-dynload /usr/local/lib/python3.8/dist-packages /usr/lib/python3/dist-packages /home/robotics/.local/share/QGIS/QGIS3/profiles/default/python /home/robotics/.local/share/QGIS/QGIS3/profiles/default/python/plugins/DeepLearningTools

PratyushTripathy commented 2 years ago

Hi @makamkkumar, looks like you are not using a Windows operating system (which the plugin supports). But anyway, it says that "No module names 'pyrsgis'". You have to let it finish downloading the package during the first start. See issue #6.

Let me know how it goes. If it does not work, will try something else out.