laf icon indicating copy to clipboard operation
laf copied to clipboard

issues with running most scripts based on file dependency locations

Open jaw2ay opened this issue 2 years ago • 1 comments

I want to set up the db locally, attempted to run Packetforwader.py I get this error Traceback (most recent call last): File "PacketForwarderCollector.py", line 7, in from auditing.datacollectors.utils.PacketPersistence import save File "/home/jack/laf/auditing/datacollectors/utils/PacketPersistence.py", line 2, in import auditing.db.Service as db_service File "/home/jack/laf/auditing/db/init.py", line 16, in DB_HOST = os.environ["DB_HOST"] File "/usr/lib/python3.8/os.py", line 675, in getitem raise KeyError(key) from None KeyError: 'DB_HOST'

I cant seem to find an easy way to build the DB schema. Is there a quick solution for this locally?

jaw2ay avatar Dec 17 '21 16:12 jaw2ay

Hello, sorry for the delay. A couple of questions:

  • Are you using the tool locally, or with Docker?
  • If trying to run it without Docker, are you trying to use Postgres or SQLite?

I highly recommend you using Docker, since it requires less configuration.

matiassequeira avatar Jan 06 '22 20:01 matiassequeira