g-sherman / Qgis-Plugin-Builder

Plugin generator for creating QGIS Python plugins (QGIS 3 version is now in master)
77 stars 61 forks source link

Plugin Builder crashes at the end of the wizard #77

Open EmanueleAcito89 opened 6 years ago

EmanueleAcito89 commented 6 years ago

Hi friends, I'll trying to create a plugin with the builder. This is the message at the end of the Wizard (when do you choose a directory to store the file). Thanks. Emanuele. ++++++++

Traceback (most recent call last): File "C:/Users/manu/.qgis2/python/plugins\pluginbuilder\plugin_builder.py", line 428, in run self._prepare_code(specification) File "C:/Users/manu/.qgis2/python/plugins\pluginbuilder\plugin_builder.py", line 170, in _prepare_code specification, self.shared_dir, 'Makefile.tmpl', 'Makefile') File "C:/Users/manu/.qgis2/python/plugins\pluginbuilder\plugin_builder.py", line 482, in populate_template plugin_file = codecs.open(output_name_path, 'w', 'utf-8') File "C:\PROGRA~1\QGIS2~1.18\apps\Python27\lib\codecs.py", line 881, in open file = builtin.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: 'C:\Program Files\QGIS 2.18\e\Makefile'

g-sherman commented 6 years ago

Can you try again with the latest version of Plugin Builder?

GabrielVander commented 5 years ago

Same problem

GabrielVander commented 5 years ago

When choosing a directory to put the plugin in I chose C:\Users\USERNAME\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins and it worked, no 'MakeFile' related issues, maybe it'll work for you too. PS: The folder "AppData" is hidden, so make sure you are able to see hidden folders, also I'm using QGIS 3.4 but I believe it would work with any version .

g-sherman commented 5 years ago

I suggest using pb_tool for building and deploying your plugins to avoid Makefile issues on Windows: https://g-sherman.github.io/plugin_build_tool/