Comments (6)
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
from homebrew-osgeo4mac.
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.
from homebrew-osgeo4mac.
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.
from homebrew-osgeo4mac.
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!
from homebrew-osgeo4mac.
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.
from homebrew-osgeo4mac.
@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.
from homebrew-osgeo4mac.
Related Issues (20)
- GDAL 3.1.2 error building with jpeg2000 driver HOT 2
- osgeo-gdal brew install fails HOT 5
- GRASS GIS 7.8.4 released, some mac specific news HOT 3
- Issues installing `insighttoolkit` from source HOT 3
- Missing lib armadillo HOT 10
- Please update to GDAL 3.2.0 HOT 3
- macOS gcc reinstall failure "Type mismatch between actual argument" is linked to osgeo-netcdf HOT 2
- arm64 native bottle HOT 3
- grace no longer working HOT 37
- Brew tap fails due to syntax errors in various osgeo4mac Homebrew formulae HOT 11
- gdal - linked with incorrect libdap - Big Sur HOT 4
- [BigSur][Installation] Install fails on BigSur HOT 26
- Error: Could not get runtime dependencies HOT 2
- Question: How do I join Slack ? HOT 1
- osgeo-libkml.rb emits warning HOT 3
- trouble with labelimg.py starting it shows the error bellow HOT 2
- brew tap not working on macOS 12.2.1 HOT 7
- Status update?
- "Just brew tap osgeo/osgeo4mac and then brew install <formula>. Easy, isn't it?" no it's not
- Osgeo4mac slack requires work domain
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-osgeo4mac.