Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 292419

Summary: dev-python/PyQt4-4.7.4 fails to build with Python 3.2 (PyCObject)
Product: Gentoo Linux Reporter: Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: denilsonsa, esigra, nd, qt
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 329909    
Bug Blocks: 292402    
Attachments: PyQt4-4.6.1-r1:20091108-173419.log

Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-08 18:47:25 UTC
dev-python/PyQt4-4.6.1-r1 fails to build with Python 3.2. It uses PyCObject-related functions which are deprecated in Python 3.1 and removed in Python 3.2. PyCapsule-related functions should be used.
http://docs.python.org/3.1/c-api/cobject.html
http://docs.python.org/3.1/c-api/capsule.html
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-11-08 18:49:32 UTC
Created attachment 209645 [details]
PyQt4-4.6.1-r1:20091108-173419.log
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2009-11-08 20:59:50 UTC
Try the latest 4.7 snapshot in qting-edge overlay. If that fails too, please report the issue to Phil (upstream dev).
Comment 3 Niels Dettenbach 2010-01-02 14:56:16 UTC
hi,
i tried to compile: 
 - PyQt4-4.6.2
 - PyQt-4.7... (qting-edge today - 20091231)

with:
 - python 3.2
 - python 3.1

While 3.1 seems to work for now, with python 3.2 wont compile as described here.

To get it compiled i had to:
 emerge -C python:3.2
 python-updater
 emerge --oneshot sip PyQt4

To use qting-edge overlay versions i had to add sip and PyQt4 to /etc/portage/package.unmask/ as usual before.

Sorry, i have no contact from Phil, so i post it here.

hth
Cheers,

Niels Dettenbach.
---
http://www.syndicat.com
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2010-01-02 15:32:35 UTC
You can use the public mailing list (pyqt[AT]riverbankcomputing.com) or contact Phil directly (phil[AT]riverbankcomputing.com).
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2010-01-02 15:43:45 UTC
Adding RESTRICT_PYTHON_ABIS="3.*"

But the real issue needs to be taken upstream.
Comment 6 Davide Pesavento (RETIRED) gentoo-dev 2010-01-02 16:19:55 UTC
(In reply to comment #5)
> Adding RESTRICT_PYTHON_ABIS="3.*"
> 

Please don't. >=PyQt4-4.5 works fine with Python 3.1 (it's even officially supported); this bug is about >=python-3.2 which is not even in portage.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-02 17:09:03 UTC
I changed restriction to only 3.2. This bug should be left open until it's properly fixed.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2010-07-26 13:15:01 UTC
This should be fixed in latest sip/PyQt4 releases. Please try with >=dev-python/sip-4.10.5 and >=dev-python/PyQt4-4.7.4
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-26 13:27:22 UTC
dev-python/PyQt4-4.7.4 still unconditionally uses PyCObject-related functions.
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2010-09-01 19:22:26 UTC
Fixed in PyQt4-4.7.5