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

vagrant: gunicorn version conflict? #6

Open
jaraco opened this issue Oct 29, 2016 · 0 comments
Open

vagrant: gunicorn version conflict? #6

jaraco opened this issue Oct 29, 2016 · 0 comments

Comments

@jaraco
Copy link
Contributor

jaraco commented Oct 29, 2016

Originally reported by: Dennis Decoene (Bitbucket: dennisdecoene, GitHub: Unknown)


Hello,

I followed the DEVELOP.md guide to get my environment up and running, because I would like to test your app to see if it is a fit for what I want to do.

However, when I start foreman, I get a lot of errors. It looks like something wants gunicorn 19.4.1 or later. I've tried pip install gunicorn==19.4.1 but the I get a whole other set of issues.

Have you had this before?

#!python

(mettle) vagrant@trusty:/vagrant$ foreman start
08:46:45 web.1           | started with pid 9449
08:46:45 timer.1         | started with pid 9451
08:46:45 dispatcher.1    | started with pid 9453
08:46:45 publisher.1     | started with pid 9455
08:46:45 logcollector.1  | started with pid 9457
08:46:45 migrate.1       | started with pid 9459
08:46:45 service_pizza.1 | started with pid 9461
08:46:45 service_sun.1   | started with pid 9463
08:46:45 datastub.1      | started with pid 9465
08:46:46 dispatcher.1    | Traceback (most recent call last):
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/bin/mettle", line 6, in <module>
08:46:46 dispatcher.1    |     from pkg_resources import load_entry_point
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2994, in <module>
08:46:46 dispatcher.1    |     @_call_aside
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2980, in _call_aside
08:46:46 dispatcher.1    |     f(*args, **kwargs)
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
08:46:46 dispatcher.1    |     working_set = WorkingSet._build_master()
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_master
08:46:46 dispatcher.1    |     return cls._build_from_requirements(__requires__)
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
08:46:46 dispatcher.1    |     dists = ws.resolve(reqs, Environment())
08:46:46 dispatcher.1    |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve
08:46:46 dispatcher.1    |     raise VersionConflict(dist, req).with_context(dependent_req)
08:46:46 dispatcher.1    | pkg_resources.ContextualVersionConflict: (gunicorn 19.1.1 (/home/vagrant/.virtualenvs/mettle/lib/python2.7/site-packages), Requirement.parse('gunicorn>=19.4.1'), set(['spa']))
08:46:46 migrate.1       | Traceback (most recent call last):
08:46:46 timer.1         | Traceback (most recent call last):
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/bin/mettle", line 6, in <module>
08:46:46 migrate.1       |     from pkg_resources import load_entry_point
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2994, in <module>
08:46:46 migrate.1       |     @_call_aside
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2980, in _call_aside
08:46:46 migrate.1       |     f(*args, **kwargs)
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
08:46:46 migrate.1       |     working_set = WorkingSet._build_master()
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_master
08:46:46 migrate.1       |     return cls._build_from_requirements(__requires__)
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
08:46:46 migrate.1       |     dists = ws.resolve(reqs, Environment())
08:46:46 migrate.1       |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve
08:46:46 migrate.1       |     raise VersionConflict(dist, req).with_context(dependent_req)
08:46:46 migrate.1       | pkg_resources.ContextualVersionConflict: (gunicorn 19.1.1 (/home/vagrant/.virtualenvs/mettle/lib/python2.7/site-packages), Requirement.parse('gunicorn>=19.4.1'), set(['spa']))
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/bin/mettle", line 6, in <module>
08:46:46 timer.1         |     from pkg_resources import load_entry_point
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2994, in <module>
08:46:46 timer.1         |     @_call_aside
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2980, in _call_aside
08:46:46 timer.1         |     f(*args, **kwargs)
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
08:46:46 timer.1         |     working_set = WorkingSet._build_master()
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_master
08:46:46 timer.1         |     return cls._build_from_requirements(__requires__)
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
08:46:46 timer.1         |     dists = ws.resolve(reqs, Environment())
08:46:46 timer.1         |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve
08:46:46 timer.1         |     raise VersionConflict(dist, req).with_context(dependent_req)
08:46:46 timer.1         | pkg_resources.ContextualVersionConflict: (gunicorn 19.1.1 (/home/vagrant/.virtualenvs/mettle/lib/python2.7/site-packages), Requirement.parse('gunicorn>=19.4.1'), set(['spa']))
08:46:46 web.1           | Traceback (most recent call last):
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/bin/mettle", line 6, in <module>
08:46:46 web.1           |     from pkg_resources import load_entry_point
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2994, in <module>
08:46:46 web.1           |     @_call_aside
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2980, in _call_aside
08:46:46 publisher.1     | Traceback (most recent call last):
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/bin/mettle", line 6, in <module>
08:46:46 publisher.1     |     from pkg_resources import load_entry_point
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2994, in <module>
08:46:46 publisher.1     |     @_call_aside
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2980, in _call_aside
08:46:46 web.1           |     f(*args, **kwargs)
08:46:46 publisher.1     |     f(*args, **kwargs)
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
08:46:46 web.1           |     working_set = WorkingSet._build_master()
08:46:46 publisher.1     |     working_set = WorkingSet._build_master()
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_master
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_master
08:46:46 web.1           |     return cls._build_from_requirements(__requires__)
08:46:46 publisher.1     |     return cls._build_from_requirements(__requires__)
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
08:46:46 logcollector.1  | Traceback (most recent call last):
08:46:46 web.1           |     dists = ws.resolve(reqs, Environment())
08:46:46 publisher.1     |     dists = ws.resolve(reqs, Environment())
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/bin/mettle", line 6, in <module>
08:46:46 web.1           |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve
08:46:46 publisher.1     |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve
08:46:46 logcollector.1  |     from pkg_resources import load_entry_point
08:46:46 web.1           |     raise VersionConflict(dist, req).with_context(dependent_req)
08:46:46 publisher.1     |     raise VersionConflict(dist, req).with_context(dependent_req)
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2994, in <module>
08:46:46 web.1           | pkg_resources.ContextualVersionConflict: (gunicorn 19.1.1 (/home/vagrant/.virtualenvs/mettle/lib/python2.7/site-packages), Requirement.parse('gunicorn>=19.4.1'), set(['spa']))
08:46:46 publisher.1     | pkg_resources.ContextualVersionConflict: (gunicorn 19.1.1 (/home/vagrant/.virtualenvs/mettle/lib/python2.7/site-packages), Requirement.parse('gunicorn>=19.4.1'), set(['spa']))
08:46:46 logcollector.1  |     @_call_aside
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2980, in _call_aside
08:46:46 logcollector.1  |     f(*args, **kwargs)
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3007, in _initialize_master_working_set
08:46:46 logcollector.1  |     working_set = WorkingSet._build_master()
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 660, in _build_master
08:46:46 logcollector.1  |     return cls._build_from_requirements(__requires__)
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 673, in _build_from_requirements
08:46:46 logcollector.1  |     dists = ws.resolve(reqs, Environment())
08:46:46 logcollector.1  |   File "/home/vagrant/.virtualenvs/mettle/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 857, in resolve
08:46:46 logcollector.1  |     raise VersionConflict(dist, req).with_context(dependent_req)
08:46:46 logcollector.1  | pkg_resources.ContextualVersionConflict: (gunicorn 19.1.1 (/home/vagrant/.virtualenvs/mettle/lib/python2.7/site-packages), Requirement.parse('gunicorn>=19.4.1'), set(['spa']))
08:46:46 service_sun.1   | INFO:mettle_protocol.messages:Announcing service sun:sunset, sunrise.
08:46:46 service_pizza.1 | INFO:mettle_protocol.messages:Announcing service pizza:pepperoni, hawaiian.
08:46:47 web.1           | exited with code 1
08:46:47 system          | sending SIGTERM to all processes
08:46:47 timer.1         | exited with code 1
08:46:47 dispatcher.1    | exited with code 1
08:46:47 publisher.1     | exited with code 1
08:46:47 logcollector.1  | exited with code 1
08:46:47 migrate.1       | exited with code 1
08:46:47 service_pizza.1 | terminated by SIGTERM
08:46:47 service_sun.1   | terminated by SIGTERM
08:46:47 datastub.1      | terminated by SIGTERM
(mettle) vagrant@trusty:/vagrant$ pip freeze
Beaker==1.6.4
croniter==0.3.5
functools32==3.2.3.post1
future==0.16.0
gevent==1.0.1
greenlet==0.4.10
gunicorn==19.1.1
gwebsocket==0.9.8
iso8601==0.1.11
isodate==0.5.0
mettle==0.7.9
mettle-protocol==1.1.0
nodeenv==1.0.0
pgpubsub==0.0.5
pika==0.10.0
psycogreen==1.0
psycopg2==2.5.4
PyJWT==1.4.2
python-dateutil==2.5.3
PyYAML==3.11
six==1.10.0
spa==0.6.7
SQLAlchemy==0.9.8
utc==0.0.3
Werkzeug==0.10.1
(mettle) vagrant@trusty:/vagrant$

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

No branches or pull requests

1 participant