Skip to content

'configvars' undefined when not within docker container #84

@ghost

Description

Describe the bug
Hi mate, this bug is only present when launching sooty with 'docker run --rm -it sooty'
I had no luck installing on Windows standalone due to some other issues but works fine in docker itself when interacting within the container using 'docker exec -it epic_brahmagupta /bin/bash', then 'python Sooty.py'

Not sure what the link is between interacting within the docker container and not, however this is the error message:

VirusTotal Report:
Traceback (most recent call last):
File "/app/Sooty.py", line 1224, in
mainMenu()
File "/app/Sooty.py", line 181, in mainMenu
switchMenu(input())
File "/app/Sooty.py", line 56, in switchMenu
repChecker()
File "/app/Sooty.py", line 393, in repChecker
params = {'apikey': configvars.data['VT_API_KEY'], 'ip': wIP}
NameError: name 'configvars' is not defined

This appears to be there for all modules, so 'configvars' is suddenly undefined when using the 'docker run --rm -it sooty' command.

Reproduction Steps
Steps to reproduce the behavior:

  1. Install with docker on windows using 1. 'docker build -t sooty', 2. 'docker run --rm -it sooty'
  2. Attempt any url/ ip check
    ...

Expected behavior
This should work in the same way as interacting within the container - check successfully, due to undefined configvars when not within.

Desktop Operating System:
-OS Win 10 x64
(MS Win 10 Pro - 10.0.19042 Build 19042)

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

BugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions