ashdnazg / pyreshark

A Wireshark plugin providing a simple interface for writing dissectors in Python.
https://github.com/ashdnazg/pyreshark/releases/tag/0.1.4
170 stars 33 forks source link

IOError while running wireshark from build directory for pyreshark #17

Closed praveenHp closed 9 years ago

praveenHp commented 9 years ago

Hi,

Firstly, apologies for asking trivial questions!

I'm trying to build wireshark after building from pyreshark. When I run the command WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1 ./wireshark

I get the following error.

Can't open Pyreshark init file: /home/paavu/wireshark-1.12.4/python/pyreshark.py IOError: [Errno 2] No such file or directory: '/home/paavu/wireshark-1.12.4/python/pyreshark.py'

The actual path of pyreshark.py is wireshark-1.12.4/plugins/pyreshark/python/pyreshark.py

Any help is appreciated.

Regards, Praveen

ashdnazg commented 9 years ago

Oh, I never even knew WIRESHARK_RUN_FROM_BUILD_DIRECTORY exists, so I never tried to support it.

Copying the python folder manually into wireshark-1.12.4/python (so it's wireshark-1.12.4/python/cal) may work.

praveenHp commented 9 years ago

I'll try the hack but what is the other way? make install??

ashdnazg commented 9 years ago

yup

praveenHp commented 9 years ago

Thanks. I used make install and it worked

ashdnazg commented 9 years ago

Great :)