Discussion: Missing Python dependency (msal) causes runtime failure when using pip #864
Unanswered
netanelitguru
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
While testing and running
xss.py, I encountered an immediate runtime failure caused by a missing Python dependency:msal.The script imports
msaldirectly, but the dependency is neither installed automatically nor documented in the project’s setup instructions. As a result, the program crashes at startup before any runtime logic executes.This discussion is intended to confirm whether
msalis an intended mandatory dependency and to suggest improvements to dependency management and documentation.Error Details
The error occurs immediately on launch.
Environment
venv)Steps to Reproduce
At this point, execution fails with:
Expected Behavior
One of the following would be expected:
msal) are installed automatically via pipActual Behavior
ModuleNotFoundErrorLikely Root Cause
msalis imported directly in the codebasemsalis not included in:requirements.txtpyproject.tomlTemporary Workaround
Manually installing the dependency resolves the issue:
After installing
msal, the script runs past the import stage without errors.Suggestions for Improvement
1. Dependency Management
Add
msalto the project’s dependency list, for example:requirements.txt
Then document installation clearly:
2. Documentation
Update the README to include:
venv+ pip3. Optional: Improved Error Handling
To improve user experience, the import could be guarded:
This avoids a confusing stack trace and provides immediate guidance.
Questions for Maintainers
Is
msalan intended mandatory dependency for this project?If so, would you be open to a PR that:
I’m happy to submit a fix if this aligns with the project’s direction.
Closing
Thanks for the project and for taking the time to review this.
Clarifying dependency requirements would significantly improve onboarding and usability for new users.
Beta Was this translation helpful? Give feedback.
All reactions