# Error during running Simple\_Switch

**URL:** <https://forum.p4.org/t/error-during-running-simple-switch/318>\
**Category:** Getting Started with P4\
**Created:** [May 7, 2022, 5:01am UTC](https://forum.p4.org/t/error-during-running-simple-switch/318 "2022-05-07T05:01:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![none](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@none](https://forum.p4.org/u/none)\
**Post date:** [May 7, 2022, 5:01am UTC](https://forum.p4.org/t/error-during-running-simple-switch/318/1 "2022-05-07T05:01:35Z")

</div>

Continuing the discussion from [P4PI Testing over Ethernet](https://forum.p4.org/t/p4pi-testing-over-ethernet/249/7):

Hello,  
I have followed the steps mentioned in the p4pi github repository for using bmv2 in p4pi ([p4pi/bmv2 at master · p4lang/p4pi · GitHub](https://github.com/p4lang/p4pi/tree/master/bmv2)) but I am having trouble running the simple\_switch in the bmv2.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/p4/original/1X/9502759d93827af3a3b01f5395677ec9c6b0417d.png)  
Thank you.

---

<div class="post-metadata">

**Author:** ![ederollora](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/ederollora/32/21_2.png) [@ederollora](https://forum.p4.org/u/ederollora)\
**Post date:** [May 13, 2022, 6:28pm UTC](https://forum.p4.org/t/error-during-running-simple-switch/318/2 "2022-05-13T18:28:15Z")

</div>

Hi,

I am not very familiar with P4PI (though I would like to be). This question is probably for someone like @radostin. Have you tried to post it to the Github repository?

Cheers,

---

<div class="post-metadata">

**Author:** ![none](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@none](https://forum.p4.org/u/none)\
**Post date:** [May 14, 2022, 4:36am UTC](https://forum.p4.org/t/error-during-running-simple-switch/318/3 "2022-05-14T04:36:35Z")

</div>

Thank you for the response, @mingzzz helped me in clearing this, we have to entre the target directory and then into the simple\_switch directory in which we can run the code.  
But when we are trying to run get\_digest.py in p4pi using simple\_switch runtime in which the python code has p4utils dependency. We were trying to extract information from the packets using the python code but p4utils is not being supported in p4pi could you suggest us any other alternatives or solutions to solve it.

---

<div class="post-metadata">

**Author:** ![radostin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/radostin/32/50_2.png) [@radostin](https://forum.p4.org/u/radostin)\
**Post date:** [May 14, 2022, 10:15am UTC](https://forum.p4.org/t/error-during-running-simple-switch/318/4 "2022-05-14T10:15:31Z")

</div>

@none you can try to install p4utils in p4pi by connecting your laptop to the Raspberry Pi and use scp to upload all necessary files. Alternatively, you can use scapy to extract information from packets.
