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

Python Environment #11

Open
Sue-0311 opened this issue Jun 16, 2023 · 1 comment
Open

Python Environment #11

Sue-0311 opened this issue Jun 16, 2023 · 1 comment

Comments

@Sue-0311
Copy link

I have encountered an issue while trying to load your plugin on my system running QGIS version 3.28.7-Firenze Firenze and Python version 3.9.5. The issue seems to be associated with the missing 'pycocotools' module in the Python environment QGIS is using.
The plugin tries to automatically install the necessary packages (Cython, scikit-image, Pillow, pycocotools) using pip. However, this installation attempt has been unsuccessful. My observations and research suggest that the command being executed by the plugin might not be pointing to the correct Python interpreter. It tries to execute the installation with 'python3', but this might not correspond to the Python interpreter being used by QGIS on my system.
Furthermore, it's worth noting that the 'pycocotools' library may not be fully compatible with Python versions above 3.8. Given that my system is using Python 3.9.5, this could potentially be another reason for the installation failure.
I would greatly appreciate it if you could provide guidance on this issue, or update the plugin to address these compatibility problems.

@mazingaro
Copy link

Did you try installing it from Python in QGIS? I did it like this and it worked (Ubuntu 24.04, QGIS Prizren):

import pip
pip.main(['install', 'Cython'])

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

2 participants