[P4-dev] make bm error, who know how to resolve

David Hancock dhancock at cs.utah.edu
Mon Dec 19 12:32:46 EST 2016


Did you run ./install_deps.sh?  You are missing ply for some reason.

--David


On 12/19/2016 09:03 AM, dida_327 at sina.com wrote:
> I think I have done all things requested 
> on https://github.com/p4lang/p4factory, but unfortunately I can't make 
> it work correctly.
>
> is there anyone know how to do with the error below:
>
> dida at ubuntu:~/P4/P4factory/p4factory/targets/basic_routing$ make bm
> /home/dida/P4/P4factory/p4factory/submodules/p4c-behavioral/p4c_bm/shell.py 
> p4src/basic_routing.p4 
> --gen-dir=/home/dida/P4/P4factory/p4factory/targets/basic_routing/build//bm/ 
> --thrift 
> --public-inc-path=/home/dida/P4/P4factory/p4factory/targets/basic_routing/build//inc/p4_sim 
> --p4-prefix=basic_routing
> Traceback (most recent call last):
>   File 
> "/home/dida/P4/P4factory/p4factory/submodules/p4c-behavioral/p4c_bm/shell.py", 
> line 20, in <module>
>     from p4_hlir.main import HLIR
>   File "/usr/local/lib/python2.7/dist-packages/p4_hlir/main.py", line 
> 16, in <module>
>     from frontend.tokenizer import *
>   File 
> "/usr/local/lib/python2.7/dist-packages/p4_hlir/frontend/tokenizer.py", 
> line 15, in <module>
>     from ply import lex
> ImportError: No module named ply
> make: *** [bm_tenjin_output_oldest] Error 1
>
> thanks a lot!
>
>
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20161219/177cbbfc/attachment-0002.html>


More information about the P4-dev mailing list