# Question about the 'allocate' module in PYNQ

**URL:** <https://discuss.pynq.io/t/question-about-the-allocate-module-in-pynq/761>\
**Category:** Support\
**Created:** [December 16, 2019, 8:03am UTC](https://discuss.pynq.io/t/question-about-the-allocate-module-in-pynq/761 "2019-12-16T08:03:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riwuarua](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@Riwuarua](https://discuss.pynq.io/u/Riwuarua)\
**Post date:** [December 16, 2019, 8:03am UTC](https://discuss.pynq.io/t/question-about-the-allocate-module-in-pynq/761/1 "2019-12-16T08:03:48Z")

</div>

Greetings:  
I’m recently using Xilinx PYNQ frame to complete a DMA transfer task. I followed the examples on the PYNQ website and run into the problem that when I do ‘from pynq import allocate’, an error occurs saying ’ ImportError: cannot import name ‘allocate’ '. And when I check the PYNQ module, it goes like this ’ AttributeError: module ‘pynq’ has no attribute ‘allocate’ '. So how can I fixed this problem, where can I get this ‘allocate’ ?

---

<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:** [December 16, 2019, 8:14am UTC](https://discuss.pynq.io/t/question-about-the-allocate-module-in-pynq/761/2 "2019-12-16T08:14:26Z")

</div>

Which version of PYNQ are you using? `allocate` is new in v2.5

Cathal
