# general

Aayush Jain

12/13/2022, 11:14 AM
👋 Hello, team! I am new to osquery. Tried osquery python extension to execute osqueryi commands and stuck on this error.
Could not connect to any of ['/tmp/pyosqsockndnbir6z']
My code was :
Copy code
import osquery
 instance = osquery.SpawnInstance()
 result = instance.client.query("SELECT interface FROM interface_details;")
Is the correct way or I am doing something wrong ?

Mike Myers

12/14/2022, 1:00 AM
Is this error from the extension or from osqueryi? If you run with
you might get additional context for the error. It could be that the extension or osqueryi is not being run with enough privilege to open the Thrift channel between them