Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923003 - dev-python/psycopg-3.1.17: broken on musl (ImportError: no pq wrapper available.)
Summary: dev-python/psycopg-3.1.17: broken on musl (ImportError: no pq wrapper availab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
: 900709 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-27 06:56 UTC by Agostino Sarubbo
Modified: 2024-01-28 08:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,325.15 KB, text/plain)
2024-01-27 06:56 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-27 06:56:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/django-tables2-2.7.0 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-27 06:56:17 UTC
Created attachment 883223 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-27 06:56:18 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
FAILED (errors=1)
ImportError: Failed to import test module: tests.columns.test_jsoncolumn
ImportError: no pq wrapper available.
ModuleNotFoundError: No module named 'psycopg2'
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-27 12:13:12 UTC
I vaguely recall another bug for this.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-01-27 12:19:47 UTC
Of course, it's the:

  libcname = ctypes.util.find_library("c")

problem.
Comment 5 Larry the Git Cow gentoo-dev 2024-01-27 20:33:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=102c2f5b2beaf5374cf9b510d9adb7abaa21a5b4

commit 102c2f5b2beaf5374cf9b510d9adb7abaa21a5b4
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-01-27 15:30:51 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-27 20:33:19 +0000

    dev-python/psycopg: Add a patch for musl
    
    Closes: https://bugs.gentoo.org/923003
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/psycopg/files/psycopg-3.1.17-musl.patch | 34 ++++++++++++++++++++++
 dev-python/psycopg/psycopg-3.1.17.ebuild           |  5 ++++
 2 files changed, 39 insertions(+)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-28 08:53:30 UTC
*** Bug 900709 has been marked as a duplicate of this bug. ***