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

Trouble brew installing retext - problems with pyqt: qtdirs failed to create qtdirs.out #40801

Closed
lazarillo opened this issue Jun 16, 2015 · 2 comments
Labels

Comments

@lazarillo
Copy link

I have trouble installing retext. I have a MacBook Pro running OS X Yosemite.

Below is the output stream after an attempt:

Mikes-Mac:~ mike$ brew install retext
==> Installing retext from homebrew/homebrew-python
==> Installing dependencies for homebrew/python/retext: qt, pyqt, sip, gettext, libffi, glib, aspell, enchant
==> Installing homebrew/python/retext dependency: qt
==> Downloading https://homebrew.bintray.com/bottles/qt-4.8.7.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring qt-4.8.7.yosemite.bottle.tar.gz
==> Caveats
We agreed to the Qt opensource license for you.
If this is unacceptable you should uninstall.


.app bundles were installed.
Run `brew linkapps qt` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/qt/4.8.7: 2794 files, 122M
==> Installing homebrew/python/retext dependency: pyqt
==> Downloading https://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz
==> Downloading from: http://iweb.dl.sourceforge.net/project/pyqt/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/pyqt-4.11.3.tar.gz
==> python configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.11.3/bin --destdir=/usr/local/Cellar/pyqt/4.
--sipdir=/usr/local/Cellar/pyqt/4.11.3/share/sip

Error: qtdirs.app/Contents/MacOS/qtdirs failed to create qtdirs.out. Make sure
your Qt installation is correct.
Determining the layout of your Qt installation...

READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
PySide/PyQt: how to get Phonon support?  (https://github.com/Homebrew/homebrew/issues/33102)
Mikes-Mac:~ mike$ 

Issue 33102 mentioned above pointed me to issue 38559, which looked very promising, as it is all the same tasks & libraries. However, after running the suggestion, it did not help:

HOMEBREW_MAKE_JOBS=1 brew install pyqt --with-python3

simply yielded

Mikes-Mac:~ mike$ HOMEBREW_MAKE_JOBS=1 brew install pyqt --with-python3
Warning: pyqt-4.11.3 already installed

whereas

HOMEBREW_MAKE_JOBS=1 brew install retext --with-python3

yielded more or less the same problem:

Mikes-Mac:~ mike$ HOMEBREW_MAKE_JOBS=1 brew install retext --with-python3
==> Installing retext from homebrew/homebrew-python
==> Installing dependencies for homebrew/python/retext: sip, pyqt, gettext, libffi, glib, aspell, enchant
==> Installing homebrew/python/retext dependency: sip
==> Downloading https://downloads.sf.net/project/pyqt/sip/sip-4.16.5/sip-4.16.5.tar.gz
==> Downloading from: http://iweb.dl.sourceforge.net/project/pyqt/sip/sip-4.16.5/sip-4.16.5.tar.gz
######################################################################## 100.0%
==> python configure.py --deployment-target=10.10 --destdir=/usr/local/Cellar/sip/4.16.5/lib/python2.7/site-packages --b
==> make
==> make install
==> make clean
==> python3 configure.py --deployment-target=10.10 --destdir=/usr/local/Cellar/sip/4.16.5/lib/python3.4/site-packages --
==> make
==> make install
==> make clean
==> Caveats
The sip-dir for Python is /usr/local/share/sip.


Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/mike/.local/lib/python2.7/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/mike/.local/lib/python2.7/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/sip/4.16.5: 13 files, 1.0M, built in 13 seconds
==> Installing homebrew/python/retext dependency: pyqt
==> Downloading https://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz
==> Downloading from: http://iweb.dl.sourceforge.net/project/pyqt/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/pyqt-4.11.3.tar.gz
==> python configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.11.3/bin --destdir=/usr/local/Cellar/pyqt/4.
--sipdir=/usr/local/Cellar/pyqt/4.11.3/share/sip

Error: qtdirs.app/Contents/MacOS/qtdirs failed to create qtdirs.out. Make sure
your Qt installation is correct.
Determining the layout of your Qt installation...

READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
PySide/PyQt: how to get Phonon support?  (https://github.com/Homebrew/homebrew/issues/33102)
Mikes-Mac:~ mike$ 

I then added the site-packages/homebrew.pth, as suggested, but that did not help, either:

Mikes-Mac:~ mike$ mkdir -p /Users/mike/.local/lib/python2.7/site-packages
Mikes-Mac:~ mike$ echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/mike/.local/lib/python2.7/site-packages/homebrew.pth
Mikes-Mac:~ mike$ HOMEBREW_MAKE_JOBS=1 brew install retext --with-python3
==> Installing retext from homebrew/homebrew-python
==> Installing dependencies for homebrew/python/retext: pyqt, gettext, libffi, glib, aspell, enchant
==> Installing homebrew/python/retext dependency: pyqt
==> Downloading https://downloads.sf.net/project/pyqt/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz
==> Downloading from: http://iweb.dl.sourceforge.net/project/pyqt/PyQt4/PyQt-4.11.3/PyQt-mac-gpl-4.11.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/pyqt-4.11.3.tar.gz
==> python configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.11.3/bin --destdir=/usr/local/Cellar/pyqt/4.
--sipdir=/usr/local/Cellar/pyqt/4.11.3/share/sip

Error: qtdirs.app/Contents/MacOS/qtdirs failed to create qtdirs.out. Make sure
your Qt installation is correct.
Determining the layout of your Qt installation...

READ THIS: https://git.io/brew-troubleshooting

These open issues may also help:
PySide/PyQt: how to get Phonon support?  (https://github.com/Homebrew/homebrew/issues/33102)

I am at a loss for what to try next. I am also a bit worried that with all these overwrites, I may have created more problems with Homebrew.

I have created two installs of Python, if that is perhaps the problem. One is the standard version that comes installed in the Mac (/usr/local/bin/python), whereas the other is an Anaconda flavor of Python, installed at /Users/mike/anaconda/bin/python. I am using the Anaconda version as my default. I am not sure if that is a problem or not.

Finally, I ran a Gist report, as recommended by this report submission template.

Thank you!
Mike

@DomT4 DomT4 added the python label Jul 6, 2015
@tdsmith
Copy link
Contributor

tdsmith commented Jul 6, 2015

Please try removing Anaconda from PATH temporarily and trying again. Anaconda bundles its own versions of many libraries that conflict with Homebrew's versions.

@DomT4
Copy link
Member

DomT4 commented Dec 30, 2015

Closing as dead. Please feel free to shout if we can help further here, Thanks!

@DomT4 DomT4 closed this as completed Dec 30, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants