Cortex-Analyzers icon indicating copy to clipboard operation
Cortex-Analyzers copied to clipboard

[Bug] CrowdSec Analyzer: requests module missing

Open ebdavison opened this issue 2 years ago • 1 comments

Describe the bug Running crowdsec analyzer results in an error.

Error:

Traceback (most recent call last):
  File "/worker/Crowdsec/crowdsec_analyzer.py", line 4, in <module>
    from crowdsec_api import Crowdsec
  File "/worker/Crowdsec/crowdsec_api.py", line 2, in <module>
    from requests.compat import urljoin
ModuleNotFoundError: No module named 'requests'

To Reproduce Steps to reproduce the behavior:

  1. enable crowdsec analyzer
  2. run crowdsec analyzer

Expected behavior Proper results from the use of the crowdsec analyzer

Complementary information If applicable, add screenshots and any additional information that might help explain your problem.

Work environment

  • Client OS: fedora linux
  • Server OS: fedora linux / docker install
  • Browse type and version: firefox 118.0.1 (64-bit)
  • Cortex version:
  • Cortex Analyzer/Responder name: CrowdSec Analyzer
  • Cortex Analyzer/Responder version: 1.0

Possible solutions If applicable, indicate possible solutions to the problem.

Additional context Add any other context about the problem here.

ebdavison avatar Oct 12 '23 04:10 ebdavison

Linked to #1224

LaurenceJJones avatar Oct 16 '23 12:10 LaurenceJJones