# Problems with hail import

**URL:** <https://discuss.hail.is/t/problems-with-hail-import/386>\
**Category:** Help \[0.1\]\
**Created:** [December 23, 2017, 1:12pm UTC](https://discuss.hail.is/t/problems-with-hail-import/386 "2017-12-23T13:12:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayub](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@mayub](https://discuss.hail.is/u/mayub)\
**Post date:** [December 23, 2017, 1:12pm UTC](https://discuss.hail.is/t/problems-with-hail-import/386/1 "2017-12-23T13:12:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [December 23, 2017, 2:04pm UTC](https://discuss.hail.is/t/problems-with-hail-import/386/2 "2017-12-23T14:04:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mayub](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@mayub](https://discuss.hail.is/u/mayub)\
**Post date:** [December 24, 2017, 1:20am UTC](https://discuss.hail.is/t/problems-with-hail-import/386/3 "2017-12-24T01:20:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [January 10, 2018, 4:36pm UTC](https://discuss.hail.is/t/problems-with-hail-import/386/4 "2018-01-10T16:36:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mayub](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@mayub](https://discuss.hail.is/u/mayub)\
**Post date:** [January 10, 2018, 10:16pm UTC](https://discuss.hail.is/t/problems-with-hail-import/386/5 "2018-01-10T22:16:45Z")

</div>

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](mailto:muhammad.ayub@queensu.ca)
