Closed mandalanil closed 4 years ago
An error occurred during execution of following code: pyplugin_installer.instance().installFromZipFile(r'C:\Users\kanil\Downloads\QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning-master (1).zip')
Traceback (most recent call last): File "C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python\qgis\utils.py", line 334, in _startPlugin plugins[packageName] = package.classFactory(iface) AttributeError: module 'QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning-master' has no attribute 'classFactory'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in File "C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python\pyplugin_installer\installer.py", line 636, in installFromZipFile if startPlugin(pluginName): File "C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python\qgis\utils.py", line 354, in startPlugin if not _startPlugin(packageName): File "C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python\qgis\utils.py", line 336, in _startPlugin _unloadPluginModules(packageName) File "C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python\qgis\utils.py", line 448, in _unloadPluginModules mods = _plugin_modules[packageName] KeyError: 'QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning-master'
Python version: 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version: 3.12.3-București 'București', 8234261527
Python path: ['C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python', 'C:/Users/kanil/AppData/Roaming/QGIS/QGIS3\profiles\default/python', 'C:/Users/kanil/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins', 'C:/PROGRA~1/QGIS3~1.12/apps/qgis/./python/plugins', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\Scripts', 'C:\Program Files\QGIS 3.12\bin\python37.zip', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\DLLs', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib', 'C:\Program Files\QGIS 3.12\bin', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\win32', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\win32\lib', 'C:\PROGRA~1\QGIS3~1.12\apps\Python37\lib\site-packages\Pythonwin', 'C:/Users/kanil/AppData/Roaming/QGIS/QGIS3\profiles\default/python']
Did you try installing it from within the QGIS using the plugin installation process?
Thanks for the reply, Yes i tried installing from qgis, it installed successfully but gives an error as a plugin missing metadata file.
Best regards Anil Kumar Mandal Photogrammetry and Remote Sensing Officer Naxa pvt. ltd./DroNepal pvt.ltd. Ph: +9779864420878/9824881170
On Sat, Jun 20, 2020 at 8:00 PM Pratyush Tripathy notifications@github.com wrote:
Did you try installing it from within the QGIS using the plugin installation process?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PratyushTripathy/QGIS-Plugin-Produce-Training-Samples-For-Deep-Learning/issues/5#issuecomment-647001328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUCWHKFZ5MVA6RHKXPYJHTRXTABXANCNFSM4ODIN2AA .
Please check these:
Please share a screenshot of the error.
@mandalanil
That is a separate issue for which you can either respond to the article itself or send me a detailed email. However, teaching you CNN from scratch remotely would not be possible for me, please refer to online resources. Would also like to suggest you make sure that the two images you are providing for image chips generation are of same geometry (cell size and dimension, etc.). Please refer to the usage instruction page. If you have issues related to the plugin, please report here, I am closing the issue now.
FYI if you get an error about not having gdal
you need to go to the plugin directory and change the .py
scripts that contain:
import gdal
to
from osgeo import gdal
unable to install in qgis3.12.3