GithubHelp home page GithubHelp logo

Comments (8)

cartr avatar cartr commented on July 18, 2024

Hi there! Sorry to hear the pyqt@4 formula didn't work correctly on your machine.

Could you please run the brew config and brew doctor commands and paste the output into a Gist so I can take a look at them?

from homebrew-qt4.

crintus avatar crintus commented on July 18, 2024

Here you go https://gist.github.com/crintus/90cadff89ac7cc6df06ec448d2297c70

from homebrew-qt4.

cartr avatar cartr commented on July 18, 2024

@crintus It appears the root cause of this issue is that sip didn't get linked properly because an existing installation was in the way. It's possible this has something to do with the fact that you have Anaconda installed, or maybe it somehow got installed through pip or something.

If you run brew link --overwrite --dry-run sip, back up the listed files, then run brew link --overwrite sip, are you still unable to install PyQt?

from homebrew-qt4.

crintus avatar crintus commented on July 18, 2024

Yeah, next issues is the following

ยป brew install pyqt@4 --with-python3
Updating Homebrew...
==> Installing pyqt@4 from cartr/qt4
==> Downloading https://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.12/PyQt4_gpl_mac-4.12.tar.gz/download
Already downloaded: /Users/johan/Library/Caches/Homebrew/[email protected]
==> python configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt@4/4.12_1/bin --destdir=/usr/local/Cellar/pyqt@4/4.12_1/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt@4/4.12_1/share/
==> python configure-ng.py --confirm-license --bindir=/usr/local/Cellar/pyqt@4/4.12_1/bin --destdir=/usr/local/Cellar/pyqt@4/4.12_1/lib/python2.7/site-packages --sipdir=/usr/local/Cellar/pyqt@4/4.12_1/sha
==> make
Last 15 lines from /Users/johan/Library/Logs/Homebrew/pyqt@4/03.make:
In file included from sipQtCorecmodule.cpp:24:
In file included from ./sipAPIQtCore.h:27:
/usr/local/include/sip.h:32:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
1 error generated.
1 error generated.
1 error generated.
make[1]: *** [sipQtCoreQAbstractAnimation.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [qpycore_post_init.o] Error 1
make[1]: *** [sipQtCoreQAbstractEventDispatcher.o] Error 1
1 error generated.
make[1]: *** [sipQtCorecmodule.o] Error 1
make: *** [sub-QtCore-make_default-ordered] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/cartr/homebrew-qt4/issues

These open issues may also help:
pyqt@4 - WebKit is broken https://github.com/cartr/homebrew-qt4/issues/21

from homebrew-qt4.

davebest avatar davebest commented on July 18, 2024

On Yosemite I got past that part with --overwrite, but fail on mutagen because the project has moved from bitbucket to github.

from homebrew-qt4.

crintus avatar crintus commented on July 18, 2024

It's worth a shot I guess. I no longer need this issue to be resolved. @cartr you can close this if you are happy to not resolve it

from homebrew-qt4.

cartr avatar cartr commented on July 18, 2024

I was unable to reproduce this issue on a fresh install of Sierra, and so I suspect it has something to do with Anaconda being installed on your system, which is not something Homebrew supports very well.

For other people having this issue, you might want to try running conda install pyqt=4 to install PyQt4 through Anaconda instead of Homebrew.

from homebrew-qt4.

crintus avatar crintus commented on July 18, 2024

wow, conda install pyqt=4 actually did the trick. All that effort for a simple fix. Thanks so much @cartr for the help

from homebrew-qt4.

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.