PetroMind_AI / backend /debug_e2b.py
gauthamnairy's picture
Upload 41 files
609c821 verified
raw
history blame contribute delete
461 Bytes
try:
from e2b_code_interpreter import Sandbox
print("Imported Sandbox")
sb = Sandbox.create()
print("Sandbox created successfully via .create()")
sb.close()
except Exception as e:
print(f"Error with .create(): {e}")
try:
sb = Sandbox()
print("Sandbox instantiated successfully via constructor")
sb.close()
except Exception as e2:
print(f"Error with constructor: {e2}")