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
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...
- Triggers and call function in function p...
Hello, Today we are experiencing several issues with Appwrite Cloud. Functions triggered by events, or functions called from another function, are taking an e...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...