<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z" -->

---
title: PostgreSQL adapter for Python | daily.dev
description: Psycopg2 2.7.3.1 is a rebuild of 2.7.3 that fixes broken Linux wheel packages, with no code changes. The wheel bug was caused by an auditwheel issue that made...
canonical: https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: PostgreSQL adapter for Python | daily.dev
og:description: Psycopg2 2.7.3.1 is a rebuild of 2.7.3 that fixes broken Linux wheel packages, with no code changes. The wheel bug was caused by an auditwheel issue that made...
og:url: https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z
og:image: https://api.daily.dev/og/posts/q1Xf7Ss5z.png
og:image:alt: PostgreSQL adapter for Python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PostgreSQL adapter for Python

**[Psycopg](https://daily.dev/sources/psycopg)** · 1 min read · 0 upvotes · 0 comments

## Summary

Psycopg2 2.7.3.1 is a rebuild of 2.7.3 that fixes broken Linux wheel packages, with no code changes. The wheel bug was caused by an auditwheel issue that made the wheels incompatible with glibc 2.26. Only Linux users installing via wheels are affected; Windows, OSX, and source installs are unaffected.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.psycopg.org/articles/2017/08/26/psycopg-2731-released>

## Questions this post answers

### Why is psycopg2 2.7.3 failing on Linux with a glibc error?

The Linux wheel packages for psycopg2 2.7.3 were incompatible with glibc 2.26 due to a bug in the auditwheel tool used to build them. This was fixed in psycopg2 2.7.3.1, a rebuild of the same code with corrected wheel packages. Windows, macOS, and source installations were never affected.

_Developers hitting glibc wheel errors can track library patch releases like this on daily.dev._

### What changed in psycopg2 2.7.3.1 compared to 2.7.3?

Nothing in the actual code changed between psycopg2 2.7.3 and 2.7.3.1. The update only rebuilds the wheel packages to fix an incompatibility with glibc 2.26 that was traced back to bug #80 in the auditwheel packaging tool, affecting only Linux users installing via wheels.

_Keep track of packaging fixes like this psycopg2 wheel rebuild through daily.dev._

---

Tags: [#python](https://daily.dev/tags/python), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"PostgreSQL adapter for Python","url":"https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z"},"datePublished":"2026-08-23T12:21:33.125Z","dateModified":"2026-08-23T12:38:19.465Z","description":"Psycopg2 2.7.3.1 is a rebuild of 2.7.3 that fixes broken Linux wheel packages, with no code changes. The wheel bug was caused by an auditwheel issue that made...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b0cbd2ac8948f96ab39fa6a90db7464f?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b0cbd2ac8948f96ab39fa6a90db7464f?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Psycopg","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Psycopg","logo":"https://media.daily.dev/image/upload/s--5N-KNNWk--/f_auto,q_auto/v1787487485/logos/psycopg?_a=BAMAMicg0","url":"https://daily.dev/sources/psycopg"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,postgresql","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Psycopg","item":"https://daily.dev/sources/psycopg"},{"@type":"ListItem","position":3,"name":"PostgreSQL adapter for Python"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/postgresql-adapter-for-python-q1xf7ss5z#faq","mainEntity":[{"@type":"Question","name":"Why is psycopg2 2.7.3 failing on Linux with a glibc error?","acceptedAnswer":{"@type":"Answer","text":"The Linux wheel packages for psycopg2 2.7.3 were incompatible with glibc 2.26 due to a bug in the auditwheel tool used to build them. This was fixed in psycopg2 2.7.3.1, a rebuild of the same code with corrected wheel packages. Windows, macOS, and source installations were never affected. Developers hitting glibc wheel errors can track library patch releases like this on daily.dev."}},{"@type":"Question","name":"What changed in psycopg2 2.7.3.1 compared to 2.7.3?","acceptedAnswer":{"@type":"Answer","text":"Nothing in the actual code changed between psycopg2 2.7.3 and 2.7.3.1. The update only rebuilds the wheel packages to fix an incompatibility with glibc 2.26 that was traced back to bug #80 in the auditwheel packaging tool, affecting only Linux users installing via wheels. Keep track of packaging fixes like this psycopg2 wheel rebuild through daily.dev."}}]}
```

