Repository navigation
Description
macOS test report: Intel Mac (Radeon Pro 5500M, macOS 26.7.1)
Intel Mac report, as requested in docs/macos-testing.md ("If you have another Mac, especially an Intel one, please try it and tell us what happens"). The wheel installs and the Cocoa window host works here. Found three API frictions on the Python side, listed under Findings.
Scope of this report: the PyPI wheel path only. I did not build from source, did not run ctest, and did not work through the section 5 checklist (input, IME, menus, drag-to-scrub, clipboard, multi-monitor). Those are still untested on this machine.
Environment
| macOS | 26.7.1 (build 25G241) |
| Machine | MacBook Pro (MacBookPro16,1), Intel Core i9-9980HK, x86_64 |
| GPU | AMD Radeon Pro 5500M, 8 GB, Metal 3 (no Metal renderer in BUI, as documented) |
| Python | 3.12.13 (uv-managed venv) |
blenderui |
0.4.1, from PyPI |
| Wheel used | blenderui-0.4.1-cp312-cp312-macosx_11_0_x86_64.whl |
| Test date | 2026-11-07 |
Install:
uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python blenderui
Installed in ~7 ms, no build step, no warnings.
What works
| Check | Result |
|---|---|
import blenderui |
✅ __version__ == 0.4.1 |
from blenderui import components |
✅ 65 public names |
from blenderui import imgui |
✅ imports |
import buipy (top level) |
✅ buipy.cpython-312-darwin.so loads |
buipy.KitNode(type) |
✅ 10 of 14 probed type names accepted |
buipy.KitContext(root) |
✅ |
buipy.KitWindow(ctx, title, w, h) |
✅ real window created |
win.show() |
✅ |
win.render_now() |
✅ 3.7 ms first frame, 0.7 ms steady (5 consecutive frames) |
win.pixel(x, y) |
✅ (61, 61, 61) = Blender's dark theme background |
win.size |
✅ (800, 520) for a 400×260 request — the documented 2× Retina pixel/point ratio |
win.is_open() |
✅ returns True while open |
win.gpu |
False (expected; no Metal renderer) |
win.close() |
✅ clean, no crash, no crash report |
render_now() at 0.7 ms per frame on the CPU rasterizer is the part worth knowing: the software path is not the bottleneck on this hardware.
Accepted KitNode type names (probed individually): panel, box, row, column, button, label, frame, canvas, slider, checkbox.
Rejected: window, main, root, menu.
The size returning pixels rather than points is not a bug — docs/macos-testing.md section 3 states it (size 960x640 … size is in pixels: twice the points on Retina). Confirming it holds on Intel/AMD as well: requested 400×260 → 800×520, 300×200 → 600×400, 500×400 → 1000×800, ratio exactly 2.0 on all three.
Findings
1. win.size is an attribute but win.is_open is a method
Two adjacent properties of KitWindow are exposed differently:
win.size # (800, 520) <- attribute, a plain tuple
win.size() # TypeError: 'tuple' object is not callable
win.is_open # <built-in method>
win.is_open() # True <- must be calledEasy to get wrong when writing if win.is_open: and getting a truthy bound method that is always true. Minor, but it cost a round of debugging here win.size() raised inside an error path and masked the actual result.
2. import blenderui.buipy fails; from blenderui import buipy works
import blenderui.buipy
# ModuleNotFoundError: No module named 'blenderui.buipy'
from blenderui import buipy # works
import buipy # works, buipy.cpython-312-darwin.so at site-packages root
blenderui.buipy is buipy # Truebuipy is a lazily exposed attribute pointing at the top-level extension module, not a real submodule, so the two import spellings disagree. Both README and docs use import buipy-style examples, so this is only a trap for people who guess the package-qualified form — but that guess is the natural one when everything else lives under blenderui.*.
3. KitNode type names are not discoverable
KitNode("root") raises ValueError: unknown kit node type 'root'. There is no attribute, docstring or listing to enumerate valid names, and KitNode.__doc__ gives only KitNode(type): a node of the C UI kit (see BUI_kit.h). The wheel also does not ship BUI_kit.h, so that pointer leads nowhere for a pip user:
find .venv -iname "*kit*.h" # (nothing)
I found the valid names by trial and error. A module-level constant (or including BUI_kit.h in the wheel) would save that.
Same root cause, one more: KitWindow.__doc__ documents KitWindow(context, title='BUI', width=640, height=480), which is accurate and was enough to get going — but inspect.signature() reports (self, /, *args, **kwargs) for all three kit classes, so help() and IDE completion are uninformative. That is inherent to a C extension, mentioning it only because the docstring is the only source of truth and a user who calls help() first sees nothing.
Not tested (still open on this machine)
Section 5 of docs/macos-testing.md is entirely untouched:
- input, typing, IME, emoji, arrow keys
- menus, pie menu, fuzzy search
- drag-to-scrub and cursor warping
- clipboard in both directions
- trackpad scrolling and momentum
- resize, full screen, multiple monitors
- tooltips, cursors, color picker, focus
- Cmd+Q clean exit
I did not build from source (cmake, ctest, examples/components_demo.py, Rust, C, ImGui demos). If a source build or a checklist run on Intel would be more useful than the wheel path above, say so and I will do that next — Xcode 21, CMake 4.4.5, Ninja 1.13.2 and Rust 1.99.1 are all present here.
One upstream note for that future run: this machine is on macOS 26.7.1 with Xcode 21 / SDK 26.5, which is newer than the AppleClang 17 vs MacOSX27.0.sdk mismatch described in issue #6, so that particular trap should not apply.
Activity
piaoboo commentedon Nov 7, 2026
Follow-up: source build passes on Intel, and the attribute/method split is systemic
Two things from the same Intel Mac (MacBookPro16,1, macOS 26.7.1, Xcode 21 / SDK 26.5).
1. Source build works —
ctest25/25Following
docs/macos-testing.md§3, onbca7b8d:Configure took 3.2 s, the build produced 8
-Wunused-variable/-Wunused-functionwarnings inbuiimgui_gen.incand no errors, andbuipy.cpython-312-darwin.solinks.bui_ime_win32_testskipping on macOS is expected.The issue #6 toolchain trap does not reproduce here. This machine is on Xcode 21 / SDK 26.5, newer than the AppleClang 17 vs
MacOSX27.0.sdkmismatch described there, and noxcode-select --switchwas needed. Worth noting in the guide that the trap is tied to older Command Line Tools rather than to macOS version alone.Python came from
uv(cpython-3.12.13-macos-x86_64-none) rather than python.org, and itssysconfiginclude/lib paths were picked up without extra flags — that path could be added to the prerequisites table.2. The
size/is_openinconsistency in this report is not a one-offI initially filed the attribute-vs-method mismatch as a single case (
win.sizeis a tuple,win.is_openmust be called). Enumerating both classes shows it is the rule rather than the exception — no way to tell without probing each name:KitContext— 30 callables, 5 plain attributespress,release,motion,wheel,key,key_release,clipboard_get,clipboard_set,focus_node,set_pointer,open_menu,open_pie,popup,undo,redo,undo_depth,render, … are all methods.So
ctx.cursor()raisesTypeError: 'int' object is not callable,ctx.tooltip()raisesTypeError: 'bool' object is not callable, whilectx.focus_node()andctx.set_pointer()must be called.cursorandfocusread as state, butfocus_node/set_pointerread as actions, so the naming does not give the split away either.KitWindow— 11 callables, 5 plain attributesHere
is_openis a method (→True) buton_closeis an attribute, andgpu/frames/sizeare attributes — those four read consistently as state,is_opendoes not.Why it matters beyond cosmetics: the failure mode is silent in one direction.
if win.is_open:is always true (a bound method), so a loop written that way never exits, andif ctx.tooltip:is always true for the same reason. The opposite direction throws immediately. When scripting a UI, the always-true case is the one that wastes an afternoon.Two possible fixes, either is fine: make everything a method, or expose the state as attributes and keep actions as methods with an action-shaped name (
set_*,open_*,toggle_*). Ahelp()-visible note per class would also do. I have not looked at whether this is deliberate for C-extension performance reasons — if it is, a one-line table in the docs would be enough.What still is not tested
§5's checklist (15 items, not 17 — the 17 was a
ctestcount at an earlier commit) is still untouched by hand. But the synthetic-input surface is much wider than I expected, which is good news for automation:A quick scripted probe showed
motion,press,release,wheel,keyandundo_depthall return sanely against a liveKitContext. By my reading that makes roughly 10 of the 15 checklist items scriptable, 2 partly (resize, color picker), and 3 genuinely manual (Retina, multiple monitors, trackpad scrolling).tests/ime_test.cdriving composition events synthetically is the strongest example of why — "no real IME is needed" is a design choice the other 15 items could follow.Happy to script the 10 scriptable ones and post the results if that is useful.
ppmpreetham commentedon Nov 7, 2026
Looking into this!
ppmpreetham commentedon Nov 7, 2026
Please check into that, I'm glad most of it is working.
Just to be sure about performance, could you please perf check on macOS, something similar to
bindings/rust/bench?