Import "appwrite.exceptions" could not be resolved I tried using many versions of appwrite but this error still occuring. Please help me to fix it.
@Support
What appwrite package are you using, what runtime is the function, what's the code look like? This is very vague.
`from appwrite.client import Client from appwrite.services.databases import Databases from appwrite.exceptions import AppwriteException # This is causing the issue
Appwrite client initialization
try:
appwrite_client = Client()
appwrite_client.set_endpoint(APPWRITE_ENDPOINT)
\
.set_project(APPWRITE_PROJECT_ID)
\
.set_key(APPWRITE_API_KEY)
databases = Databases(appwrite_client)
except Exception as e:
print(f"Failed to initialize Appwrite client: {e}")`
Python 3.13.3 Name: appwrite Version: 9.0.3
I also tried other versions but still have same errors
instead of appwrite.exceptions could you try just appwrite.exception
Recommended threads
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?