Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with python dependencies #34

Open
froztbyte opened this issue May 1, 2015 · 3 comments
Open

Issues with python dependencies #34

froztbyte opened this issue May 1, 2015 · 3 comments

Comments

@froztbyte
Copy link

I have a user python configuration on my 10.10 installation that's configured via http://pip2014.com/. I have also installed all dependencies as indicated in the initial bit of the readme (where I note that numpy and scipy came from the system installation of python; I don't recall if I previously installed them myself)
Here is a list of my installed deps at user level:

fred% pip freeze
-f file:///Users/froztbyte/Library/Caches/org.pip-installer.pip/Wheelhouse
alabaster==0.7.3
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
certifi==2015.4.28
Cheetah==2.4.4
docutils==0.12
ecdsa==0.13
Fabric==1.10.1
Jinja2==2.7.3
lxml==3.4.4
Markdown==2.6.2
MarkupSafe==0.23
nose==1.3.6
paramiko==1.15.2
pbr==0.10.8
pycrypto==2.6.1
Pygments==2.0.2
python-magic==0.4.6
six==1.9.0
snowballstemmer==1.2.0
Sphinx==1.3.1
sphinx-rtd-theme==0.1.7
stevedore==1.3.0
tornado==4.1
virtualenv==12.0.7
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.2
wheel==0.24.0

When I try to run the brew install command, I get this:

fred% brew install gnuradio
==> Installing gnuradio from metacollin/homebrew-gnuradio
gnuradio: Unsatisfied dependency: matplotlib
Homebrew does not provide Python dependencies; install with:
  pip install matplotlib
gnuradio: Unsatisfied dependency: numpy
Homebrew does not provide Python dependencies; install with:
  pip install numpy
gnuradio: Unsatisfied dependency: scipy
Homebrew does not provide Python dependencies; install with:
  pip install scipy
Error: Unsatisified requirements failed this build.

At a guess, I'm thinking that maybe this is due to how the gnuradio python dependency is working out?

I have also tried this, to no effect:

fred% which pip
pip () {
    if [[ -z "${VIRTUAL_ENV:-}" ]]
    then
        env PIP_USER=yes pip "$@"
    else
        command pip "$@"
    fi
}
fred% unfunction pip
fred% pip freeze
-f file:///Users/froztbyte/Library/Caches/org.pip-installer.pip/Wheelhouse
alabaster==0.7.3
altgraph==0.10.2
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
bdist-mpkg==0.5.0
bonjour-py==0.3
certifi==2015.4.28
Cheetah==2.4.4
docutils==0.12
ecdsa==0.13
Fabric==1.10.1
Jinja2==2.7.3
lxml==3.4.4
macholib==1.5.1
Markdown==2.6.2
MarkupSafe==0.23
matplotlib==1.3.1
mercurial==2.6.2.post20130606
modulegraph==0.10.4
nose==1.3.6
numpy==1.8.0rc1
paramiko==1.15.2
pbr==0.10.8
py2app==0.7.3
pycrypto==2.6.1
Pygments==2.0.2
pyobjc-core==2.5.1
pyobjc-framework-Accounts==2.5.1
pyobjc-framework-AddressBook==2.5.1
pyobjc-framework-AppleScriptKit==2.5.1
pyobjc-framework-AppleScriptObjC==2.5.1
pyobjc-framework-Automator==2.5.1
pyobjc-framework-CFNetwork==2.5.1
pyobjc-framework-Cocoa==2.5.1
pyobjc-framework-Collaboration==2.5.1
pyobjc-framework-CoreData==2.5.1
pyobjc-framework-CoreLocation==2.5.1
pyobjc-framework-CoreText==2.5.1
pyobjc-framework-DictionaryServices==2.5.1
pyobjc-framework-EventKit==2.5.1
pyobjc-framework-ExceptionHandling==2.5.1
pyobjc-framework-FSEvents==2.5.1
pyobjc-framework-InputMethodKit==2.5.1
pyobjc-framework-InstallerPlugins==2.5.1
pyobjc-framework-InstantMessage==2.5.1
pyobjc-framework-LatentSemanticMapping==2.5.1
pyobjc-framework-LaunchServices==2.5.1
pyobjc-framework-Message==2.5.1
pyobjc-framework-OpenDirectory==2.5.1
pyobjc-framework-PreferencePanes==2.5.1
pyobjc-framework-PubSub==2.5.1
pyobjc-framework-QTKit==2.5.1
pyobjc-framework-Quartz==2.5.1
pyobjc-framework-ScreenSaver==2.5.1
pyobjc-framework-ScriptingBridge==2.5.1
pyobjc-framework-SearchKit==2.5.1
pyobjc-framework-ServiceManagement==2.5.1
pyobjc-framework-Social==2.5.1
pyobjc-framework-SyncServices==2.5.1
pyobjc-framework-SystemConfiguration==2.5.1
pyobjc-framework-WebKit==2.5.1
pyOpenSSL==0.13.1
pyparsing==2.0.1
python-dateutil==1.5
python-magic==0.4.6
pytz==2013.7
readline==6.2.4.1
scipy==0.13.0b1
six==1.9.0
snowballstemmer==1.2.0
Sphinx==1.3.1
sphinx-rtd-theme==0.1.7
stevedore==1.3.0
tornado==4.1
Twisted==13.2.0
virtualenv==12.0.7
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.2
wheel==0.24.0
xattr==0.6.4
zope.interface==4.1.1
fred% brew install gnuradio
==> Installing gnuradio from metacollin/homebrew-gnuradio
gnuradio: Unsatisfied dependency: matplotlib
Homebrew does not provide Python dependencies; install with:
  pip install matplotlib
