SigmaHQ / sigma-cli

The Sigma command line interface based on pySigma
132 stars 34 forks source link

No module named 'sigma.cli' #50

Closed nkormakov closed 4 months ago

nkormakov commented 4 months ago

Sigma successfully installed, but it throws an error (python3.10):

:~$ sigma
Traceback (most recent call last):
  File "/usr/local/bin/sigma", line 5, in <module>
    from sigma.cli.main import main
ModuleNotFoundError: No module named 'sigma.cli'
:~$ python3 -m pip install sigma-cli
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: sigma-cli in /usr/local/lib/python3.10/dist-packages (1.0.2)
Requirement already satisfied: prettytable<4.0.0,>=3.1.1 in ./.local/lib/python3.10/site-packages (from sigma-cli) (3.10.0)
Requirement already satisfied: colorama<0.5.0,>=0.4.6 in ./.local/lib/python3.10/site-packages (from sigma-cli) (0.4.6)
Requirement already satisfied: click<9.0.0,>=8.0.3 in ./.local/lib/python3.10/site-packages (from sigma-cli) (8.1.7)
Requirement already satisfied: pysigma<0.12.0,>=0.11.3 in ./.local/lib/python3.10/site-packages (from sigma-cli) (0.11.7)
Requirement already satisfied: wcwidth in ./.local/lib/python3.10/site-packages (from prettytable<4.0.0,>=3.1.1->sigma-cli) (0.2.13)
Requirement already satisfied: jinja2<4.0,>=3.1 in ./.local/lib/python3.10/site-packages (from pysigma<0.12.0,>=0.11.3->sigma-cli) (3.1.2)
Requirement already satisfied: packaging<24.0,>=22.0 in ./.local/lib/python3.10/site-packages (from pysigma<0.12.0,>=0.11.3->sigma-cli) (23.2)
Requirement already satisfied: requests<3.0,>=2.31 in ./.local/lib/python3.10/site-packages (from pysigma<0.12.0,>=0.11.3->sigma-cli) (2.31.0)
Requirement already satisfied: pyparsing<4.0,>=3.1 in ./.local/lib/python3.10/site-packages (from pysigma<0.12.0,>=0.11.3->sigma-cli) (3.1.2)
Requirement already satisfied: pyyaml<7.0,>=6.0 in ./.local/lib/python3.10/site-packages (from pysigma<0.12.0,>=0.11.3->sigma-cli) (6.0.1)
Requirement already satisfied: MarkupSafe>=2.0 in ./.local/lib/python3.10/site-packages (from jinja2<4.0,>=3.1->pysigma<0.12.0,>=0.11.3->sigma-cli) (2.1.3)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./.local/lib/python3.10/site-packages (from requests<3.0,>=2.31->pysigma<0.12.0,>=0.11.3->sigma-cli) (2.2.1)
Requirement already satisfied: charset-normalizer<4,>=2 in ./.local/lib/python3.10/site-packages (from requests<3.0,>=2.31->pysigma<0.12.0,>=0.11.3->sigma-cli) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests<3.0,>=2.31->pysigma<0.12.0,>=0.11.3->sigma-cli) (2020.6.20)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests<3.0,>=2.31->pysigma<0.12.0,>=0.11.3->sigma-cli) (3.3)
nkormakov commented 4 months ago

Removed every sigma package then removed any leftovers with find / -name "*sigma*"

Clean install has fixed the issue