Srinivas11789 / PcapXray

:snowflake: PcapXray - A Network Forensics Tool - To visualize a Packet Capture offline as a Network Diagram including device identification, highlight important communication and file extraction
GNU General Public License v2.0
1.66k stars 275 forks source link

Crash on Start #15

Closed seajaysec closed 2 years ago

seajaysec commented 6 years ago

Running python main.py on macOS 10.13.5 with Python version 2.7.15 produces error after PcapXray crashes during startup:

→ python main.py
2018-06-14 15:29:39.095 Python[26399:2499358] -[NSApplication _setup:]: unrecognized selector sent to instance 0x7f9d3963aad0
2018-06-14 15:29:39.097 Python[26399:2499358] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x7f9d3963aad0'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff50c706bb __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00007fff77e7f942 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff50d079e4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
    3   CoreFoundation                      0x00007fff50be8183 ___forwarding___ + 1443
    4   CoreFoundation                      0x00007fff50be7b58 _CF_forwarding_prep_0 + 120
    5   Tk                                  0x00007fff5d35a318 TkpInit + 467
    6   Tk                                  0x00007fff5d2d9252 Tk_Init + 1710
    7   _tkinter.so                         0x00000001021b6bc0 Tcl_AppInit + 84
    8   _tkinter.so                         0x00000001021b658b Tkinter_Create + 1061
    9   Python                              0x0000000101e58367 PyEval_EvalFrameEx + 19822
    10  Python                              0x0000000101e533e2 PyEval_EvalCodeEx + 1562
    11  Python                              0x0000000101df9ce4 function_call + 327
    12  Python                              0x0000000101ddc160 PyObject_Call + 97
    13  Python                              0x0000000101de6a0d instancemethod_call + 163
    14  Python                              0x0000000101ddc160 PyObject_Call + 97
    15  Python                              0x0000000101e5be1c PyEval_CallObjectWithKeywords + 159
    16  Python                              0x0000000101de4cef PyInstance_New + 123
    17  Python                              0x0000000101ddc160 PyObject_Call + 97
    18  Python                              0x0000000101e58354 PyEval_EvalFrameEx + 19803
    19  Python                              0x0000000101e5c489 fast_function + 196
    20  Python                              0x0000000101e5826a PyEval_EvalFrameEx + 19569
    21  Python                              0x0000000101e533e2 PyEval_EvalCodeEx + 1562
    22  Python                              0x0000000101e52dc2 PyEval_EvalCode + 32
    23  Python                              0x0000000101e747ab run_mod + 49
    24  Python                              0x0000000101e74852 PyRun_FileExFlags + 130
    25  Python                              0x0000000101e743d4 PyRun_SimpleFileExFlags + 706
    26  Python                              0x0000000101e85f54 Py_Main + 3136
    27  libdyld.dylib                       0x00007fff78a96015 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]    26399 abort      python main.py
seajaysec commented 6 years ago

This may actually be a problem solely with Brew's python installation. As a workaround, I was able to run from the /Source directory by leveraging mac's system python with these two commands:

sudo /usr/bin/python -m pip install -r ../requirements.txt /usr/bin/python main.py