p4lang / tutorials

P4 language tutorials
Apache License 2.0
1.35k stars 887 forks source link

ModuleNotFoundError: No module named 'p4.config' #560

Closed MojtabaTaj closed 5 months ago

MojtabaTaj commented 7 months ago

I was trying to make the basic files but i faced this problem . can you help me to solve it ?

AdarshRawat1 commented 7 months ago

Follow Obtaining required software instructions and you should be good to go.

Do let us know if the issue persists after following the guide. PS -Similar issues were faced before by other users

AdarshRawat1 commented 7 months ago

If the issue persists, then share, which method of installation you have used. [ There are multiple ways ] If you want to know more about selecting the right method for your device [ Setup ] then you can read Installation troubleshooting Guide.

MojtabaTaj commented 7 months ago

Follow Obtaining required software instructions and you should be good to go.

Do let us know if the issue persists after following the guide. PS -Similar issues were faced before by other users

Thanks for your reply. I have installed ubuntu 22.04 . for P4 programming i installed bvmv, p4c, mininet and python3 . but when i tried to run basic tutorial, i saw this error .

AdarshRawat1 commented 7 months ago

I have installed ubuntu 22.04 . for P4 programming i installed bvmv, p4c, mininet and python3 . but when i tried to run basic tutorial, i saw this error .

I think you need to follow Quick instructions for successful install script run Guide.

AdarshRawat1 commented 7 months ago

@MojtabaTaj were you able to debug your issue ?

MojtabaTaj commented 7 months ago

@MojtabaTaj were you able to debug your issue ?

no . the issue is still standing . do you have idea how to solve the issue ?

MojtabaTaj commented 7 months ago

as i can see the problem stems from p4runtime_lib / Simple_controller/ from p4.config.v1 import p4info_pb2 / line code 22

jafingerhut commented 7 months ago

There are only a few ways to install the open source P4 development tools so that they all work together to run these tutorials. There are thousands of variations on those that do not quite work.

If you have used one of the two methods described on this page https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md then those are some of the few ways I have personally tested to work.

If you have used any other way to install open source P4 development tools, then I do not think that I have time to spend helping you debug your setup. Maybe someone else might, but they would need to know a lot of details about exactly how your system was installed.