g-sherman / Qgis-Plugin-Builder

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

Plugin builder 3 : 'WARNING: the plugin "newPlugin" is not compatible with this version of QGIS' #101

Open L-Howarth opened 5 years ago

L-Howarth commented 5 years ago

Hi I recent installed plugin builder 3 in QGIS 3.4.3

I was following the tutorial here and had just compiled with pyrcc5 - I checked my new plugin appear in the plugin list, but when I select it I get a warning message that the plugin is not compatible with this version of QGIS... any clues as to why?

image

g-sherman commented 5 years ago

What does your metatdata.txt file contain for the qgis min and max versions?

L-Howarth commented 5 years ago

HI, sorry been away for a couple of days. Just had a look at the metadata.txt - Min and Max version should be ok ?

[general] name=Plugin Builder 3 about=Create a template for a QGIS plugin description=Creates a QGIS plugin template for use as a starting point in plugin development version=3.1 qgisMinimumVersion=2.99 qgisMaximumVersion=3.99

changelog=3.1 2018-12-31:

  • Fix issue with reload on generated plugins 3.0.4 2018-12-25:
  • Move dialog creation to run method.
  • Move help file generation files to proper method
  • Include missing tags file
  • Attempt to compile resources.qrc when plugin is generated (requires pyrcc5 in path)
  • Set deployment directory in Makefile based on user OS (pb_tool is preferred over make)
  • Check for valid URL format for tracker and repository 3.0.3 2018-02-23: Redesign of UI to allow better editing prior to generation.

homepage=http://g-sherman.github.io/Qgis-Plugin-Builder tracker=https://github.com/g-sherman/Qgis-Plugin-Builder/issues repository=https://github.com/g-sherman/Qgis-Plugin-Builder tags=development icon=icon.png

experimental=False deprecated=False

author=GeoApt LLC email=gsherman@geoapt.com

L-Howarth commented 5 years ago

I'm just trying to use the plugin builder again (following the tuto previously linked above). When I click on "generate" I get the following message

The resource compiler pyrcc5 was not found in your path. You'll have to manually compile the resources.qrc file with pyrcc5 before installing your plugin

I did get this message the first time, but I didn't mention before, because in the tuto they show how to compile with pyrcc5 just after... so I didn't think anything of it..

g-sherman commented 5 years ago

Check metadata.txt for your plugin, not Plugin Builder.

veragreen119 commented 5 years ago

I am also getting pyrcc5 error. Didn't want to start a new issue since it is mentioned here. Q GIS: 3.4.1-Madeira Python37 Plugin Builder 3.1

I see this comment in the Changelog:

As a side not from my plugin metadata.txt: qgisMinimumVersion=3.0