Commit f7a488d
fix(core.utils): lazy-import sqlite3 to avoid libsqlite3 dep at import
sqlite3 was imported at module level, which fails on CI containers
that don't have libsqlite3.so.0 installed (e.g., CUDA 12.9.1 test
images). Move the import into SQLiteProgramCache.__init__ so the
module is loadable even without sqlite3 — only constructing a
SQLiteProgramCache requires it.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ac38a68 commit f7a488d
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
336 | 335 | | |
337 | 336 | | |
338 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| |||
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
349 | | - | |
| 351 | + | |
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
| |||
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
388 | | - | |
| 390 | + | |
389 | 391 | | |
390 | 392 | | |
391 | 393 | | |
| |||
0 commit comments