ns3
[ns3] PyViz visualizer: not enabled (Python Bindings are needed but not enabled) 문제 해결
crystal bang
2022. 1. 13. 17:48
NR module을 request해서 installation하고 example file 수행까지 모두 마쳤다.
시뮬레이션 하다보면 visualization tool이 반드시 필요해서 pyviz 사용하려고 보니..
./waf --run /scratch/example --vis
에서 --vis가 안먹히고 에러 발생
./waf configure --enable-examples --enable-tests로 확인해보니
python binding을 찾을 수 없다한다.
[solved]
find -iname pybindgen
검색 결과, 나는 NR module 설치하느라 기존에 설치한 ns-allinone-3.35에서 작업하지 않고 ns-3-dev에서 작업 중이었는데 python binding이 ns-allinone-3.35 디렉토리에는 설치되어 있었음.
해당 경로의 python binding folder 자체 복사해 새로 설치한 ns-3-dev directory와 같은 레벨에 복붙하니 python binding 인식하고 --vis 정상 동작
정확한 해결 방안은 아닌 것 같지만.. 해결되었으니 됐다 .. :)