Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use VirusTotal with python3 (issue #361) #446

Merged
merged 3 commits into from May 14, 2019

Conversation

Projects
None yet
4 participants
@Nergie
Copy link

commented Mar 26, 2019

Force VirusTotal analyzers to use python3 (issue #361)

  • Fix error ImportError: No module named 'StringIO'
    Old:
 import os
import StringIO
try:
    import requests
except ImportError:
pass

New:

import os
try:
    import requests
    import StringIO
except ImportError:
    from io import StringIO
    pass
  • Fix "fatal error"
    Old: print >> sys.stderr, str(results.get('verbose_msg'))
    New: print (str(results.get('verbose_msg')), sys.stderr)

saadkadhi and others added some commits Feb 16, 2019

@Nergie Nergie changed the title Use VirusTotal with python3 Use VirusTotal with python3 (issue #361) Mar 26, 2019

@Nergie Nergie changed the base branch from master to develop Mar 26, 2019

@nadouani nadouani added this to the 1.17.0 milestone Apr 2, 2019

@nadouani nadouani added the bug label Apr 2, 2019

@nadouani nadouani self-assigned this Apr 26, 2019

@nadouani nadouani referenced this pull request Apr 26, 2019

Open

Force python3 in all analyzers #361

2 of 5 tasks complete

@jeromeleonard jeromeleonard self-assigned this May 14, 2019

@jeromeleonard jeromeleonard merged commit 97a1ff4 into TheHive-Project:develop May 14, 2019

jeromeleonard added a commit that referenced this pull request May 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.