Skip to content

codegen: Don't hide import error message from Python - #1995

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:improve_import_reg_failure_msg
Aug 4, 2026
Merged

codegen: Don't hide import error message from Python#1995
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:improve_import_reg_failure_msg

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

from reg import Registry could fail for reasons other than not having Vulkan-Headers' registry/ directory on sys.path. For example, if the pyparsing module dependency isn't installed, then importing reg will also fail as a result.

Show Python's error message to the user so that they can correct any missing dependencies.

`from reg import Registry` could fail for reasons other than not having
Vulkan-Headers' `registry/` directory on `sys.path`. For example, if the
`pyparsing` module dependency isn't installed, then importing `reg`
will also fail as a result.

Show Python's error message to the user so that they can correct any
missing dependencies.

Signed-off-by: Simon McVittie <smcv@collabora.com>
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 65048.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 65065.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3674 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3674 passed.

@charles-lunarg
charles-lunarg merged commit 87a4dcd into KhronosGroup:main Aug 4, 2026
35 of 38 checks passed
@charles-lunarg
charles-lunarg deleted the improve_import_reg_failure_msg branch August 4, 2026 16:31
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.

Code generation hides Python error message

2 participants