# Python Error on Install (Debian 12 Bookworm)

**URL:** <https://discourse.libretime.org/t/python-error-on-install-debian-12-bookworm/1773>\
**Category:** Get Help\
**Created:** [September 28, 2024, 10:22pm UTC](https://discourse.libretime.org/t/python-error-on-install-debian-12-bookworm/1773 "2024-09-28T22:22:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thecdnhermit](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@thecdnhermit](https://discourse.libretime.org/u/thecdnhermit)\
**Post date:** [September 28, 2024, 10:22pm UTC](https://discourse.libretime.org/t/python-error-on-install-debian-12-bookworm/1773/1 "2024-09-28T22:22:39Z")

</div>

I’ve been thinking about starting with LT for a while now, finally decided to give it a try. Apparently there’s currently no official Debian 12 (Bookworm) support as of yet?

I did adjust the install script to accept Debian 12 Bookworm as valid, and the script did run for a bit. then I ran into this:  
`
building ‘psycopg_c._psycopg’ extension
creating build/temp.linux-x86_64-cpython-311/psycopg_c
creating build/temp.linux-x86_64-cpython-311/psycopg_c/types
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/postgresql -I/opt/libretime/include -I/usr/include/python3.11 -c psycopg_c/_psycopg.c -o build/temp.linux-x86_64-cpython-311/psycopg_c/_psycopg.o
psycopg_c/_psycopg.c:1273:10: fatal error: pg_config.h: No such file or directory
1273 | #include “pg_config.h”
| ^ ~~~~~~~~~~~~
compilation terminated.
error: command ‘/usr/bin/x86_64-linux-gnu-gcc’ failed with exit code 1
[end of output]`

`
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg-c
Successfully built libretime-api
Failed to build psycopg-c
ERROR: Could not build wheels for psycopg-c, which is required to install pyproject.toml-based projects
`

`[notice] A new release of pip is available: 24.0 → 24.2
[notice] To update, run: python3 -m pip install --upgrade pip
`

This is a clean Bookworm install with no DE or WM.

The clone was done and the script was run directly as root user.

---

<div class="post-metadata">

**Author:** ![cue](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@cue](https://discourse.libretime.org/u/cue)\
**Post date:** [October 5, 2024, 6:55am UTC](https://discourse.libretime.org/t/python-error-on-install-debian-12-bookworm/1773/2 "2024-10-05T06:55:45Z")

</div>

Hi,  
there is no Debian 12 Bookworm support for LibreTime at the moment.  
Look in here: [Debian Bookworm support](https://discourse.libretime.org/t/debian-bookworm-support/1693)
