# .tcl file cannot be parsed correctly

**URL:** https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455
**Category:** Support
**Created:** [December 18, 2023, 4:45pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455 "2023-12-18T16:45:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![starkerfirst](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/starkerfirst/32/5482_2.png) [@starkerfirst](https://discuss.pynq.io/u/starkerfirst)
#### Post date: [December 18, 2023, 4:45pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/1 "2023-12-18T16:45:29Z")

</div>

I have designed my PS+PL system on Digilent Zybo Board. And I generated .bit and bd.tcl files exactly aligned with Pynq tutorials.

But it seems that tcl file cannot be correctly parsed with errors of “‘NoneType’ object has no attribute ‘group’”

 ![error](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/5/5f230fbebc92b80fadf4558f26676772a7f42157.png)

System info: Zybo (XC7Z010-1CLG400C), petalinux ubuntu 15.10, pynq 2.0, Vivado 2023.2 (Win 11)

I will appreciate it if someone can help with it.

---

<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: [December 18, 2023, 5:35pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/2 "2023-12-18T17:35:09Z")

</div>

Hi @starkerfirst,

Welcome to the PYNQ community.

PYNQ v2.0 has only been tested with Vivado 2016.1 [PYNQ SD Card image — Python productivity for Zynq (Pynq)](https://pynq.readthedocs.io/en/latest/pynq_sd_card.html)

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

I suggest you move to the latest version.

Mario

---

<div class="post-metadata">

### Author: ![starkerfirst](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/starkerfirst/32/5482_2.png) [@starkerfirst](https://discuss.pynq.io/u/starkerfirst)
#### Post date: [December 19, 2023, 3:09am UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/3 "2023-12-19T03:09:19Z")

</div>

Many thanks with your reply.

So you mean .tcl format has changed a lot across these versions?

And I encountered problems while trying to upgrade pynq package via pip. It says pynq package can not be found in the default pip source. So I must recompile linux image with the newest pynq from the very begining?

---

<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: [December 19, 2023, 3:05pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/4 "2023-12-19T15:05:40Z")

</div>

> So you mean .tcl format has changed a lot across these versions?

Probably, tcl is not used in newer PYNQ versions.

> And I encountered problems while trying to upgrade pynq package via pip. It says pynq package can not be found in the default pip source. So I must recompile linux image with the newest pynq from the very begining?

You cannot upgrade with pip. You need a new SD card image with the latest version of PYNQ.  
You will need to rebuild the SD card image for your board.

Mario

---

<div class="post-metadata">

### Author: ![starkerfirst](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/starkerfirst/32/5482_2.png) [@starkerfirst](https://discuss.pynq.io/u/starkerfirst)
#### Post date: [December 20, 2023, 1:18pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/5 "2023-12-20T13:18:19Z")

</div>

Many thanks with your suggestions.

I have moved to v3.0.1 image, and now the problem above is solved. However, a new error happens:

 ![error](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/9/95ec90a1785d6ae4cca1d2a466dc2c6d8290827a.png)  
I found your solution on github:  
[RuntimeError: Programming Device failed: ENODEV (19) No such device · Issue #65 · Xilinx/xup\_vitis\_network\_example (github.com)](https://github.com/Xilinx/xup_vitis_network_example/issues/65)  
And I followed it to upgrade xrt version to the newest one. But an error called “unknown OS flavor pynqlinux” when I run src/runtime\_src/tools/scripts/xrtdeps.sh script to build xrt. I have no idea why this would happen.

Best Regards

---

<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: [December 20, 2023, 2:01pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/6 "2023-12-20T14:01:09Z")

</div>

Hi @starkerfirst,

The solution you linked is not applicable for embedded devices.

How have you generated the SD card image for Zybo?

Mario

---

<div class="post-metadata">

### Author: ![starkerfirst](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/starkerfirst/32/5482_2.png) [@starkerfirst](https://discuss.pynq.io/u/starkerfirst)
#### Post date: [December 20, 2023, 4:04pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/7 "2023-12-20T16:04:33Z")

</div>

I generated BOOT.bin, devicetree.dtb and image.ub for Zybo. Then I use precompiled SD image (Digilent Pynq Z1) to burn, and replace original files by Zybo’s. Is it the core problem to cause error?

It seems that Linux cannot recognize and program PL correctly. So maybe I should modify devicetree.dtb?

Best Regards

---

<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: [December 20, 2023, 6:27pm UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/8 "2023-12-20T18:27:01Z")

</div>

Hi @starkerfirst,

Doing this file manipulation is something we do not recommend.

We recommend you build the complete SD card image for this board making the necessary changes.

Mario

---

<div class="post-metadata">

### Author: ![starkerfirst](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/starkerfirst/32/5482_2.png) [@starkerfirst](https://discuss.pynq.io/u/starkerfirst)
#### Post date: [December 21, 2023, 5:56am UTC](https://discuss.pynq.io/t/tcl-file-cannot-be-parsed-correctly/6455/9 "2023-12-21T05:56:47Z")

</div>

Thank you for your advice. The reason I did not build image completely is that my PC is lack of disk capacity to install Vivado in ubuntu. So I skipped this step.

Anyway I have found a solution for No Such Device error: just to comment line 529 is fine. Now my zybo can program PL to my design. It is interesting that this error did not corrupt the whole system.

Many thanks for your help these days. I learned a lot from Pynq community.
