We have an Alteryx Designer workflow that includes a Python tool using the msal library. When we run this workflow in Alteryx Designer on the Alteryx Server, we do the following:
- Launch Alteryx Designer as Administrator.
- Run Package.installPackages(['msal']).
- Then, import the library using import msal.
This setup works fine when running the workflow directly in Designer on the Server. However, when we publish the workflow to the Alteryx Gallery and run it there, it fails with the following error:
ModuleNotFoundError: No module named 'msal' (ToolId: 1)
This raises a few questions:
- Does Package.installPackages() install the package only for the current user session, rather than system-wide?
- Could this be why the package is available in Designer but not in the Gallery runtime environment?
- We haven’t encountered this issue before—how can we verify whether msal is installed in a way that the Gallery can access it?
We’re looking for guidance on how to ensure that the msal package is installed correctly and available to all users and environments, including the Gallery. Any thoughts?