MarkBaggett / srum-dump

A forensics tool to convert the data in the Windows srum (System Resource Usage Monitor) database to an xlsx spreadsheet.
GNU General Public License v3.0
594 stars 97 forks source link

Issue running on headless linux #20

Closed mgreen27 closed 4 years ago

mgreen27 commented 5 years ago

I ran srum_dump on a centos machine I use for analysis thats headless and found with srum_dump2 I had issues when running srum_dump2.py -h with the following error: ModuleNotFoundError: No module named 'tkinter'.

Even after installing tkinter, the issue persisted. I ended up commenting out the line: import PySimpleGUI to see help so I could run the switches (I havent run version 2 before).

Running SRUM with all switches applied worked as expected.

I believe this is caused by srum_dump defaulting to GUI with no variables set. I think you should allow "-h|--help" with no variables and then import PySimpleGUI afterwards.

Matt

MarkBaggett commented 5 years ago

That’s a good suggestion. Thank you.

Mark

On Sep 8, 2019, at 11:20 PM, Matthew Green notifications@github.com wrote:

I ran srum_dump on a centos machine I use for analysis thats headless and found with srum_dump2 I had issues when running srum_dump2.py -h with the following error: ModuleNotFoundError: No module named 'tkinter'.

Even after installing tkinter, the issue persisted. I ended up commenting out the line: import PySimpleGUI to see help so I could run the switches (I havent run version 2 before).

Running SRUM with all switches applied worked as expected.

I believe this is caused by srum_dump defaulting to GUI with no variables set. I think you should allow "-h|--help" with no variables and then import PySimpleGUI afterwards.

Matt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

MarkBaggett commented 4 years ago

I've moved all of the functionality for command line processing (such as headless) to ese2csv.
https://github.com/MarkBaggett/ese-analyst