Opened 12 years ago

Closed 12 years ago

#36801 closed defect (fixed)

Error in Installing: py24-pyqt4

Reported by: berg-michael (Michael Berg) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: py24-pyqt4

Description

Hi! I am trying to compile FreeCAD from source on a PowerPC Mac running OS 10.5.8. For this, you must install, py-pyqt4; one of its dependencies being py24-pyqt4.

--->  Fetching archive for py24-pyqt4
--->  Attempting to fetch py24-pyqt4-4.9.4_0.darwin_9.ppc.tbz2 from http://packages.macports.org/py24-pyqt4
--->  Attempting to fetch py24-pyqt4-4.9.4_0.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py24-pyqt4
--->  Attempting to fetch py24-pyqt4-4.9.4_0.darwin_9.ppc.tbz2 from http://lil.fr.packages.macports.org/py24-pyqt4
--->  Fetching distfiles for py24-pyqt4
--->  Attempting to fetch PyQt-mac-gpl-4.9.4.tar.gz from http://pyqwt.sourceforge.net/support/
--->  Attempting to fetch PyQt-mac-gpl-4.9.4.tar.gz from http://www.riverbankcomputing.com/static/Downloads/PyQt4/
--->  Attempting to fetch PyQt-mac-gpl-4.9.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/python
--->  Verifying checksum(s) for py24-pyqt4
--->  Extracting py24-pyqt4
--->  Applying patches to py24-pyqt4
--->  Configuring py24-pyqt4
--->  Building py24-pyqt4
Error: org.macports.build for port py24-pyqt4 returned: command execution failed
Error: Failed to install py24-pyqt4
Please see the log file for port py24-pyqt4 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py24-pyqt4/main.log
Error: The following dependencies were not installed: py24-pyqt4
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py-pyqt4 failed
michael-bergs-power-mac-g5:~ michaelbergg5$ sudo port install py24-py
Password:
Error: Port py24-py not found
michael-bergs-power-mac-g5:~ michaelbergg5$ sudo port install py24-pyqt4
--->  Computing dependencies for py24-pyqt4
--->  Building py24-pyqt4
Error: org.macports.build for port py24-pyqt4 returned: command execution failed
Please see the log file for port py24-pyqt4 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py24-pyqt4/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py24-pyqt4 failed

as you can see, when it first failed, I retried installing, again unsuccessfully. I am inexperienced using MacPorts, and am not able to discern anything from the error.

I couldn't find any related bugs, so hopefully this will have a solution

Attachments (5)

py24-pyqt4.log (48.5 KB) - added by berg-michael (Michael Berg) 12 years ago.
log file
py27-pyqt4.log (293.1 KB) - added by berg-michael (Michael Berg) 12 years ago.
Log while trying to install py27-pyqt4
sipQtGuiQList0100QGlyphRun.cpp (6.5 KB) - added by berg-michael (Michael Berg) 12 years ago.
file from /work/PyQt-mac- gpl-4.9.4/QtGui/sipQtGuiQList0100QGlyphRun.cpp
with updated py27-sip.log (295.4 KB) - added by berg-michael (Michael Berg) 12 years ago.
Error generated when installing py27-pyqt4 with the newer version of py27-sip
sipQtGuiQList0100QGlyphRun newer (6.5 KB) - added by berg-michael (Michael Berg) 12 years ago.
With updated version of py27-sip

Download all attachments as: .zip

Change History (29)

Changed 12 years ago by berg-michael (Michael Berg)

Attachment: py24-pyqt4.log added

log file

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to michaelld@…

The log you attached is not from a clean build attempt. Please "sudo port clean py24-pyqt4", then try again, then attach the new log.

Also, python 2.4 is very old. Consider using a newer version of python, like 2.7, by using the py27-pyqt4 port instead.

comment:2 Changed 12 years ago by berg-michael (Michael Berg)

Cc: berg.michael1@… added

Cc Me!

comment:3 Changed 12 years ago by berg-michael (Michael Berg)

I'll do that when I get home. However, py24-pyqt4 is installed as a dependency for the package py-pyqt4. Will everything go as planned if I use py27-pyqt4 instead?

