Install & Compatibility
Where this runs
tested against v0.24.0 · 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.124s · 18MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.120s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
BitBangDevice
✓ from pylibftdi import BitBangDevice
✗ from pylibftdi.device import BitBangDevice
Public API is in pylibftdi top-level; submodules are internal.
Device
✓ from pylibftdi import Device
✗ from pylibftdi.driver import FtdiDriver
FtdiDriver was removed; use Device directly.
Driver
✓ from pylibftdi import Driver
Opens first available FTDI device in async mode, writes bytes, reads response.
import os
import time
from pylibftdi import Device
with Device(mode='t', device_id=os.environ.get('DEVICE_SERIAL', '')) as dev:
dev.write(b'hello')
time.sleep(0.1)
print(dev.read(10))
pylibftdi --version
Errors
Common errors & fixes
pylibftdi.exc.FtdiError: libusb_open() failed
No permission to access USB device or device not connected.
fixEnsure device is plugged in and you have udev rules set. Or run with sudo (temporary).
pylibftdi.exc.FtdiError: FTDI device not found
The specified device_id or serial does not match any connected FTDI device.
fixList devices with pylibftdi.Driver().list_devices() to see available serials.
AttributeError: module 'pylibftdi' has no attribute 'FtdiDriver'
FtdiDriver was removed in pylibftdi 0.22.0.
fixUse pylibftdi.Driver instead.
Upgrade
Version history
0.24.0latest on PyPI · released Apr 4, 2026
Audit
Dependencies
libftdi1requiredRequired system library; on Linux install via apt (libftdi1-dev)