# Error importing pynq on different board (Microzed)

**URL:** <https://discuss.pynq.io/t/error-importing-pynq-on-different-board-microzed/334>\
**Category:** Support\
**Created:** [July 19, 2019, 8:42am UTC](https://discuss.pynq.io/t/error-importing-pynq-on-different-board-microzed/334 "2019-07-19T08:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emc](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@emc](https://discuss.pynq.io/u/emc)\
**Post date:** [July 19, 2019, 8:42am UTC](https://discuss.pynq.io/t/error-importing-pynq-on-different-board-microzed/334/1 "2019-07-19T08:42:17Z")

</div>

I am trying to implement Pynq on Microzed 7020 and I have used the fork by [ticktronaut](https://github.com/ticktronaut/PYNQ/)

Writing the image, updating and launching the modified jupyter notebooks worked fine, but when I tried importing pynq I get the following error:

* * *

AttributeError Traceback (most recent call last)  
 in ()  
1 import numpy as np  
----\> 2 import pynq  
3  
4 def get\_pynq\_buffer(shape, dtype):  
5 “”" Simple function to call PYNQ’s memory allocator with numpy attributes

/opt/python3.6/lib/python3.6/site-packages/pynq/ **init**.py in ()  
32 from .ps import Register  
33 from .ps import Clocks  
—\> 34 from .pl import PL  
35 from .pl import PL\_SERVER\_FILE  
36 from .pl import Bitstream

/opt/python3.6/lib/python3.6/site-packages/pynq/pl.py in ()  
444  
445  
 → 446 class PLMeta(type):  
447 “”"This method is the meta class for the PL.  
448

/opt/python3.6/lib/python3.6/site-packages/pynq/pl.py in PLMeta()  
460  
461 if CPU\_ARCH\_IS\_SUPPORTED:  
 → 462 \_tcl = \_TCL(TCL\_BOOT)  
463 \_ip\_dict = \_tcl.ip\_dict  
464 \_gpio\_dict = \_tcl.gpio\_dict

/opt/python3.6/lib/python3.6/site-packages/pynq/pl.py in **init** (self, tcl\_name)  
347 self.pins[p] = index  
348  
 → 349 if self.ps\_name + “/” + family\_irq\_dict[self.family] in self.pins:  
350 ps\_irq\_net = self.pins[  
351 self.ps\_name + “/” + family\_irq\_dict[self.family]]

AttributeError: ‘\_TCL’ object has no attribute ‘family’

Any help would be very appreciated and feel free to ask for any more details you might require[mz\_des\_wrapper.zip](https://discuss.pynq.io/uploads/short-url/pOCNBoNlS1X64dSmPyTQXtNIZW1.zip) (10.2 KB)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [July 22, 2019, 5:04pm UTC](https://discuss.pynq.io/t/error-importing-pynq-on-different-board-microzed/334/2 "2019-07-22T17:04:43Z")

</div>

It would be easier to identify the problem if you can attach the original tcl file you used.

My guess, though, is that your PS block is wrapped in a hierarchical IP - make sure the PS block is exposed at the top level of your block design.

---

<div class="post-metadata">

**Author:** ![emc](https://avatars.discourse-cdn.com/v4/letter/e/96bed5/32.png) [@emc](https://discuss.pynq.io/u/emc)\
**Post date:** [July 23, 2019, 8:28am UTC](https://discuss.pynq.io/t/error-importing-pynq-on-different-board-microzed/334/3 "2019-07-23T08:28:46Z")

</div>

Thanks for the reply, I have since remade a new tcl file (attached) and have been specifying the full path to the file. It seems to have solved the issue
