Error message
objc[30548]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[30548]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process.
Works properly when you do
OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES python3 filename.py
import chromadb
import lancedb
from robyn import Response, Robyn, jsonify, Request
from langchain.vectorstores import LanceDB
# from langchain.documents import Document
app = Robyn(__file__)
db = lancedb.connect("./.lancedb_test")
data = [{"vector": [1.1, 1.2], "lat": 45.5, "long": -122.7}, {"vector": [0.2, 1.8], "lat": 40.1, "long": -74.1}]
@app.get("/")
def home():
# print("This is the new table", db.open_table("my_table_new") )
data = [
{"vector": [3.1, 4.1], "item": "foo", "price": 10.0},
{"vector": [5.9, 26.5], "item": "bar", "price": 20.0},
]
# Synchronous client
tbl = db.open_table("my_table2")
tbl.add(data)
return {
"sucecss": True
}
if __name__ == "__main__":
app.start()
Mac OS
python --version
)3.10
0.54.5
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too