Giter Site home page Giter Site logo

Comments (6)

dakcarto avatar dakcarto commented on August 29, 2024

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.

riggsd avatar riggsd commented on August 29, 2024

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.

dakcarto avatar dakcarto commented on August 29, 2024

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.

riggsd avatar riggsd commented on August 29, 2024

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.

dakcarto avatar dakcarto commented on August 29, 2024

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.

dakcarto avatar dakcarto commented on August 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.