appwrite/sdk-generator

๐Ÿ› Bug Report: Python SDK Local variable path referenced before assignament

gepd opened this issue ยท 4 comments

gepd commented

๐Ÿ‘Ÿ Reproduction steps

image

Image got from https://discord.com/channels/564160730845151244/1146544839614287923

๐Ÿ‘ Expected behavior

run createDocument

๐Ÿ‘Ž Actual Behavior

It returns error Local variable path referenced before assignament

Looking the code https://github.com/appwrite/sdk-for-python/blob/master/appwrite/services/databases.py#L924 path var is called api_path but referenced as path later in the code: https://github.com/appwrite/sdk-for-python/blob/master/appwrite/services/databases.py#L938-L939

๐ŸŽฒ Appwrite version

Version 0.11.x

๐Ÿ’ป Operating system

Linux

๐Ÿงฑ Your Environment

No response

๐Ÿ‘€ Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

๐Ÿข Have you read the Code of Conduct?

This is also repeated in other function definitions too.

versun commented

I also get same error in cloud
image

Thank you so much for opening this issue @gepd . I have passed to my team and as soon as we have some feedback on this I will let you know ASAP.

Edit: Our team is working on fixing the SDK.

versun commented

@joeyouss
I've found the reason.
In the file databases.py, the original variable "path" was changed to "api_path"(Last commit)
but the modification was only made in the definition and not in all the places where it is called.
2023-09-01

As a result, all functions related to databases will fail