Skip to content

fix: support relative and absolute imports in __main__.py for PyInstaller exe#16

Merged
test1card merged 1 commit into
mainfrom
claude/fix-import-error-EcSXk
Feb 28, 2026
Merged

fix: support relative and absolute imports in __main__.py for PyInstaller exe#16
test1card merged 1 commit into
mainfrom
claude/fix-import-error-EcSXk

Conversation

@test1card

Copy link
Copy Markdown
Owner

When bundled as a standalone executable, main.py runs without a parent
package context, causing 'attempted relative import with no known parent package'.
Added a try/except fallback to use the absolute import path in that case.

https://claude.ai/code/session_01MjYxpbJ9Cy15YhghH1KNow

…ller exe

When bundled as a standalone executable, __main__.py runs without a parent
package context, causing 'attempted relative import with no known parent package'.
Added a try/except fallback to use the absolute import path in that case.

https://claude.ai/code/session_01MjYxpbJ9Cy15YhghH1KNow
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@test1card
test1card merged commit 5c95e18 into main Feb 28, 2026
6 checks passed
@test1card
test1card deleted the claude/fix-import-error-EcSXk branch February 28, 2026 23:05
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.

2 participants