Netflix / security_monkey

Security Monkey monitors AWS, GCP, OpenStack, and GitHub orgs for assets and their changes over time.
Apache License 2.0
4.36k stars 800 forks source link

monkey db upgrade fails #1236

Closed siddheshsalunke closed 4 years ago

siddheshsalunke commented 4 years ago

Please make sure that you have checked the boxes:

Description of issue:

Hi team, i'm trying to run:

monkey db upgrade

And getting error like:

Traceback (most recent call last):
  File "/usr/local/bin/monkey", line 11, in <module>
    load_entry_point('security-monkey', 'console_scripts', 'monkey')()
  File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2862, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2462, in load
    return self.resolve()
  File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 2468, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/dist-packages/security_monkey-1.1.1-py3.6.egg/security_monkey/__init__.py", line 247, in <module>
    from security_monkey.export import export_blueprint
  File "/usr/local/lib/python3.6/dist-packages/security_monkey-1.1.1-py3.6.egg/security_monkey/export/__init__.py", line 127
    search = args['searchconfig'].split(',')
                                           ^
TabError: inconsistent use of tabs and spaces in indentation

What looks like probable issue?

mikegrima commented 4 years ago

Is this from the latest git pull?

mikegrima commented 4 years ago

Looking at the source code of the file, I don't see any tab characters in there.