PavelVeselsky / fft-convolution-filter

Raster smoothing and edge detection filters based on fftconvolve SciPy function
GNU General Public License v3.0
1 stars 1 forks source link

Error on restarting QGIS #4

Closed pcav closed 8 years ago

pcav commented 8 years ago

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 219, in startPlugin plugins[packageName] = package.classFactory(iface) File "/home/paolo/.qgis2/python/plugins/fft-convolution-filter-master/init.py", line 34, in classFactory from .fft_filter import FFTConvolution File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 478, in _import mod = _builtin_import(name, globals, locals, fromlist, level) File "/home/paolo/.qgis2/python/plugins/fft-convolution-filter-master/fft_filter.py", line 26, in import resources File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 478, in _import mod = _builtin_import(name, globals, locals, fromlist, level) ImportError: No module named resources

PavelVeselsky commented 8 years ago

This is due to missing resources.py file. As an autogenerated file, I shouldn't include it. As far as I understand the autogeneration process, make should be called while installing the plugin. I checked that the makefile really makes the resources.py file while called on my computer, but it might end with some error elsewhere. Reopen the issue if the problem persists.

PavelVeselsky commented 8 years ago

After inspecting the code of pyplugin installer, corresponding dialog and few plugins I realized that my assumption that the makefile is executed in the installation process was probably wrong and my plugin is in fact broken due to my misunderstanding of the "no generated file is left in repository" rule.

PavelVeselsky commented 8 years ago

Solved in version 0.1.4.