# Import\_table Error in python

**URL:** https://discuss.hail.is/t/import-table-error-in-python/218
**Category:** Help \[0.1\]
**Created:** [May 17, 2017, 3:51am UTC](https://discuss.hail.is/t/import-table-error-in-python/218 "2017-05-17T03:51:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lv-xy11](https://avatars.discourse-cdn.com/v4/letter/l/a9adbd/32.png) [@lv-xy11](https://discuss.hail.is/u/lv-xy11)
#### Post date: [May 17, 2017, 3:51am UTC](https://discuss.hail.is/t/import-table-error-in-python/218/1 "2017-05-17T03:51:04Z")

</div>

Hi:  
I come from DCH in China. I try to import table using Hail hc.import\_table command like this:  
from hail import \*  
hc=HailContext()  
table=hc.import\_table(‘1000Genomes.sample\_annotations’,impute=True).key\_by(‘Sample’)

However, I got an error :  
AttributeError: ‘HailContext’ object has no attribute ‘import\_table’

Should I need to import other modules or do something else to solve the problem?  
Thanks.

---

<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: [May 17, 2017, 4:02am UTC](https://discuss.hail.is/t/import-table-error-in-python/218/2 "2017-05-17T04:02:42Z")

</div>

Your Hail version is out of date - we changed this interface on Monday with the release of the 0.1 build.

Pull the changes from github and rebuild, and everything should work!

---

<div class="post-metadata">

### Author: ![lv-xy11](https://avatars.discourse-cdn.com/v4/letter/l/a9adbd/32.png) [@lv-xy11](https://discuss.hail.is/u/lv-xy11)
#### Post date: [May 17, 2017, 4:58am UTC](https://discuss.hail.is/t/import-table-error-in-python/218/3 "2017-05-17T04:58:03Z")

</div>

OK. I will change it. Thanks for your reply!