comment:4 Changed 12 years ago by mf2k (Frank Schima)

Cc: berg.michael1@… removed

py24-pyqt4 is not really a dependency of py-pyqt4. It is a sub-port. You cannot actually install py-pyqt4. Instead it is a wrapper for any supported version of python with pyqt4. By default it chooses py24 (python 2.4.x) right now, but that's really for legacy reasons. You should choose which version of python you want. py27-pyqt4 - the python 2.7.x version - is probably the best choice currently. py24-pyqt4 is scheduled to be removed.

Note that you do not need to Cc yourself as the ticket reporter.

Changed 12 years ago by berg-michael (Michael Berg)

Attachment: py27-pyqt4.log added

Log while trying to install py27-pyqt4

comment:5 Changed 12 years ago by berg-michael (Michael Berg)

So I have (finally) tried to install py27-pyqt4, but it pulls up the same error as py24-pyqt4 did. I have attached another log file (py27-pyqt4.log). Everything proceeds normally, including getting the version of py27-pyqt4 for PowerPC, until it begins building py27-pyqt4.

--->  Computing dependencies for py27-pyqt4
--->  Fetching archive for py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.4_0.darwin_9.ppc.tbz2 from http://packages.macports.org/py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.4_0.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.4_0.darwin_9.ppc.tbz2 from http://lil.fr.packages.macports.org/py27-pyqt4
--->  Fetching distfiles for py27-pyqt4
--->  Verifying checksum(s) for py27-pyqt4
--->  Extracting py27-pyqt4
--->  Applying patches to py27-pyqt4
--->  Configuring py27-pyqt4
--->  Building py27-pyqt4
Error: org.macports.build for port py27-pyqt4 returned: command execution failed
Please see the log file for port py27-pyqt4 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pyqt4 failed

comment:6 Changed 12 years ago by michaelld (Michael Dickens)

Can you also attach the file "port dir py27-pyqt4/work/PyQt-mac-gpl-4.9.4/QtGui/sipQtGuiQList0100QGlyphRun.cpp"? I'm guessing PyQt4 and/or SIP aren't playing nice with the older OS and/or the PPC.

Changed 12 years ago by berg-michael (Michael Berg)

file from /work/PyQt-mac- gpl-4.9.4/QtGui/sipQtGuiQList0100QGlyphRun.cpp

comment:7 in reply to:  6 Changed 12 years ago by berg-michael (Michael Berg)

Replying to michaelld@…:

Can you also attach the file "port dir py27-pyqt4/work/PyQt-mac-gpl-4.9.4/QtGui/sipQtGuiQList0100QGlyphRun.cpp"? I'm guessing PyQt4 and/or SIP aren't playing nice with the older OS and/or the PPC.

File has been attached.

comment:8 Changed 12 years ago by michaelld (Michael Dickens)

Thanks. That file contains "Generated by SIP 4.13.3". Did py27-sip 4.14.1 not get installed or activated somehow? What does "port installed | grep sip" return?

comment:9 Changed 12 years ago by berg-michael (Michael Berg)

port installed brings