gnuradio: Unsatisfied dependency: numpy
Homebrew does not provide Python dependencies; install with:
  pip install numpy
gnuradio: Unsatisfied dependency: scipy
Homebrew does not provide Python dependencies; install with:
  pip install scipy
Error: Unsatisified requirements failed this build.

As you can see, the pip command my user is hitting most certainly has those deps available, but whatever the brew command is doing doesn't appear to complete successfully.

@metacollin
Copy link
Owner

Hmmm. Homebrew uses superenv to override and remove various users' environment settings, so that might explain why it's having trouble.

This is a setup I hadn't anticipated, but I'm going to see if I can add some "dependency hunting" code to the formula to deal with this in a more generalized way. Other formula do this as well so it ought to be doable.

There is a small chance adding env :std to the formula might help but it also might break it more. This will take a bit of looking into, but I'm on it. Sorry about the problem!

On May 1, 2015, at 4:22 AM, JP Viljoen [email protected] wrote:

I have a user python configuration on my 10.10 installation that's configured via http://pip2014.com/. I have also installed all dependencies as indicated in the initial bit of the readme (where I note that numpy and scipy came from the system installation of python; I don't recall if I previously installed them myself)
Here is a list of my installed deps at user level:

fred% pip freeze
-f file:///Users/froztbyte/Library/Caches/org.pip-installer.pip/Wheelhouse
alabaster==0.7.3
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
certifi==2015.4.28
Cheetah==2.4.4
docutils==0.12
ecdsa==0.13
Fabric==1.10.1
Jinja2==2.7.3
lxml==3.4.4
Markdown==2.6.2
MarkupSafe==0.23
nose==1.3.6
paramiko==1.15.2
pbr==0.10.8
pycrypto==2.6.1
Pygments==2.0.2
python-magic==0.4.6
six==1.9.0
snowballstemmer==1.2.0
Sphinx==1.3.1
sphinx-rtd-theme==0.1.7
stevedore==1.3.0
tornado==4.1
virtualenv==12.0.7
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.2
wheel==0.24.0
When I try to run the brew install command, I get this:

fred% brew install gnuradio
==> Installing gnuradio from metacollin/homebrew-gnuradio
gnuradio: Unsatisfied dependency: matplotlib
Homebrew does not provide Python dependencies; install with:
pip install matplotlib
gnuradio: Unsatisfied dependency: numpy
Homebrew does not provide Python dependencies; install with:
pip install numpy
gnuradio: Unsatisfied dependency: scipy
Homebrew does not provide Python dependencies; install with:
pip install scipy
Error: Unsatisified requirements failed this build.
At a guess, I'm thinking that maybe this is due to how the gnuradio python dependency is working out?

I have also tried this, to no effect:

