Skip to content

Conversation

Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Jul 7, 2025

📝 Summary

Fixes #5554 . We could implement a better frontend experience but this surfaces the error at least.

edit: This doesn't work (doesn't detect the right one, + doesn't update)

CleanShot 2025-07-07 at 11 55 58

Current way to find the module is naive. Another option is regex. I've come up with this as a possibility

# patterns = [
#     r"requires ['\"]?([\w_]+)['\"]?",  # "requires 'module'"
#     r"['\"]?([\w_]+)['\"]? module to be installed",  # "'module' module to be installed"
#     r"No module named ['\"]?([\w_]+)['\"]?",  # "No module named 'module'"
# ]

🔍 Description of Changes

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

📜 Reviewers

Copy link

vercel bot commented Jul 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2025 4:07am

@Light2Dark Light2Dark removed the request for review from akshayka July 7, 2025 04:22
@Light2Dark Light2Dark marked this pull request as draft July 7, 2025 04:22
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

Successfully merging this pull request may close these issues.

Suggest user to restart kernel upon ModuleNotFound error but package is installed
1 participant