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

IOError: .../help/source/conf.py #38

Open prebm opened 8 years ago

prebm commented 8 years ago

Hi,

I am trying to create a plugin with the Plugin Builder 2.10.1. When unselecting the Help option in the Additional Components Section I get the following error:

An error has occured while executing Python code:

Traceback (most recent call last): File "/home/benjamin/.qgis2/python/plugins/pluginbuilder/plugin_builder.py", line 432, in run self._prepare_tests(specification) File "/home/benjamin/.qgis2/python/plugins/pluginbuilder/plugin_builder.py", line 118, in _prepare_tests 'help/source/conf.py.tmpl', 'help/source/conf.py') File "/home/benjamin/.qgis2/python/plugins/pluginbuilder/plugin_builder.py", line 481, in populate_template plugin_file = codecs.open(output_name_path, 'w', 'utf-8') File "/usr/lib/python2.7/codecs.py", line 878, in open file = builtin.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: '/home/benjamin/Documents/QG/test/help/source/conf.py'

Python version: 2.7.6 (default, Jun 22 2015, 18:01:27) [GCC 4.8.2]

QGIS version: 2.8.1-Wien Wien, exported

Python path: ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', u'/home/benjamin/.qgis2/python', u'/home/benjamin/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', u'/home/benjamin/.qgis2//python', '/usr/share/qgis/python/plugins/fTools/tools', '.']

g-sherman commented 8 years ago

Looking into it, however you can just leave Help ticked and not link the help into your plugins UI.

prebm commented 8 years ago

Thanks. Additionally I removed it from the Makefile to exclude it from deployment.