๐ Bug Report: Python SDK Local variable path referenced before assignament
gepd opened this issue ยท 4 comments
๐ Reproduction steps
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?
- I have read the Code of Conduct
This is also repeated in other function definitions too.
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.
@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.
As a result, all functions related to databases will fail