Skip to content

Conversation

Copy link

Copilot AI commented Jan 31, 2026

PyInstaller builds fail with ImportError: attempted relative import with no known parent package when executing the bundled application. The error originates from relative imports in node_editor/node_editor.py.

Changes

node_editor/node_editor.py: Replace relative imports with absolute imports

# Before
from .style import STYLE
from .util import _dpg_lock

# After
from node_editor.style import STYLE
from node_editor.util import _dpg_lock

This aligns with the import pattern already used throughout the codebase (main.py, all test files).

Original prompt

Traceback (most recent call last):
File "main.py", line 25, in
File "pyimod02_importers.py", line 457, in exec_module
File "node_editor\node_editor.py", line 16, in
from .style import STYLE
ImportError: attempted relative import with no known parent package
[PYI-7300:ERROR] Failed to execute script 'main' due to unhandled exception!


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…te imports

Co-authored-by: hackolite <826027+hackolite@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix import error in node editor Fix PyInstaller build failure from relative imports in node_editor Jan 31, 2026
Copilot AI requested a review from hackolite January 31, 2026 01:18
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