pyqwt failed to build on 10.8 #21984

Closed
ussjoin opened this Issue Aug 18, 2013 · 17 comments

9 participants

@ussjoin

https://gist.github.com/ussjoin/6263453 has the requested brew doctor, echo $PATH, echo $PYTHONPATH, and the verbose build output. PyQT 4.10.2 is installed, from homebrew. I've looked around online, and most people having this problem had an issue with $PYTHONPATH, but that doesn't seem to be the case in this instance.

@ryan3thompson

I am having the exact same problem.

https://gist.github.com/ryan3thompson/6313090

@ryan3thompson

I managed to "fix" this problem by reverting to PyQT 4.9.4 following these instructions: http://stackoverflow.com/a/9832084/2708052

Is version 4.10 not considered a "greater" version than 4.2?

@ussjoin

ryan3thompson: Your fix worked for me, too. Looks like something in the chain isn't parsing the version correctly. (Leaving this open so that it shows up for others with the same build failure, until the Homebrew team can squash the bug.)

@adamv

Please report this issue upstream to pyqwt, so they can see if their version check is doing a string comparison (which would make "4.10" < "4.2").

@darora

The issue is introduced by adec638 for pyqt.

Moving over to use the new build system no longer builds the pyqtconfig module, which is what the build script for pyqwt fails to import.

@samueljohn

I don't want to go back to the old build system as I wasn't able to get it build successfully on some systems (as far as I remember).

Sounds to me like an upstream bug in pyqt's build system. Perhaps there is an easy fix like passing some option during build?

@adhambadr

reverting back to PyQt 4.9.4 still didn't do the trick for me!

$ brew install pyqwt
==> Downloading http://downloads.sourceforge.net/project/pyqwt/pyqwt5/PyQwt-5.2.0/PyQwt-5.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/pyqwt-5.2.0.tar.gz
==> Patching
patching file configure/configure.py
==> /usr/local/opt/python/bin/python2 configure.py --module-install-path=/usr/local/Cellar/pyqwt/5.2.0/lib/python2.7/site-packages/PyQt4/Qwt5 --sip-install-p
'timelines': [],
'trace': '',
'uic_install_path': '/usr/local/Cellar/pyqwt/5.2.0/lib/python2.7/site-packages/PyQt4'}

Requires at least PyQt-4.2 and its development tools.

$ brew info pyqt
pyqt: stable 4.9.4

$ echo $PATH
/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin

$ echo $PYTHONPATH
/usr/local/lib/python2.7/site-packages:

Any ideas ?

@samueljohn

confirmed. So I am testing what to do about this...

@samueljohn

I am now trying to run configure.py in PyQt just to get the pyqtconfig generated and install them "manually". And then to use configure-ng.py for the actual build because that is what PyQt's README suggests to use.
If that works, we can try if PyQwt builds.

@samueljohn samueljohn added a commit that closed this issue Sep 4, 2013
@samueljohn samueljohn pyqt: Generate PyQt4.pyqtconfig
This is no longer generated by the new (recommended) configure-ng.py but
some older projects (like PyQWT) still need that file, so we first
run configure.py and copy over the generated pyqtconfig.py manually.
Then, we normally run and build with configure-ng.py.

Fixes #21984
c2eef84
@samueljohn samueljohn closed this in c2eef84 Sep 4, 2013
@samueljohn

That seems to work. Sorry, but you need to brew reinstall pyqt in order to get the pyqtconfig and then install pyqwt. Thanks for the report!

@samueljohn samueljohn was assigned Sep 4, 2013
@samueljohn

@ussjoin can you do us (all) a favor and report that to upstream (PyQwt) project. They need to update their build system. Perhaps in their repository they have done so - I don't know.

@samueljohn

Thanks!

@handyman5 handyman5 pushed a commit to handyman5/homebrew that referenced this issue Oct 7, 2013
@samueljohn samueljohn pyqt: Generate PyQt4.pyqtconfig
This is no longer generated by the new (recommended) configure-ng.py but
some older projects (like PyQWT) still need that file, so we first
run configure.py and copy over the generated pyqtconfig.py manually.
Then, we normally run and build with configure-ng.py.

Fixes #21984
e409780
@shelhamer shelhamer added a commit that referenced this issue Apr 18, 2014
@samueljohn samueljohn pyqt: Generate PyQt4.pyqtconfig
This is no longer generated by the new (recommended) configure-ng.py but
some older projects (like PyQWT) still need that file, so we first
run configure.py and copy over the generated pyqtconfig.py manually.
Then, we normally run and build with configure-ng.py.

Fixes #21984
2c50411
@lambdaq

still broken on 10.10 Yosemite

https://gist.github.com/anonymous/703d4dc219e41412ba26

maybe it's because my anaconda install?

@lambdaq

Edit: comment out Anaconda's $PATH fixed the issue.

@jtlz2

Also still broken on OSX 10.9.5 Mavericks - using Canopy rather than Anaconda:

Requires at least PyQt-4.2 and its development tools.

Any ideas?

@MikeMcQuaid
Homebrew member

@jtlz2 You may need to remove it from your PATH when installing with Homebrew.

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.