ViperMonkey icon indicating copy to clipboard operation
ViperMonkey copied to clipboard

No module named colorlog

Open Fetchered opened this issue 6 years ago • 2 comments

Describe the bug

$ python2.7 vmonkey.py Traceback (most recent call last): File "vmonkey.py", line 98, in <module> import colorlog ImportError: No module named colorlog

To Reproduce Followed instructions in README to setup vmonkey: Downloaded release unzip ViperMonkey-master.zip cd ViperMonkey-master sudo python2.7 setup.py install sudo pip install -U -r requirements.txt Requirement already satisfied: oletools in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) Requirement already satisfied: prettytable in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2)) Requirement already satisfied: colorlog in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3)) Requirement already satisfied: colorama in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 4)) Requirement already satisfied: pyparsing in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 5)) Requirement already satisfied: antlr4-python2-runtime in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 6))

cd vipermonkey python2.7 vmonkey.py

Expected behavior Anything but that

Screenshots N/A

Desktop (please complete the following information):

  • OS: Ubuntu 16.04.5 (SIFT Workstation)
  • Python Version 2.7

Additional context Tried with pypy, receive a different error about unidecode, posted in a different issue.

Fetchered avatar Aug 21 '18 23:08 Fetchered

Check permissions on the directories in /usr/local/lib/python2.7/dist-packages ?

I often run into issues where root installs a python module with pip, but does so with a restrictive umask, and thus the module is there... but unreadable, and throws an ImportError like this.

emf avatar Sep 14 '18 00:09 emf

@Fetchered, did you try uninstalling and reinstalling colorlog with pip?

sudo pip uninstall colorlog
sudo pip install colorlog

decalage2 avatar Sep 14 '18 19:09 decalage2