Skip to content
This repository has been archived by the owner on Jul 4, 2023. 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
Closed

pyqt 4.9.4 fails to build on 10.8.2 #15430

scuerda opened this issue Oct 12, 2012 · 6 comments

Comments

@scuerda
Copy link

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
Copy link
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
Copy link
Author

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
Copy link
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
Copy link
Contributor

adamv commented Oct 24, 2012

Any luck here?

@adamv
Copy link
Contributor

adamv commented Nov 11, 2012

Ping

@jacknagel
Copy link
Contributor

Closing due to no response.

@Homebrew Homebrew 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.
Projects
None yet
Development

No branches or pull requests

4 participants