Back

[CLOSED] 'local variable 'path' referenced before assignment' in Python SDK

  • 0
  • Databases
  • Web
bladmist
30 Aug, 2023, 20:39

Fails to connect to my db. Returns a weird 'local variable 'path' referenced before assignment'. As shown in the screenshot, it works perfectly with nodejs.

TL;DR
The user is reporting an issue with the Python SDK for Appwrite. They mention that the issue has been resolved and released in version 3.0.1 of the SDK. The user also mentions that the issue is related to a variable called 'api_var' and not 'path'. There is no specific solution mentioned in the thread, but the user seems to have resolved the issue by updating to the latest version of the SDK.
bladmist
30 Aug, 2023, 20:41

I have my id variables saved but they're not shown in this image

Guille
30 Aug, 2023, 21:11

What is your python sdk version?

bladmist
30 Aug, 2023, 21:29

"appwrite": "^11.0.1" @Guille

Guille
30 Aug, 2023, 21:40

yeah it seems to be a sdk bug: https://github.com/appwrite/sdk-for-python/blob/master/appwrite/services/databases.py#L924

The var is called api_var and not path

Guille
30 Aug, 2023, 21:53
bladmist
30 Aug, 2023, 21:57

ah I see. Thanks. Hopefully it gets fixed soon. Much easier to push from my python script rather than my js.

bladmist
1 Sep, 2023, 14:09

@Steven Hi bro, any chance the team can complete this? I’m looking at the issue on GitHub and it seems that a fix has been reviewed but waiting commit. I’ve paused my development cause of this. Really appreciate the work y’all do.

Drake
1 Sep, 2023, 14:37

yes, we're on it

Drake
1 Sep, 2023, 15:12

'local variable 'path' referenced before assignment' in Python SDK

Guille
1 Sep, 2023, 17:23
Guille
1 Sep, 2023, 17:23

[CLOSED] 'local variable 'path' referenced before assignment' in Python SDK

bladmist
1 Sep, 2023, 19:43

Brilliant! Thanks a lot!

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