dingykhan1 / scoop

Automatically exported from code.google.com/p/scoop
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Scoop not working on OS X 10.9 Python 2.7.5 #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
python -m 'scoop' 

does not start scoop properly. I also get 'Be sure to start your program with 
the '-m scoop' parameter. You can find further information in the 
documentation.' when I actually try to run something using futures.map

(meteng)megatron-5390:examples niko$ python -m 'scoop'
[2014-02-18 14:22:28,739] launcher  INFO    SCOOP 0.7.0 release on darwin using 
Python 2.7.5 (default, Aug 25 2013, 00:04:04) [GCC 4.2.1 Compatible Apple LLVM 
5.0 (clang-500.0.68)], API: 1013
[2014-02-18 14:22:28,739] launcher  INFO    Deploying 4 worker(s) over 1 
host(s).
[2014-02-18 14:22:28,740] launcher  INFO    Worker distribution: 
[2014-02-18 14:22:28,740] launcher  INFO       127.0.0.1:   3 + origin
[2014-02-18 14:22:29,019] __init__  INFO    Launching advertiser...
[2014-02-18 14:22:29,020] __init__  INFO    Advertiser launched.
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 808, in __bootstrap_inner
    self.run()
  File "/Users/niko/.virtualenvs/meteng/lib/python2.7/site-packages/scoop/discovery/minusconf.py", line 279, in run
    self._init_advertiser()
  File "/Users/niko/.virtualenvs/meteng/lib/python2.7/site-packages/scoop/discovery/minusconf.py", line 252, in _init_advertiser
    super(ConcurrentAdvertiser, self)._init_advertiser()
  File "/Users/niko/.virtualenvs/meteng/lib/python2.7/site-packages/scoop/discovery/minusconf.py", line 185, in _init_advertiser
    sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_LOOP, struct.pack('@I', 1))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 22] Invalid argument

and here some pip freeze output in case it help

Flask==0.10.1
Flask-Cache==0.12
Flask-Login==0.2.9
Flask-Migrate==1.2.0
-e 
git+git@github.com:biosustain/flask-presst.git@58505be0f7dd3b6efdae74eeea81e63e3
106b18f#egg=Flask_Presst-master
Flask-Principal==0.4.0
Flask-RESTful==0.2.10
Flask-Redis==0.0.3
Flask-SQLAlchemy==1.0
Flask-Script==0.6.6
Flask-WTF==0.9.2
Jinja2==2.7.2
Mako==0.9.1
Markdown==2.3.1
MarkupSafe==0.18
Mosek==7.0.90
PdbSublimeTextSupport==0.2
PyDrive==1.0.0
PyYAML==3.10
Pygments==1.6
## !! Could not determine repository location
RESTfulCOBRA==0.1.0
SQLAlchemy==0.9.1
Sphinx==1.2.1
Unidecode==0.04.14
WTForms==1.0.5
Werkzeug==0.9.4
alembic==0.6.2
amqp==1.0.13
aniso8601==0.82
anyjson==0.3.3
argparse==1.2.1
astroid==1.0.1
beautifulsoup4==4.3.2
benchmark==0.1.5
billiard==2.7.3.34
biopython==1.62
blessings==1.5.1
blinker==1.3
bokeh==0.3
cameo==v0.0.0
celery==3.0.24
celery-with-redis==3.0
-e 
git+git@github.com:phantomas1234/cobrapy.git@37768297c38d99b32429dcff1bed9ebaa21
82de5#egg=cobra-master
columnize==0.3.6
coverage==3.7
cplex==12.5.1.0
cvxopt==1.1.6
dataset==0.4.0
deap==1.0.0rc2
dill==0.2b1
distribute==0.7.3
docutils==0.11
flask-sse==0.1
framed==0.0.0
gdata==2.0.18
gevent==0.13.8
glpk==0.3
google-api-python-client==1.2
greenlet==0.4.1
gunicorn==18.0
gurobipy==5.5.0
honcho==0.5.0
httplib2==0.8
import-relative==0.2.3
inspyred==1.0
ipdb==0.8
ipdbplugin==1.4
ipython==2.0.0-dev
ipython-cluster-helper==0.2.10
iso8601==0.1.8
itsdangerous==0.23
kombu==2.5.16
logilab-common==0.60.1
matplotlib==1.3.1
networkx==1.8.1
nose==1.3.0
nose-progressive==1.5
numpy==1.7.1
numpydoc==0.4
-e 
git+git@github.com:biosustain/optlang.git@ace6f3ce05acbb52dafb3663c9c54756c50af4
13#egg=optlang-master
pandas==0.13.0
piprot==0.2.0
plotly==0.5.7
ply==3.4
progressbar==2.3
psycopg2==2.5.2
pyDOE==0.3
pydbgr==0.2.6
pyficache==0.2.3
pylint==1.1.0
pymongo==2.6.3
-e 
git+https://github.com/Midnighter/pyorganism.git@88a57182ed382bcd5a508a252d8ddc7
6678d90c1#egg=pyorganism-niko_branch
pyparsing==2.0.1
python-dateutil==2.2
python-ldap==2.4.13
python-memcached==1.53
python-slugify==0.0.7
python-termstyle==0.1.10
pytz==2013.9
pyzmq==13.1.0
radar==0.3
readline==6.2.4.1
redis==2.9.1
rednose==0.4.1
requests==2.2.1
scipy==0.13.0
scoop==0.7.0.release
six==1.5.2
smartypants==1.8.3
sphinx-bootstrap-theme==0.3.6
sphinx-rtd-theme==0.1.5
sse==1.2
sympy==0.7.3
tornado==3.1.1
tracer==0.3.2
-e 
git+git@github.com:phantomas1234/escher.git@00cbd54c142ffd7dd5e635f721223d94b18c
7282#egg=visbio-master
wsgiref==0.1.2
yaposib==0.3.2

Original issue reported on code.google.com by niko.son...@gmail.com on 18 Feb 2014 at 1:27

GoogleCodeExporter commented 8 years ago
What you are seeing is a feature that isn't advertised nor completely polished. 
Launching SCOOP without an Python script will launch a SCOOP headless pool 
which will hook itself to another computation.

What I recommend you to do is to launch your computations with SCOOP by 
providing a Python script as an argument, like so:
python -m scoop <your script>

But you are right, there is a bug in the minusconf usage of SCOOP on Mac OS X. 
I will check into that before advertising this feature. Thanks for the report.

Original comment by yannickh...@gmail.com on 15 Jul 2014 at 5:12