This repository has been archived by the owner. It is now read-only.

pyqt 4.9.4 fails to build on 10.8.2 #15430

Closed
scuerda opened this Issue Oct 12, 2012 · 6 comments

Comments

Projects
None yet
4 participants
@scuerda

scuerda commented Oct 12, 2012

I'm fairly new to this, so my apology if I forget something.

I'm trying to recompile QGIS and am getting stuck with pyqt failing to compile.

I went through all basic troubleshooting steps (i.e. updated brew, ran brew doctor and found no errors, tried --env=std, updated Xcode and made sure CLT was installed, checked permissions)

Here is the link to the requested gist https://gist.github.com/3880905

As an FYI, I downloaded the latest QT bottle for mountain lion, but the problem persisted. Might I need to recompile QT on my system or is something else going on?

Thanks in advance.

brew config returns:

scmbp:~ xxxx$ brew --config
HOMEBREW_VERSION: 0.9.3
HEAD: 40cc684147fb6686d2639892bbca6c21356cda94
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: dual-core 64-bit penryn
OS X: 10.8.2-x86_64
Xcode: 4.5.1
CLT: 4.5.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.1 build 421
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

brew install -vd pyqt produces following output:

scmbp:~ XXXX$ brew install -vd pyqt
/usr/local/bin/brew: loading /usr/local/Library/Formula/pyqt.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/sip.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/qt.rb
/usr/local/Library/Formula/pyqt.rb: loading /usr/local/Library/Formula/sip.rb
/usr/local/Library/Formula/pyqt.rb: loading /usr/local/Library/Formula/qt.rb
/usr/local/Library/Formula/pyqt.rb: loading /usr/local/Library/Formula/python.rb
==> Downloading http://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.9.4/PyQt-mac-gpl-4.9.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/pyqt-4.9.4.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/pyqt-4.9.4.tar.gz
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.4/share/sip
python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.4/share/sip
Determining the layout of your Qt installation...
Error: qtdirs.app/Contents/MacOS/qtdirs failed to create qtdirs.out. Make sure
your Qt v4 installation is correct.
Error: #<ErrorDuringExecution: Failure while executing: python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9.4/bin --destdir=/usr/local/Cellar/pyqt/4.9.4/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt/4.9.4/share/sip>
/usr/local/Library/Homebrew/utils.rb:105:in `safe_system'
/usr/local/Library/Homebrew/formula.rb:526:in `system'
/usr/local/Library/Formula/pyqt.rb:17:in `install'
/usr/local/Library/Homebrew/build.rb:133:in `install'
/usr/local/Library/Homebrew/formula.rb:224:in `brew'
/usr/local/Library/Homebrew/formula.rb:594:in `stage'
/usr/local/Library/Homebrew/extend/fileutils.rb:21:in `mktemp'
/usr/local/Library/Homebrew/formula.rb:590:in `stage'
/usr/local/Library/Homebrew/formula.rb:219:in `brew'
/usr/local/Library/Homebrew/build.rb:114:in `install'
/usr/local/Library/Homebrew/build.rb:42:in `main'
/usr/local/Library/Homebrew/build.rb:12
/usr/local/Library/Formula/pyqt.rb:35
==> Rescuing build...
When you exit this shell Homebrew will attempt to finalise the installation.
If nothing is installed or the shell exits with a non-zero error code,
Homebrew will abort. The installation prefix is:
/usr/local/Cellar/pyqt/4.9.4
@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits Oct 12, 2012

Contributor

Do you have any idea what qtdirs.app refers to? Did you ever install Qt some other way besides Homebrew?

Contributor

2bits commented Oct 12, 2012

Do you have any idea what qtdirs.app refers to? Did you ever install Qt some other way besides Homebrew?

@scuerda

This comment has been minimized.

Show comment Hide comment
@scuerda

scuerda Oct 12, 2012

When I first tried to install pyqt I received the same error. So QT had been installed previously but I didn't do so specifically. My guess is that it was installed when I first installed QGIS and the necessary frameworks, which I first did using the KyngChaos builds. I then uninstalled QT and reinstalled it from the bottle with no change in the error message.

scuerda commented Oct 12, 2012

When I first tried to install pyqt I received the same error. So QT had been installed previously but I didn't do so specifically. My guess is that it was installed when I first installed QGIS and the necessary frameworks, which I first did using the KyngChaos builds. I then uninstalled QT and reinstalled it from the bottle with no change in the error message.

@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits Oct 16, 2012

Contributor

Somewhere there is left over stuff from your previous Qt install. You'll have to find it and remove it.

find / -type d -name qtdirs.app 2>/dev/null
Contributor

2bits commented Oct 16, 2012

Somewhere there is left over stuff from your previous Qt install. You'll have to find it and remove it.

find / -type d -name qtdirs.app 2>/dev/null
@adamv

This comment has been minimized.

Show comment Hide comment
@adamv

adamv Oct 24, 2012

Contributor

Any luck here?

Contributor

adamv commented Oct 24, 2012

Any luck here?

@adamv

This comment has been minimized.

Show comment Hide comment
@adamv

adamv Nov 11, 2012

Contributor

Ping

Contributor

adamv commented Nov 11, 2012

Ping

@jacknagel

This comment has been minimized.

Show comment Hide comment
@jacknagel

jacknagel Nov 14, 2012

Contributor

Closing due to no response.

Contributor

jacknagel commented Nov 14, 2012

Closing due to no response.

@jacknagel jacknagel closed this Nov 14, 2012

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.