Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Python SDK Local variable path referenced before assignament #704

Closed
2 tasks done
gepd opened this issue Aug 30, 2023 · 4 comments · Fixed by appwrite/sdk-for-python#70
Closed
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@gepd
Copy link

gepd commented Aug 30, 2023

👟 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?

@gepd gepd added the bug Something isn't working label Aug 30, 2023
@brian-o-mars
Copy link

This is also repeated in other function definitions too.

@versun
Copy link

versun commented Aug 31, 2023

I also get same error in cloud
image

@joeyouss
Copy link

joeyouss commented Aug 31, 2023

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 joeyouss self-assigned this Aug 31, 2023
@versun
Copy link

versun commented Aug 31, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants