Closed riggsd closed 10 years ago
Hi. This is the appropriate place to report issues.
Since your Mac is probably compiling using multiple cores, the text directly before the make error may be unrelated (since it can be from a different thread). Please follow the Troubleshooting Homebrew guide.
Specifically, do the following:
brew gist-logs --config --doctor qgis-22
Post a link to the generated gist here. Be sure to post the https:
link from the browser bar and not the git:
link.
Note: the brew tap --repair
warnings are described in the tap's README.md
Thanks for your helpful tips and patience!
Here's the gist logs: https://gist.github.com/anonymous/10306820
As I mentioned, I unlinked a mostly-working qgis-20 just before this install attempt. The survex
and wxmac
Doctor warnings are from an attempt at porting some unrelated cave survey software.
The actual error is with PyQt4:
Traceback (most recent call last):
File "/usr/local/Cellar/pyqt/4.10.4/lib/python2.7/site-packages/PyQt4/uic/pyuic.py", line 31, in <module>
from PyQt4 import QtCore
ImportError: No module named PyQt4
make[2]: *** [python/plugins/fTools/tools/ui_frmEliminate.py] Error 1
make[1]: *** [python/plugins/fTools/tools/CMakeFiles/fTools-tools.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
This is odd since PyQt4 was found OK during CMake configure. Do you have a different PyQt4 installed in the system Python site-packages
(shouldn't matter, though)?
Try setting PYTHONPATH, prior to brew install qgis-22 ...
:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
This assumes Homebrew pyqt
is installed and /usr/local/lib/python2.7/site-packages/
contains PyQt modules. Did you install pyqt
for Python 3.x instead of Python 2.x? This would explain why the formula thinks it is installed, but then can't find it (though configure should fail then). QGIS only supports Python 2.7.
I have only the 2.7 version of PyQT installed, from the Homebrew pyqt
package which I see has the following note in its info message:
[driggs@davids-mbp ~]$ brew info pyqt
pyqt: stable 4.10.4
http://www.riverbankcomputing.co.uk/software/pyqt
/usr/local/Cellar/pyqt/4.10.3 (560 files, 17M)
Built from source
/usr/local/Cellar/pyqt/4.10.4 (63 files, 14M) *
Built from source
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/pyqt.rb
==> Dependencies
Required: qt ✔, sip ✔
==> Options
--with-python3
Build with python3 support
--without-python
Build without python support
==> Caveats
Phonon support is broken.
If you need Python to find the installed site-packages:
mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo '/usr/local/lib/python2.7/site-packages' > ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
I did not make the above change to 'homebrew.pth' (which doesn't exist).
However, I do note that I have no PYTHONPATH set at all (for fear of messing with virtualenvs). So I set export PYTHONPATH=/usr/local/lib/python2.7/site-packages
then attempted a build again... and now I have a working qgis-22!
On startup, I see the following warning on the console:
Warning: loading of qt translation failed [/usr/local/Cellar/qt/4.8.5/translations/qt_en_US]
But so far 2.2 appears to be working properly! Thanks!
Thanks for the good reports, and glad you got it working.
I was not aware of the 'homebrew.pth' setup. That seems to be a caveat when Homebrew notices you built pyqt
against the system Python, instead of Homebrew's. The 'homebrew.pth' setup allows for a fixed solution compared to setting PYTHONPATH.
Did you install pyqt
before installing Homebrew's python
? This would explain some stuff. If so, I recommend:
brew rm pyqt && brew install pyqt
# brew reinstall pyqt <-- should work, but not entirely sure it won't use the system Python again
The Warning: loading of qt translation failed...
is just the fact that QGIS.app doesn't have a qt_en_US
translation, as that is already the default. It's a Mac-only bug that needs fixed, and is harmless.
@riggsd Btw, I do quite a bit of cave exploration in Jewel Cave, in SD, and Lechuguilla, in NM.
http://myotisoft.com/ looks very interesting.
I had a mostly-working qgis-20 install from dakcarto's repository, and attempted the upgrade to qgis-22 today. I untapped the older repo and ran
brew tap osgeo/osgeo4mac; brew tap --repair
, which gave me the following warnings:I then attempted to install with
brew install qgis-22 --with-postgis
, which failed at a step which I don't understand, "Built target translations".Mac OS X 10.9.2, Homebrew 0.9.5, clang Apple LLVM version 5.1 x86_64-apple-darwin13.1.0, make GNU Make 3.81.
Any suggestions on how to successfully build?
Apologies if a ticket isn't the right place to post this, but it didn't seem like the QGIS Users list was appropriate, and I don't see a list specific to OSGeo Homebrew.