Flower: Unable to Install Flower

Created on 3 May 2017  ยท  8Comments  ยท  Source: mher/flower

I'm running into an issue installing Flower one of our CI boxes usingpip install flower

The error appears to be with installing:

ValueError: '/tmp/pip-build-CLsYUt/backports.ssl-match-hostname' is not in list
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-CLsYUt/backports.ssl-match-hostname/

Here's the complete log:

> pip install flower
Collecting flower
  Downloading flower-0.9.1.tar.gz (3.9MB)
    28% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–                      | 1.1MB 43.4MB/s eta 0:00:01    28% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–                      | 1.1MB 42.3MB/s eta 0:00:01    29% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Ž                      | 1.1MB 44.3MB/s eta 0:00:01    29% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–                      | 1.1MB 43.9MB/s eta 0:00:01    29% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Œ                      | 1.1MB 43.3MB/s eta 0:00:01    99% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 3.9MB 49.3MB/s eta 0:00:01    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 3.9MB 376kB/s 
Requirement already satisfied: celery>=3.1.0 in /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages (from flower)
Collecting tornado==4.2.0 (from flower)
  Downloading tornado-4.2.tar.gz (433kB)
    99% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Š| 430kB 46.1MB/s eta 0:00:01    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 440kB 3.3MB/s 
Collecting babel>=1.0 (from flower)
  Downloading Babel-2.4.0-py2.py3-none-any.whl (6.8MB)
    5% |โ–ˆโ–Š                              | 358kB 43.2MB/s eta 0:00:01    5% |โ–ˆโ–Š                              | 368kB 43.6MB/s eta 0:00:01    5% |โ–ˆโ–‰                              | 378kB 42.6MB/s eta 0:00:01    5% |โ–ˆโ–‰                              | 389kB 43.5MB/s eta 0:00:01    5% |โ–ˆโ–‰                              | 399kB 43.6MB/s eta 0:00:01    6% |โ–ˆโ–ˆ                              | 409kB 42.9MB/s eta 0:00:01    74% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ        | 5.1MB 45.1MB/s eta 0:00:01    75% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ        | 5.1MB 47.2MB/s eta 0:00:01    75% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ        | 5.1MB 46.6MB/s eta 0:00:01    75% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–       | 5.1MB 46.6MB/s eta 0:00:01    75% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–       | 5.1MB 46.6MB/s eta 0:00:01    99% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 6.8MB 50.0MB/s eta 0:00:01    100% |โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ| 6.8MB 208kB/s 
Requirement already satisfied: pytz in /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages (from flower)
Requirement already satisfied: futures in /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages (from flower)
Requirement already satisfied: billiard<3.6.0,>=3.5.0.2 in /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages (from celery>=3.1.0->flower)
Requirement already satisfied: kombu<5.0,>=4.0.2 in /home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages (from celery>=3.1.0->flower)
Collecting backports.ssl_match_hostname (from tornado==4.2.0->flower)
  Downloading backports.ssl_match_hostname-3.5.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/setuptools/__init__.py", line 11, in <module>
        from setuptools.extern.six.moves import filterfalse, map
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/setuptools/extern/__init__.py", line 1, in <module>
        from pkg_resources.extern import VendorImporter
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3131, in <module>
        @_call_aside
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3117, in _call_aside
        f(*args, **kwargs)
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3156, in _initialize_master_working_set
        add_activation_listener(lambda dist: dist.activate())
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 954, in subscribe
        callback(dist)
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3156, in <lambda>
        add_activation_listener(lambda dist: dist.activate())
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2656, in activate
        declare_namespace(pkg)
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2226, in declare_namespace
        _handle_ns(packageName, path_item)
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2195, in _handle_ns
        path.sort(key=sort_key)
      File "/home/ubuntu/virtualenvs/venv-system/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2193, in sort_key
        return sys_path.index(_normalize_cached(os.sep.join(parts)))
    ValueError: '/tmp/pip-build-CLsYUt/backports.ssl-match-hostname' is not in list

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-CLsYUt/backports.ssl-match-hostname/

pip install flower returned exit code 1

Action failed: pip install flower

Are there any ideas on how I can further troubleshoot this?

Most helpful comment

I see, from 2 months ago. When do you plan to push this out in a release? I don't think I'd feel comfortable using master branch for a production app.

All 8 comments

I've found the issue. Flower is requiring tornado==4.2.0 which requires backports.ssl-match-hostname which depends on Python < 2.7.

Installing the latest tornado (4.5.1) seems to work fine. Can we update this @mher? I'm happy to submit a PR if that would help.

I've run into the same issue, a quick resolution would be much appreciated :-)

@joshuamcginnis this issue is fixed in the master version

@mher Where? Not seeing any recent commits on master. Did you push the change to pypy?

I see, from 2 months ago. When do you plan to push this out in a release? I don't think I'd feel comfortable using master branch for a production app.

Flower 0.9.2 has been released!

Thanks! This release resolved my original issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hero007asd picture hero007asd  ยท  4Comments

kkzxak47 picture kkzxak47  ยท  8Comments

ghost picture ghost  ยท  3Comments

hland picture hland  ยท  3Comments

ckcollab picture ckcollab  ยท  8Comments