michael-bergs-power-mac-g5-2:~ michaelbergg5$ port installed
The following ports are currently installed:
  autoconf @2.69_0 (active)
  automake @1.12.4_0 (active)
  boost @1.51.0_1+no_single+no_static (active)
  bzip2 @1.0.6_0 (active)
  cmake @2.8.9_1 (active)
  db46 @4.6.21_7 (active)
  dbus @1.4.20_1+startupitem (active)
  eigen3 @3.1.1_2+cmake (active)
  expat @2.1.0_0 (active)
  f2c @20110816_0 (active)
  freetype @2.4.10_0 (active)
  ftgl @2.1.3-rc5_0 (active)
  gdbm @1.10_2 (active)
  gettext @0.18.1.1_2 (active)
  gperf @3.0.4_2 (active)
  gsed @4.2.1_2 (active)
  help2man @1.40.10_0 (active)
  icu @49.1.2_0 (active)
  jpeg @8d_0 (active)
  lcms @1.19_2 (active)
  libedit @20120601-3.0_0 (active)
  libf2c @20110801_0 (active)
  libiconv @1.14_0 (active)
  libidn @1.25_0 (active)
  libmng @1.0.10_2 (active)
  libpng @1.5.13_0 (active)
  libtool @2.4.2_3 (active)
  m4 @1.4.16_0 (active)
  ncurses @5.9_1 (active)
  openssl @1.0.1c_0 (active)
  p5.12-locale-gettext @1.50.0_7 (active)
  perl5 @5.12.4_0+perl5_12 (active)
  perl5.12 @5.12.4_1 (active)
  pkgconfig @0.27.1_1 (active)
  py-sip @4.13.3_0 (active)
  py24-sip @4.13.3_0 (active)
  py27-sip @4.13.3_0 (active)
  python24 @2.4.6_10 (active)
  python27 @2.7.3_1 (active)
  python_select @0.3_1 (active)
  qt4-mac @4.8.3_1+quartz (active)
  sqlite3 @3.7.14.1_0 (active)
  tiff @3.9.5_0 (active)
  xercesc @2.8.0_2 (active)
  xz @5.0.4_0 (active)
  zlib @1.2.7_0 (active)

What do you want me to do with "grep sip".

Thanks!

comment:10 Changed 12 years ago by michaelld (Michael Dickens)

Your install of py27-sip is not compatible with the version of py27-pyqt4 that you're trying to install (too old). I would recommend the following:

sudo port clean py27-pyqt4
sudo port selfupdate
sudo port upgrade py27-sip
sudo port install py27-pyqt4

and, if that works then you can also do:

sudo port upgrade outdated

to upgrade all older ports. Post back how the above goes.

comment:11 Changed 12 years ago by berg-michael (Michael Berg)

Everything was going well, but I had the same issue as usual.

michael-bergs-power-mac-g5-2:~ michaelbergg5$ sudo port clean py27-pyqt4
Warning: port definitions are more than two weeks old, consider using selfupdate
--->  Cleaning py27-pyqt4
michael-bergs-power-mac-g5-2:~ michaelbergg5$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
michael-bergs-power-mac-g5-2:~ michaelbergg5$ sudo port upgrade py27-sip
--->  Computing dependencies for py27-sip
--->  Fetching archive for py27-sip
--->  Attempting to fetch py27-sip-4.14.1_0.darwin_9.ppc.tbz2 from http://packages.macports.org/py27-sip
--->  Attempting to fetch py27-sip-4.14.1_0.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-sip
--->  Attempting to fetch py27-sip-4.14.1_0.darwin_9.ppc.tbz2 from http://lil.fr.packages.macports.org/py27-sip
--->  Fetching distfiles for py27-sip
--->  Attempting to fetch sip-4.14.1.tar.gz from http://gentoo.osuosl.org/distfiles/
--->  Verifying checksum(s) for py27-sip
--->  Extracting py27-sip
--->  Applying patches to py27-sip
--->  Configuring py27-sip
--->  Building py27-sip
--->  Staging py27-sip into destroot
--->  Installing py27-sip @4.14.1_0
--->  Cleaning py27-sip
--->  Computing dependencies for py27-sip
--->  Deactivating py27-sip @4.13.3_0
--->  Cleaning py27-sip
--->  Activating py27-sip @4.14.1_0

py27-sip is available under a PSF license with one addition: 

    4. Licensee may not use SIP to generate Python bindings for any C or
       C++ library for which bindings are already provided by Riverbank. 

GPL-2 or GPL-3 licenses are also available. For details see
/opt/local/share/doc/py27-sip/LICENSE [-GPL2 -GPL3]


