mesosphere-backup/mesos-cli

Failed install

Closed this issue · 1 comments

I generally see that there is a dependency version problem but am relatively unfamiliar with Python packaging. What exactly should be done here on my end or yours? Thanks.

⧑ sudo pip install mesos.cli
Password:
Downloading/unpacking mesos.cli
  Downloading mesos.cli-0.1.3-py2-none-any.whl (43kB): 43kB downloaded
Downloading/unpacking argcomplete>=0.8.0 (from mesos.cli)
  Downloading argcomplete-0.8.1.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/argcomplete/setup.py) egg_info for package argcomplete

Downloading/unpacking protobuf>=2.5.0,<3 (from mesos.cli)
  Downloading protobuf-2.6.0.tar.gz (187kB): 187kB downloaded
  Running setup.py (path:/private/tmp/pip_build_root/protobuf/setup.py) egg_info for package protobuf
    zip_safe flag not set; analyzing archive contents...
    google.__init__: module references __path__
    google.apputils.__init__: module references __path__
    google.apputils.run_script_module: module references __file__
    google.apputils.setup_command: module references __file__

    Installed /private/tmp/pip_build_root/protobuf/google_apputils-0.4.0-py2.7.egg
    Searching for pytz>=2010
    Reading https://pypi.python.org/simple/pytz/
    Best match: pytz 2014.7
    Downloading https://pypi.python.org/packages/2.7/p/pytz/pytz-2014.7-py2.7.egg#md5=316ea05e4fd43ae88b2b559cacacf81b
    Processing pytz-2014.7-py2.7.egg
    Moving pytz-2014.7-py2.7.egg to /private/tmp/pip_build_root/protobuf

    Installed /private/tmp/pip_build_root/protobuf/pytz-2014.7-py2.7.egg
    Searching for python-gflags>=1.4
    Reading https://pypi.python.org/simple/python-gflags/
    Reading http://code.google.com/p/python-gflags
    Best match: python-gflags 2.0
    Downloading https://pypi.python.org/packages/source/p/python-gflags/python-gflags-2.0.tar.gz#md5=23c9a793959a54971b1f094b0c6d03b1
    Processing python-gflags-2.0.tar.gz
    Writing /tmp/easy_install-ZWS2CY/python-gflags-2.0/setup.cfg
    Running python-gflags-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZWS2CY/python-gflags-2.0/egg-dist-tmp-7heOU9
    zip_safe flag not set; analyzing archive contents...

    Installed /private/tmp/pip_build_root/protobuf/python_gflags-2.0-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/tmp/pip_build_root/protobuf/setup.py", line 199, in <module>
        "Protocol Buffers are Google's data interchange format.",
      File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 261, in __init__
      File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 286, in fetch_build_eggs
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 631, in resolve
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 864, in best_match
      File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 509, in find
    pkg_resources.VersionConflict: (python-dateutil 2.2 (/Library/Python/2.7/site-packages), Requirement.parse('python-dateutil>=1.4,<2'))
    Complete output from command python setup.py egg_info:
    zip_safe flag not set; analyzing archive contents...

google.__init__: module references __path__

google.apputils.__init__: module references __path__

google.apputils.run_script_module: module references __file__

google.apputils.setup_command: module references __file__



Installed /private/tmp/pip_build_root/protobuf/google_apputils-0.4.0-py2.7.egg

Searching for pytz>=2010

Reading https://pypi.python.org/simple/pytz/

Best match: pytz 2014.7

Downloading https://pypi.python.org/packages/2.7/p/pytz/pytz-2014.7-py2.7.egg#md5=316ea05e4fd43ae88b2b559cacacf81b

Processing pytz-2014.7-py2.7.egg

Moving pytz-2014.7-py2.7.egg to /private/tmp/pip_build_root/protobuf



Installed /private/tmp/pip_build_root/protobuf/pytz-2014.7-py2.7.egg

Searching for python-gflags>=1.4

Reading https://pypi.python.org/simple/python-gflags/

Reading http://code.google.com/p/python-gflags

Best match: python-gflags 2.0

Downloading https://pypi.python.org/packages/source/p/python-gflags/python-gflags-2.0.tar.gz#md5=23c9a793959a54971b1f094b0c6d03b1

Processing python-gflags-2.0.tar.gz

Writing /tmp/easy_install-ZWS2CY/python-gflags-2.0/setup.cfg

Running python-gflags-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZWS2CY/python-gflags-2.0/egg-dist-tmp-7heOU9

zip_safe flag not set; analyzing archive contents...



Installed /private/tmp/pip_build_root/protobuf/python_gflags-2.0-py2.7.egg

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/tmp/pip_build_root/protobuf/setup.py", line 199, in <module>

    "Protocol Buffers are Google's data interchange format.",

  File "/usr/local/Cellar/python/2.7.8/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup

    _setup_distribution = dist = klass(attrs)

  File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 261, in __init__

  File "build/bdist.macosx-10.9-x86_64/egg/setuptools/dist.py", line 286, in fetch_build_eggs

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 631, in resolve

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 864, in best_match

  File "build/bdist.macosx-10.9-x86_64/egg/pkg_resources.py", line 509, in find

pkg_resources.VersionConflict: (python-dateutil 2.2 (/Library/Python/2.7/site-packages), Requirement.parse('python-dateutil>=1.4,<2'))

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/protobuf
Storing debug log for failure in /Users/jasonkuhrt/.pip/pip.log

It looks like python-dateutil is a dependency of protobuf and you already have a version that is too new installed.

You can either go down the route of figuring out what lib is already dependent on the newer version of dateutil or install the CLI into a virtualenv. I'm working on a script that'll do the virtualenv install for you to get around these random/weird dependency hell issues.