Skip to content

UnboundLocalError: local variable 'path' referenced before assignment #547

Closed
@aztr4x

Description

@aztr4x

webapp_1 | [I 230305 21:25:23 rootthebox:262] Environment Configuration (SQL_DIALECT): sqlite
webapp_1 | [I 230305 21:25:23 rootthebox:1139] Running Docker Setup
webapp_1 | [I 230305 21:25:23 ConfigHelpers:15] Saving current config to: files/rootthebox.cfg
webapp_1 | [] Switching CWD to '/opt/rtb'
webapp_1 | [
] 21:25:23 : Creating the database ...
webapp_1 | Traceback (most recent call last):
webapp_1 | File "/opt/rtb/rootthebox.py", line 1147, in
webapp_1 | setup()
webapp_1 | File "/opt/rtb/rootthebox.py", line 100, in setup
webapp_1 | from setup.create_database import create_tables, engine, metadata
webapp_1 | File "/opt/rtb/setup/create_database.py", line 21, in
webapp_1 | from models import engine
webapp_1 | File "/opt/rtb/models/init.py", line 75, in
webapp_1 | engine = create_engine(str(db_connection), pool_pre_ping=True)
webapp_1 | File "/opt/rtb/libs/DatabaseConnection.py", line 63, in str
webapp_1 | db_conn = self._sqlite()
webapp_1 | File "/opt/rtb/libs/DatabaseConnection.py", line 112, in _sqlite
webapp_1 | logging.debug("Created rootthebox database at: %s" % path)
webapp_1 | UnboundLocalError: local variable 'path' referenced before assignment
rootthebox_webapp_1 exited with code 1

2023-03-05 15_25_58-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions