rabobank-cdc/DeTTECT

Mac zsh

Closed this issue · 5 comments

When running the dettect.py script in zsh, I'm getting an error that the "import xslxwriter" module is not found. I ran a git clone of the webpage so all the files are there. I'm running Python3.12

Hi @CarolinaMoonshine

xlsxwriter is one of the python modules that is needed. This, and others, are not installed by default. So you need to install those libraries. That can be done easily by using pip:

pip install -r requirements.txt

I'm currently using a MacBook with zsh. Pip is not an option. Trying to install with "brew" doesn't seem to work to well either. Has any testing/development been done to have this work on Mac?

Hi @CarolinaMoonshine

Can you explain why pip is not an option? I mainly develop on macOS and using bash together with python3 and pip. This works perfectly fine.

Just tried zsh for you and it works too:

rubinatorz@MBP DeTTECT % python dettect.py d -ft sample-data/techniques-administration-endpoints.yaml -l --local-stix-path ../cti
File written:   output/detection_example.json
rubinatorz@MBP DeTTECT % echo $0                                                                                                 
zsh

I would advise to look into installing python3 and pip before you continue. Running python on macOS is fully supported and installing python packages with pip should be working.

Good luck!

Problem solved by running the following command:

python -m pip install -r requirements.txt

The command was ran from /opt/homebrew/opt/DeTTECT.

Usefull commands were:

Great! Closing the issue now.