Opened 6 years ago

Closed 5 years ago

#55479 closed defect (invalid)

SIP/PyQt5: sipconfig reports a wrong directory as default sip dir

Reported by: Veence (Vincent) Owned by: mmoll@…
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: hapaguy (Brian Kurt Fujikawa)
Port: py-sip, py-pyqt5

Description

This python snippet:

    import sipconfig

    cfg = sipconfig.Configuration()
    print (cfg.default_sip_dir)

when run under Python 3.6 with py36-sip and py36-pyqt5 installed should return /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PyQt5.

Instead, it returns /opt/local/share/py36-sip which doesn’t exist. As a result the python modules of QGIS won’t build.

I’m not sure what’s wrong here, SIP or PYQT5, as a result I quote both ports in this issue.

Change History (4)

comment:1 Changed 6 years ago by Veence (Vincent)

I mean, sorry, the proper path should be /opt/local/Library/Frameworks/Python.framework/Versions/3.6/share/sip Not what I quoted above, but it’s still wrong.

comment:2 Changed 6 years ago by hapaguy (Brian Kurt Fujikawa)

Cc: hapaguy added

comment:3 Changed 5 years ago by Veence (Vincent)

It’s still causing issues with QGis. Also, PyQt5 should be upgraded to 5.12 — It’s not available on Sourceforge, but on the Riverbank website

comment:4 Changed 5 years ago by Veence (Vincent)

Resolution: invalid
Status: newclosed

This is not caused by a bug in py-qt5, but a bug in py-sip. However, you should still upgrade to 5.12 by changing the master_site to Riverbank's website.

Note: See TracTickets for help on using tickets.