Web Developer
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.
Votes
1
Replies
5
Participants
Unknown
Messages
6
Web Developer
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.
Web Developer
@Support
What appwrite package are you using, what runtime is the function, what's the code look like? This is very vague.
Web Developer
`from appwrite.client import Client
from appwrite.services.databases import Databases
from appwrite.exceptions import AppwriteException # This is causing the issue
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
Web Developer
I also tried other versions but still have same errors
instead of appwrite.exceptions could you try just appwrite.exception