# Xlnk: 'module' object is not callable

**URL:** <https://discuss.pynq.io/t/xlnk-module-object-is-not-callable/3506>\
**Category:** Support\
**Created:** [January 6, 2022, 9:59pm UTC](https://discuss.pynq.io/t/xlnk-module-object-is-not-callable/3506 "2022-01-06T21:59:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frankwu1218](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/frankwu1218/32/2688_2.png) [@frankwu1218](https://discuss.pynq.io/u/frankwu1218)\
**Post date:** [January 6, 2022, 9:59pm UTC](https://discuss.pynq.io/t/xlnk-module-object-is-not-callable/3506/1 "2022-01-06T21:59:49Z")

</div>

When I ran the code and it shows me the error.  
I use V2.7 and I found that Xlnk has removed, so that I copy the Xlnk.py from V2.6 to test the code.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/7/7d42b874a35b349fb7a3a9a82ffb15036969724c.png)

Thanks

---

<div class="post-metadata">

**Author:** ![pynqzen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/pynqzen/32/97_2.png) [@pynqzen](https://discuss.pynq.io/u/pynqzen)\
**Post date:** [January 7, 2022, 3:41am UTC](https://discuss.pynq.io/t/xlnk-module-object-is-not-callable/3506/2 "2022-01-07T03:41:25Z")

</div>

Hi, For v2.7 and future releases, please use allocate in place of xlnx. You can read more about allocate here:

[https://pynq.readthedocs.io/en/v2.7.0/pynq\_libraries/allocate.html](https://pynq.readthedocs.io/en/v2.7.0/pynq_libraries/allocate.html)

Kind regards

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [January 7, 2022, 11:12am UTC](https://discuss.pynq.io/t/xlnk-module-object-is-not-callable/3506/3 "2022-01-07T11:12:24Z")

</div>

There are some _Allocate_ examples here:  
[https://github.com/Xilinx/PYNQ\_Workshop/tree/master/Session\_4](https://github.com/Xilinx/PYNQ_Workshop/tree/master/Session_4)

Cathal
