libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

Remote Database Connection Not Working

Open Aditya-Kumar-Code opened this issue 1 year ago • 1 comments

Whenever i Run this code Which is in the official documentation of libsql-experimental .


import libsql_experimental as libsql

url = os.getenv("LIBSQL_URL")
auth_token = os.getenv("LIBSQL_AUTH_TOKEN")

con = libsql.connect(database=url, auth_token=auth_token)
cur = con.cursor()
cur.execute("CREATE TABLE users (id INTEGER, email TEXT);")


i get this error . I am using apple silicon chip.


 thread '<unnamed>' panicked at /Users/administrator/.cargo/git/checkouts/libsql-311658d335deb3b1/9de3ccc/libsql/src/hrana/hyper.rs:88:9:
there is no reactor running, must be called from the context of a Tokio 1.x runtime
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
pyo3_runtime.PanicException: there is no reactor running, must be called from the context of a Tokio 1.x runtime. 


Aditya-Kumar-Code avatar Mar 12 '24 10:03 Aditya-Kumar-Code

Do you still get this error? I am unable to replicate.

notrab avatar Nov 01 '24 12:11 notrab