Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.728s · 28.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.2s · import 0.632s · 29MB
27MB installed
● package 27MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
dp
✓ import dpgui as dp
✗ from dpgui import *
Using wildcard imports is discouraged; use the module alias 'dp' for clarity.
start
✓ import dpgui as dp; dp.start()
✗ from dpgui.start import start
start is a function in the dpgui module, not a submodule.
Creates a simple web GUI with a text input field and displays the submitted value.
import dpgui as dp
def callback(values):
print('User input:', values)
dp.start(callback=callback, title='My App', fields=[{'name': 'name', 'type': 'text', 'label': 'Your Name'}])
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'dearpygui'
dpgui depends on dearpygui but does not install it automatically.
fixRun `pip install dearpygui`.
TypeError: start() got an unexpected keyword argument 'port'
The 'port' argument was removed in v1.0.0; set via environment variable instead.
fixUse `os.environ['DPGUI_PORT'] = '8080'` before calling `dp.start()`.
ValueError: Unknown field key: 'id'
The field definition key 'id' was renamed to 'name' in v1.0.0.
fixChange 'id' to 'name' in the field dictionary.
Upgrade
Version history
1.0.1latest on PyPI · released Nov 17, 2024
Audit
Dependencies
dearpyguirequiredCore dependency for the GUI backend.