Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating an existing plugin fails with missing license message although license is present #386

Closed
burkmarr opened this issue Aug 1, 2024 · 3 comments

Comments

@burkmarr
Copy link

burkmarr commented Aug 1, 2024

URL

https://plugins.qgis.org/plugins/add/

On what type of device(s) did you see this bug?

Desktop

On which browser(s) are you seeing the problem?

Chrome

Other Browser

No response

Summary

Updating an existing plugin, which I've done many times before, fails with the message shown below:

There were errors reading plugin package (please check also your plugin's metadata). Cannot find LICENSE in the plugin package. This file is required, please consider adding it to the plugin package.

I already had a license in the package called license.txt. I tried renaming that to LICENSE.txt but with the same result. I've also confirmed that I have all mandatory metadata.txt fields (as described here: https://docs.qgis.org/3.34/en/docs/pyqgis_developer_cookbook/plugins/plugins.html#metadata-txt).

I noticed that this problem has also been noted by by someone else recently on Stackexchange (https://gis.stackexchange.com/questions/484049/cannot-find-license-in-the-plugin-package-error-when-updating-qgis-plugin/).

image

@timlinux
Copy link
Member

timlinux commented Aug 1, 2024

Thank you for your report - can you please move it to the plugin repo.

https://github.com/qgis/QGIS-Django/issues

Out of curiosity, what workflow did you follow to end up filing your ticket here (so we can try to fix the source of the issue of reporting in the wrong repo)?

Thanks

Tim

@timlinux timlinux closed this as completed Aug 1, 2024
@burkmarr
Copy link
Author

burkmarr commented Aug 1, 2024

I found this: https://www.qgis.org/resources/support/bug-reporting/ and looked under 'Where to report'. My problem wasn't with QGIS desktop, server or APIs. Website seemed the best fit since I was trying to use a tool from the plugin subdomain of the website.

I've managed to fix my problem now. I think there is a new requirement that the license is named LICENSE without any file extension. But this doesn't appear to be documented - I found a clue on a QGIS pull request. I'll raise the issue on https://github.com/qgis/QGIS-Documentation/issues.

@agiudiceandrea
Copy link
Contributor

See also qgis/QGIS-Django#453.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants