Title: Import causes unhandled exception · Issue #2828 · lcompilers/lpython · GitHub
Open Graph Title: Import causes unhandled exception · Issue #2828 · lcompilers/lpython
X Title: Import causes unhandled exception · Issue #2828 · lcompilers/lpython
Description: import string print(string.ascii_uppercase) The above code runs without any issue but import string simply importing causes an unhandled exception $ lpython issue/main.py ASR verify pass error: Module __main__ dependencies must contain s...
Open Graph Description: import string print(string.ascii_uppercase) The above code runs without any issue but import string simply importing causes an unhandled exception $ lpython issue/main.py ASR verify pass error: Mod...
X Description: import string print(string.ascii_uppercase) The above code runs without any issue but import string simply importing causes an unhandled exception $ lpython issue/main.py ASR verify pass error: Mod...
Opengraph URL: https://github.com/lcompilers/lpython/issues/2828
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Import causes unhandled exception","articleBody":"```py\nimport string\nprint(string.ascii_uppercase)\n```\n\nThe above code runs without any issue but\n\n```py\nimport string\n```\n\nsimply importing causes an unhandled exception\n\n```\n$ lpython issue/main.py\nASR verify pass error: Module __main__ dependencies must contain string because a function present in it is getting called in __main__.\nInternal Compiler Error: Unhandled exception\n```","author":{"url":"https://github.com/swamishiju","@type":"Person","name":"swamishiju"},"datePublished":"2025-03-13T12:32:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2828/lpython/issues/2828"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8bde612b-854f-219d-bbb9-c478d3480e83 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A78:2D10BB:1BA80BE:266602B:69778932 |
| html-safe-nonce | 7f2e9890dd45a37e3ead1d19b3a31cab026b24d727c784ab40e23d258d4b6a29 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTc4OjJEMTBCQjoxQkE4MEJFOjI2NjYwMkI6Njk3Nzg5MzIiLCJ2aXNpdG9yX2lkIjoiMTYwMTUyMzU3MzM1ODgyMzczMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 47e9b99f887e0c679e663e924aad88d4019c90b9565a644187e2b1c587c9a40b |
| hovercard-subject-tag | issue:2916997010 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lcompilers/lpython/2828/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a6b9ce38551ffd8d86211f96e400a2605633edc507f24471ad28be9df49f3b7e/lcompilers/lpython/issues/2828 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a6b9ce38551ffd8d86211f96e400a2605633edc507f24471ad28be9df49f3b7e/lcompilers/lpython/issues/2828 |
| og:image:alt | import string print(string.ascii_uppercase) The above code runs without any issue but import string simply importing causes an unhandled exception $ lpython issue/main.py ASR verify pass error: Mod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | swamishiju |
| hostname | github.com |
| expected-hostname | github.com |
| None | fd37f8e74ecc49b700617ea694fa6d7b395b6c9a4b79c59b3014da220462ac69 |
| turbo-cache-control | no-preview |
| go-import | github.com/lcompilers/lpython git https://github.com/lcompilers/lpython.git |
| octolytics-dimension-user_id | 96538276 |
| octolytics-dimension-user_login | lcompilers |
| octolytics-dimension-repository_id | 442864346 |
| octolytics-dimension-repository_nwo | lcompilers/lpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 442864346 |
| octolytics-dimension-repository_network_root_nwo | lcompilers/lpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 523f6485bbeeb9958ec03260b225e9183734585d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width