Install & Compatibility
Where this runs
tested against v8.0.5 · 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.400s · 47.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.2s · import 0.366s · 48MB
48MB installed
● package 48MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
trytond.pool
✓ from trytond.pool import Pool
Pool is used to get model instances.
trytond.model.Model
✓ from trytond.model import Model
Base class for all models.
trytond.config
✓ from trytond.config import config
Configuration object used to read config file.
trytond.transaction
✓ from trytond.transaction import Transaction
Transaction handling for database operations.
Basic setup to start Tryton server, connect to database, and perform a query. Requires a running PostgreSQL and proper config.
from trytond.config import config
config.update_etc(os.environ.get('TRYTOND_CONFIG', '/etc/trytond.conf'))
from trytond.pool import Pool
from trytond.transaction import Transaction
pool = Pool('testdb')
pool.start()
with Transaction().start(pool.database_name, 1) as transaction:
# Work with models
User = pool.get('res.user')
users = User.search([])
print(users)
trytond --version
Errors
Common errors & fixes
trytond.exceptions.UserError: UserError
Trying to access a model or record without proper permissions.
fixEnsure the user used in transaction has the required access rights.
ModuleNotFoundError: No module named 'trytond'
trytond package not installed or not in Python path.
fixInstall trytond via pip and ensure the virtual environment is activated.
KeyError: 'database_uri'
Config file not loaded or missing database URI.
fixSet config.update_etc() with correct config file before any trytond module import.
Upgrade
Version history
8.0.5latest on PyPI · released Jun 18, 2026
Audit
Dependencies
python-sqlrequiredCore dependency for database abstraction layer.
werkzeugrequiredUsed for WSGI server and request handling.
gunicornoptionalRecommended production WSGI server.
psycopg2-binaryoptionalPostgreSQL adapter; often needed for database backend.