matamorphosis / Scrummage

A Holistic OSINT and Threat Hunting Platform
GNU General Public License v3.0
502 stars 81 forks source link

NoneType' object has no attribute 'cursor' #2

Closed meetgyn closed 5 years ago

meetgyn commented 5 years ago

python3 main.py

WARNING:root:2019-09-01 16:23:58 Failed to load configuration file. WARNING:root:2019-09-01 16:23:58 Failed to connect to database. Traceback (most recent call last): File "main.py", line 27, in Cursor = Connection.cursor() AttributeError: 'NoneType' object has no attribute 'cursor' root@kronlab:/opt/ferramentas/Scrummage/lib#

matamorphosis commented 5 years ago

Installation script has been updated to now populate the database details to the config.json file. Also this error is now handled in the main.py file.

Will now close this issue.

matamorphosis commented 5 years ago

Noticed there was an issue with one of the commits, where some files were referring to "configuration/config.json" not "config/config.json", this might have been the issue you experienced.

Would recommend pulling the latest commit and re-run the install script.