Back

[solved] Python - Import "appwrite.client" could not be resolvedPylancereportMissingImports

  • 0
  • Self Hosted
Gaddy
16 Jun, 2023, 08:36

I already installed appwrite via 'pip install appwrite' . Tried to follow the tutorial on pypi (Link - https://pypi.org/project/appwrite/) but it dosent work. I already selected the right env and atuff like that.

TL;DR
Issue: Import "appwrite.client" could not be resolved Solution: Install the correct version of the Appwrite SDK. Use 'pip install appwrite==1.2.0' to install the compatible SDK for Appwrite v1.1.2. Verify your Python version matches the SDK requirements.
Gaddy
16 Jun, 2023, 08:42

And when I do pip freeze it indicates me that appwrite is installed. appwrite==2.0.0 The Python Version I use is : 3.10.11

safwan
16 Jun, 2023, 08:54

Are you using Appwrite Cloud, or a self-hosted instance of appwrite?

safwan
16 Jun, 2023, 08:54

If self hosted, what version are you on?

Gaddy
16 Jun, 2023, 08:55

Appwrite Cloud, the version on the Web

safwan
16 Jun, 2023, 09:01

the sdk you're using seems to be the wrong version.

sdk v2.0.0 is for appwrite 1.3.x You need to use an SDK that's compatible with Appwrite v1.1.2

Gaddy
16 Jun, 2023, 09:03

You need to use an SDK that's compatible with Appwrite v1.1.2 Where can I download them? (preferable via pip)

safwan
16 Jun, 2023, 10:01

my method is to go through the appwrite sdk releases, and see which one provides support for your version of appwrite

safwan
16 Jun, 2023, 10:01

you can go on pypi and see which sdk release brought support for v1.1.2

Gaddy
16 Jun, 2023, 14:27

[solved] Python - Import "appwrite.client" could not be resolvedPylancereportMissingImports

Gaddy
16 Jun, 2023, 14:28

Thx, it worked for me with 'pip install appwrite==1.2.0'

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more