fred% which pip
pip () {
if [[ -z "${VIRTUAL_ENV:-}" ]]
then
env PIP_USER=yes pip "$@"
else
command pip "$@"
fi
}
fred% unfunction pip
fred% pip freeze
-f file:///Users/froztbyte/Library/Caches/org.pip-installer.pip/Wheelhouse
alabaster==0.7.3
altgraph==0.10.2
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
bdist-mpkg==0.5.0
bonjour-py==0.3
certifi==2015.4.28
Cheetah==2.4.4
docutils==0.12
ecdsa==0.13
Fabric==1.10.1
Jinja2==2.7.3
lxml==3.4.4
macholib==1.5.1
Markdown==2.6.2
MarkupSafe==0.23
matplotlib==1.3.1
mercurial==2.6.2.post20130606
modulegraph==0.10.4
nose==1.3.6
numpy==1.8.0rc1
paramiko==1.15.2
pbr==0.10.8
py2app==0.7.3
pycrypto==2.6.1
Pygments==2.0.2
pyobjc-core==2.5.1
pyobjc-framework-Accounts==2.5.1
pyobjc-framework-AddressBook==2.5.1
pyobjc-framework-AppleScriptKit==2.5.1
pyobjc-framework-AppleScriptObjC==2.5.1
pyobjc-framework-Automator==2.5.1
pyobjc-framework-CFNetwork==2.5.1
pyobjc-framework-Cocoa==2.5.1
pyobjc-framework-Collaboration==2.5.1
pyobjc-framework-CoreData==2.5.1
pyobjc-framework-CoreLocation==2.5.1
pyobjc-framework-CoreText==2.5.1
pyobjc-framework-DictionaryServices==2.5.1
pyobjc-framework-EventKit==2.5.1
pyobjc-framework-ExceptionHandling==2.5.1
pyobjc-framework-FSEvents==2.5.1
pyobjc-framework-InputMethodKit==2.5.1
pyobjc-framework-InstallerPlugins==2.5.1
pyobjc-framework-InstantMessage==2.5.1
pyobjc-framework-LatentSemanticMapping==2.5.1
pyobjc-framework-LaunchServices==2.5.1
pyobjc-framework-Message==2.5.1
pyobjc-framework-OpenDirectory==2.5.1
pyobjc-framework-PreferencePanes==2.5.1
pyobjc-framework-PubSub==2.5.1
pyobjc-framework-QTKit==2.5.1
pyobjc-framework-Quartz==2.5.1
pyobjc-framework-ScreenSaver==2.5.1
pyobjc-framework-ScriptingBridge==2.5.1
pyobjc-framework-SearchKit==2.5.1
pyobjc-framework-ServiceManagement==2.5.1
pyobjc-framework-Social==2.5.1
pyobjc-framework-SyncServices==2.5.1
pyobjc-framework-SystemConfiguration==2.5.1
pyobjc-framework-WebKit==2.5.1
pyOpenSSL==0.13.1
pyparsing==2.0.1
python-dateutil==1.5
python-magic==0.4.6
pytz==2013.7
readline==6.2.4.1
scipy==0.13.0b1
six==1.9.0
snowballstemmer==1.2.0
Sphinx==1.3.1
sphinx-rtd-theme==0.1.7
stevedore==1.3.0
tornado==4.1
Twisted==13.2.0
virtualenv==12.0.7
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.2
wheel==0.24.0
xattr==0.6.4
zope.interface==4.1.1
fred% brew install gnuradio
==> Installing gnuradio from metacollin/homebrew-gnuradio
gnuradio: Unsatisfied dependency: matplotlib
Homebrew does not provide Python dependencies; install with:
pip install matplotlib
gnuradio: Unsatisfied dependency: numpy
Homebrew does not provide Python dependencies; install with:
pip install numpy
gnuradio: Unsatisfied dependency: scipy
Homebrew does not provide Python dependencies; install with:
pip install scipy
Error: Unsatisified requirements failed this build.
As you can see, the pip command my user is hitting most certainly has those deps available, but whatever the brew command is doing doesn't appear to complete successfully.


Reply to this email directly or view it on GitHub.

@froztbyte
Copy link
Author

Let me know if I can help test in any way

@metacollin
Copy link
Owner

@froztbyte Sorry, its been quite some time, but I do have something to report.

Try /usr/local/bin/pip install Cheetah lxml matplotlib numpy scipy docutils sphinx

Then install gnuradio. This will bypass any user dependent stuff and make sure to install the dependencies within the systemwide homebrew python version, which is the only environment one can use homebrew formula with, sadly. That, or the included OS X one. There is no way around that limitation, it would require completely changing what homebrew even is, so there is not much I can do to get it to use user python environments. But it should play nice along side them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants