TheHive-Project / TheHive-Project/Cortex-Analyzers

[Bug] cannot import name 'Client' from 'vt'

Open
#1,141 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
490
Forks
405
Avg merge
2d 43m
Merged PRs (30d)
8

Description

Describe the bug
Hi, i was updating (git pull) Cortex-Analyzers yesterday, and i wasn't able to run virustotal scanners.

To Reproduce
Steps to reproduce the behavior:

  1. git pull
  2. for I in analyzers/*/requirements.txt; do pip3 install -U -r $I || true; done
  3. getting error from vt-py --> cannot import name 'Client' from 'vt'

Work environment

  • Client OS: Ubuntu
  • Server OS: Ubuntu 20.04.4 LTS
  • Browse type and version: Google Chrome
  • Cortex version: 3.1.6-1
  • Cortex Analyzer/Responder name: VirusTotal
  • Cortex Analyzer/Responder version: VirusTotal

Additional context
Does anyone can help me to fix this issue?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the VirusTotal analyzer and the dependencies installed from analyzers/*/requirements.txt, focusing on the vt-py import that raises the error. Reproduce the reported installation and scanner run on Ubuntu; done means the VirusTotal scanner starts without the Client import failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.