I recently uploaded my plugin to the QGIS Plugin Repository. The problem I'm encountering is that my plugin relies on the openpyxl library, which is not bundled with QGIS. Consequently, users encounter a 'module not found' error when attempting to install the plugin. I would like to know how I can automate the installation of the openpyxl library on users' PCs
Asked
Active
Viewed 44 times
1
-
Have you tried some of the other suggestions: https://gis.stackexchange.com/questions/196002/development-of-a-plugin-which-depends-on-an-external-python-library – HeikkiVesanto Oct 13 '23 at 10:24
-
No I didn't. I think the "try: import package except: ..." solution looks good, Should I include it in my plugin main python file, where the code is written? – FF123456 Oct 13 '23 at 10:38
-
Yes, the main part. – HeikkiVesanto Oct 13 '23 at 15:37
-
1@HeikkiVesanto Thank you so much, it worked – FF123456 Oct 14 '23 at 12:17