import sqlite3 from sqlite3 import Error def create_connection(path): connection = None try: connection = sqlite3.connect(path) print("Connection to SQLite DB successful") except Error as e: print(f"The error '{e}' occurred") return connection if __name__ == '__main__': connection = create_connection("/Trayectoria/sm_app.sqlite")