Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

pyqwt failed to build on 10.8 #21984

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

pyqwt failed to build on 10.8 #21984

ussjoin opened this issue Aug 18, 2013 · 17 comments

Comments

@ussjoin
Copy link

ussjoin commented Aug 18, 2013

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
Copy link

I am having the exact same problem.

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

@ryan3thompson
Copy link

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
Copy link
Author

ussjoin commented Aug 23, 2013

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
Copy link
Contributor

adamv commented Aug 23, 2013

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
Copy link

darora commented Aug 31, 2013

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
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

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

@samueljohn
Copy link
Contributor

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
Copy link
Contributor

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!

@ghost ghost assigned samueljohn Sep 4, 2013
@samueljohn
Copy link
Contributor

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

@ussjoin
Copy link
Author

ussjoin commented Sep 6, 2013

Reported upstream. https://sourceforge.net/p/pyqwt/bugs/12/

@samueljohn
Copy link
Contributor

Thanks!

handyman5 pushed a commit to handyman5/homebrew that referenced this issue Oct 7, 2013
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 Homebrew#21984
@lambdaq
Copy link

lambdaq commented Oct 29, 2014

still broken on 10.10 Yosemite
https://gist.github.com/anonymous/703d4dc219e41412ba26
maybe it's because my anaconda install?

@lambdaq
Copy link

lambdaq commented Oct 29, 2014

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

@jtlz2
Copy link

jtlz2 commented Dec 24, 2015

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
Copy link
Member

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

@Homebrew Homebrew 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.
Projects
None yet
Development

No branches or pull requests

9 participants