Problems with hail import

I am new to Hail. I am trying to run it on a cluster. I am getting this error message. please help

from hail import *
Traceback (most recent call last):
File “”, line 1, in
File “/global/home/hpc3954/software/hail/python/hail/init.py”, line
import hail.expr
File “/global/home/hpc3954/software/hail/python/hail/expr.py”, line 3, dule>
from hail.representation import Variant, AltAllele, Genotype, Locus, al, Struct, Call
File “/global/home/hpc3954/software/hail/python/hail/representation/__ipy”, line 1, in
from hail.representation.variant import Variant, Locus, AltAllele
File “/global/home/hpc3954/software/hail/python/hail/representation/vary”, line 2, in
from hail.typecheck import *
File "/global/home/hpc3954/software/hail/python/hail/typecheck/__init__line 1, in
from check import *
File "/global/home/hpc3954/software/hail/python/hail/typecheck/check.pye 1, in
from decorator import decorator, getargspec
ImportError: cannot import name getargspec

What version of Python and the decorator module do you have? Hail supports Python 2.7 and the latest decorator version, I think.

Thank you. I checked that by running python --version command and I get this response
Python 2.7.5
I managed to run jhail but am getting this error message now
[hpc3954@portal tutorials]$ /global/home/hpc3954/software/hail/bin/jhail Traceback (most recent call last):
File “/opt/python/anaconda3/bin/jupyter-notebook”, line 11, in
sys.exit(main())
File “/opt/python/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py”, line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File “/opt/python/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py”, line 657, in launch_instance
app.initialize(argv)
File “”, line 2, in initialize
File “/opt/python/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py”, line 87, in catch_config_error
return method(app, *args, **kwargs)
File “/opt/python/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”, line 1296, in initialize
self.init_webapp()
File “/opt/python/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py”, line 1120, in init_webapp
self.http_server.listen(port, self.ip)
File “/opt/python/anaconda3/lib/python3.6/site-packages/tornado/tcpserver.py”, line 142, in listen
sockets = bind_sockets(port, address=address)
File “/opt/python/anaconda3/lib/python3.6/site-packages/tornado/netutil.py”, line 197, in bind_sockets
sock.bind(sockaddr)
OSError: [Errno 99] Cannot assign requested address

jhail is a thin wrapper around jupyter notebook. Are you able to successfully run jupyter notebook?

Thanks Dan

You are right. The problem was with running Jupyter Notebook. I have asked my cluster people to fix it.

Muhammad

Dr. Muhammad Ayub
Professor of Psychiatry
Chair Division of Developmental Disabilities
Department of Psychiatry
Queens University Kingston
191 Portsmouth Avenue
Kingston ON Canada K7M 8A6
T 613 549 7944
F 613 549 7387
muhammad.ayub@queensu.ca