--->  Cleaning py27-sip
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
michael-bergs-power-mac-g5-2:~ michaelbergg5$ sudo port install py27-pyqt4
--->  Computing dependencies for py27-pyqt4
--->  Fetching archive for py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.5_0.darwin_9.ppc.tbz2 from http://packages.macports.org/py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.5_0.darwin_9.ppc.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-pyqt4
--->  Attempting to fetch py27-pyqt4-4.9.5_0.darwin_9.ppc.tbz2 from http://lil.fr.packages.macports.org/py27-pyqt4
--->  Fetching distfiles for py27-pyqt4
--->  Attempting to fetch PyQt-mac-gpl-4.9.5.tar.gz from http://superb-dca2.dl.sourceforge.net/pyqt
--->  Verifying checksum(s) for py27-pyqt4
--->  Extracting py27-pyqt4
--->  Applying patches to py27-pyqt4
--->  Configuring py27-pyqt4
--->  Building py27-pyqt4
Error: org.macports.build for port py27-pyqt4 returned: command execution failed
Please see the log file for port py27-pyqt4 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-pyqt4/py27-pyqt4/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pyqt4 failed
michael-bergs-power-mac-g5-2:~ michaelbergg5$ 

Changed 12 years ago by berg-michael (Michael Berg)

Attachment: with updated py27-sip.log added

Error generated when installing py27-pyqt4 with the newer version of py27-sip

comment:12 Changed 12 years ago by michaelld (Michael Dickens)

Yup; same issue. Can you also attach the output of "port installed | grep sip" and also the file "sipQtGuiQList0100QGlyphRun.cpp" as found before?

comment:13 Changed 12 years ago by berg-michael (Michael Berg)

I think I am doing something wrong here...

michael-bergs-power-mac-g5-2:~ michaelbergg5$ port installed | grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
michael-bergs-power-mac-g5-2:~ michaelbergg5$ sip

Changed 12 years ago by berg-michael (Michael Berg)

With updated version of py27-sip

comment:14 Changed 12 years ago by michaelld (Michael Dickens)

Do it as a single command:

port installed | grep sip

That way, you get just those installed ports (active or not) with the 'word' "sip" in them, instead of all installed ports.

comment:15 Changed 12 years ago by michaelld (Michael Dickens)

The newer file was created by "SIP 4.14.1", which is good. Now, I wonder what the issue really is ...

comment:16 Changed 12 years ago by berg-michael (Michael Berg)

I don't know how that "sip" didn't make it into the terminal... Well, here it is

michael-bergs-power-mac-g5-2:~ michaelbergg5$ port installed | grep sip
  py-sip @4.13.3_0 (active)
  py24-sip @4.13.3_0 (active)
  py27-sip @4.13.3_0
  py27-sip @4.14.1_0 (active)

comment:17 Changed 12 years ago by michaelld (Michael Dickens)

This turns out to have been an issue with PyQt4, that they hopefully fixed in last night's snapshot (accord to http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg26483.html ). I'll look into that commit and see if I can come up with a patch.

I think this ticket is probably a duplicate of ticket #36479, but I'll keep them both open for now.

comment:18 in reply to:  17 Changed 12 years ago by berg-michael (Michael Berg)

Replying to michaelld@…:

This turns out to have been an issue with PyQt4, that they hopefully fixed in last night's snapshot (accord to http://www.mail-archive.com/pyqt@riverbankcomputing.com/msg26483.html ). I'll look into that commit and see if I can come up with a patch.

I think this ticket is probably a duplicate of ticket #36479, but I'll keep them both open for now.

Thanks for all of the help you have and are putting into this!

comment:19 Changed 12 years ago by berg-michael (Michael Berg)

Should I retry building or wait for your patch?

comment:20 Changed 12 years ago by michaelld (Michael Dickens)

Can't hurt to try rebuilding. I haven't had time to work on the patch just yet. Maybe later this coming week. Maybe they'll release an updated PyQt4 soon, since this a real issue for some Mac folks.

comment:21 Changed 12 years ago by michaelld (Michael Dickens)

PyQt4 4.9.6 just came out, so I'm updating to that & hopefully it'll fix this issue. I'll post back here once I've done that check-in, hopefully tonight, which unfortunately will require upgrading qt4-mac as well.

comment:22 Changed 12 years ago by michaelld (Michael Dickens)

This ticket's issue should be addressed in r100394, which upgrades py-pyqt4 to 4.9.6 (and thus includes their patches). I'm leaving this ticket open for now, waiting your feedback.

comment:23 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Any feedback?

comment:24 Changed 12 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

Nope. Closing.

Note: See TracTickets for help on using tickets.