ceteri / exelixi

Exelixi is a distributed framework based on Apache Mesos, mostly implemented in Python using gevent for high-performance concurrency. It is intended to run cluster computing jobs (partitioned batch jobs, which include some messaging) in pure Python. By default, it runs genetic algorithms at scale.
Apache License 2.0
133 stars 23 forks source link

ImportError: cannot import name shutdown #4

Open dbl001 opened 9 years ago

dbl001 commented 9 years ago

Hi, I'm on a MacBook Pro running 10.10.3 with an Anaconda stack. David-Laxers-MacBook-Pro:incubator-zeppelin davidlaxer$ conda -V conda 3.13.0

gevent==1.0.1 does not seem to have a shutdown method. Any ideas?

David-Laxers-MacBook-Pro: davidlaxer$ ipython Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42) Type "copyright", "credits" or "license" for more information.

IPython 3.1.0 -- An enhanced Interactive Python. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://binstar.org ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.

In [1]: from gevent import shutdown

ImportError Traceback (most recent call last)

in () ----> 1 from gevent import shutdown ImportError: cannot import name shutdown In [2]: from gevent import * In [3]: quit David-Laxers-MacBook-Pro:incubator-zeppelin davidlaxer$ pip freeze | grep gevent gevent==1.0.1 gevent-websocket==0.9.3 David-Laxers-MacBook-Pro:incubator-zeppelin davidlaxer$
dbl001 commented 9 years ago

Looks like gevent.shutdown is depricated:

https://github.com/sdiehl/gevent-tutorial/issues/9