# Work around for Xlnk being used in QNN-MO-PYNQ example

**URL:** <https://discuss.pynq.io/t/work-around-for-xlnk-being-used-in-qnn-mo-pynq-example/6888>\
**Category:** Support\
**Created:** [April 3, 2024, 12:18pm UTC](https://discuss.pynq.io/t/work-around-for-xlnk-being-used-in-qnn-mo-pynq-example/6888 "2024-04-03T12:18:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aditya\_S](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/aditya_s/32/5789_2.png) [@Aditya\_S](https://discuss.pynq.io/u/Aditya_S)\
**Post date:** [April 3, 2024, 12:18pm UTC](https://discuss.pynq.io/t/work-around-for-xlnk-being-used-in-qnn-mo-pynq-example/6888/1 "2024-04-03T12:18:27Z")

</div>

Hi,  
I’m using the Pynq Z2 board with the latest pynq 3.01 image. I setup [this repo](https://github.com/Xilinx/QNN-MO-PYNQ). I tried running an example notebook for supervised learning. I get the ‘Cannot import Xlnk’ error. I went through a couple of support questions and found that Xlnk is deprecated and replaced by pynq.allocate.

Can i get examples on using `pynq.allocate` for this example repo and further steps to build the project.

Thanks

---

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [April 3, 2024, 12:20pm UTC](https://discuss.pynq.io/t/work-around-for-xlnk-being-used-in-qnn-mo-pynq-example/6888/2 "2024-04-03T12:20:02Z")

</div>

Hi @Aditya_S,

Welcome to the PYNQ community.

The repo you are linking has not been updated in 4 years and works with an old version of `pynq`.

I suggest you check out FINN. [GitHub - Xilinx/finn: Dataflow compiler for QNN inference on FPGAs](https://github.com/Xilinx/finn)

Mario

---

<div class="post-metadata">

**Author:** ![Aditya\_S](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/aditya_s/32/5789_2.png) [@Aditya\_S](https://discuss.pynq.io/u/Aditya_S)\
**Post date:** [April 3, 2024, 12:21pm UTC](https://discuss.pynq.io/t/work-around-for-xlnk-being-used-in-qnn-mo-pynq-example/6888/3 "2024-04-03T12:21:52Z")

</div>

Hi,  
Thanks for the reply.  
I was checking finn out but the repo doesnt directly support Pynq Z2, there are some work arounds to be done there.

Thanks
