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

Plugins: users cannot install plugins on system-wide Workbench installations #1677

Open
davemfish opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working workbench For issues relating to the workbench front-end of invest
Milestone

Comments

@davemfish
Copy link
Contributor

davemfish commented Nov 5, 2024

On Windows, if the Workbench was installed for all users on a system, it installs to:
C:\Program Files\InVEST 3.14.2.post387+g366216a2f Workbench

Plugin installation requires writing more data to this location, which users will not have permission to do unless they run the Workbench with admin privs.

Plugin installation will fail with,

Error: Command failed: "C:/Program Files/InVEST 3.14.2.post387+g366216a2f Workbench/resources/miniforge3/condabin/mamba.bat" create --yes --name invest_plugin_schistosomiasis -c conda-forge "python<3.13.0" "gdal>=3.9.0" "setuptools<70" error libmamba Could not open lockfile 'C:\Program Files\InVEST 3.14.2.post387+g366216a2f Workbench\resources\Miniforge3\pkgs\cache\cache.lock'

I'm not sure if it's feasible in this case, but in other cases where the workbench needs to use the filesystem, we typically use someplace in app.getPath('userData'). Could the mamba environment be created in there? An implication of this (good/bad?) is that this data will persist when the Workbench is uninstalled.

@davemfish davemfish added the bug Something isn't working label Nov 5, 2024
@davemfish davemfish added this to the plugins milestone Nov 5, 2024
@davemfish davemfish added the workbench For issues relating to the workbench front-end of invest label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working workbench For issues relating to the workbench front-end of invest
Projects
None yet
Development

No branches or pull requests

1 participant