Install & Compatibility
Where this runs
tested against v1.10.2 · 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.222s · 18.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.184s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SimpleUDPClient
✓ from pythonosc.udp_client import SimpleUDPClient
✗ from pythonosc import SimpleUDPClient
SimpleUDPClient is in the udp_client submodule, not at package root.
SimpleUDPServer
✓ from pythonosc.udp_server import SimpleUDPServer
✗ from pythonosc import SimpleUDPServer
Similar submodule requirement.
OSCPacket
✓ from pythonosc.osc_packet import OscPacket
✗ from pythonosc import OSCPacket
Class is OscPacket with capital O, and under osc_packet module.
OscMessage
✓ from pythonosc.osc_message import OscMessage
✗ from pythonosc import OscMessage
Located in osc_message submodule.
Minimal example to send an OSC message over UDP.
from pythonosc.udp_client import SimpleUDPClient
client = SimpleUDPClient("127.0.0.1", 9000)
client.send_message("/hello", [1, 2.0, "world"])
print("Sent OSC message to 127.0.0.1:9000")
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'pythonosc'
Library not installed
fixpip install python-osc
ImportError: cannot import name 'SimpleUDPClient' from 'pythonosc'
Incorrect import path; SimpleUDPClient is in submodule
fixfrom pythonosc.udp_client import SimpleUDPClient
TypeError: handler() takes 2 positional arguments but 3 were given
Server callback signature changed in v1.8.0; old handler expects (addr, *args) but new one passes (addr, message)
fixUpdate handler to accept (addr, osc_message) and access arguments via osc_message.params
socket.gaierror: [Errno -2] Name or service not known
Client was given a hostname that cannot be resolved
fixUse an IP address string like '127.0.0.1' instead of a hostname
Upgrade
Version history
1.10.2latest on PyPI · released Apr 2, 2026
Audit
Dependencies
No dependency data recorded yet.