Back

[SOLVED] ModuleNotFoundError

  • 2
  • Self Hosted
  • Functions
A
14 Oct, 2024, 08:41

Hi, the functions were working with no errors, when suddenly got the error ModuleNotFoundError: No module named 'appwrite.input_file' I did'n make any changes.

TL;DR
Developers were encountering a ModuleNotFoundError issue, which was solved by using Payload instead in version 7.0 of the Appwrite Python SDK. One developer downgraded to version 6.0.0 as a workaround. Possible causes suggested were incorrect file object handling or issues with the SDK installation. Restarting Appwrite was advised to resolve the error.
hamed
14 Oct, 2024, 09:13

Try restarting the appwrite to see if it resolves the error

A
14 Oct, 2024, 11:54

Restarted, but didn't help. Do you have any idea what could have happened?

hamed
14 Oct, 2024, 12:02

Ooh I see,

hamed
14 Oct, 2024, 12:06

Sorry, but I have no clue. What do the appwrite logs tell you?

A
14 Oct, 2024, 12:07

Logs: No response was recorded.

hamed
14 Oct, 2024, 12:11

Hmm, I think that indicates that the appwrite package is either not installed correctly or there is a problem with your python environment

A
14 Oct, 2024, 12:19

I will check this. The point is that I have the same code for over 2 months and now I got this error.

A
14 Oct, 2024, 12:19

Thank you!

A
14 Oct, 2024, 15:13

tried all possible code edits, in the end, when trying to upload the files, I get ModuleNotFoundError or An unexpected error occurred: 'bytes' object has no attribute 'size'

hamed
14 Oct, 2024, 15:35

are you sure you're using the correct version of the appwrite sdk? this error indicates that the file upload process is failing due to incorrect handling of the file object?

A
15 Oct, 2024, 07:27

Downgraded to Appwrite Python SDK version 6.0.0

A
15 Oct, 2024, 07:28

[SOLVED] ModuleNotFoundError

A
15 Oct, 2024, 07:29

[Solved] ModuleNotFoundError

Tobias
15 Oct, 2024, 11:04

I am experiencing exactly the same problem.

Kenny
15 Oct, 2024, 16:36

[SOLVED] ModuleNotFoundError

Digi Nomad
12 Nov, 2024, 22:18

seems this is no longer available in the latest 7.0 😦

Digi Nomad
12 Nov, 2024, 22:19

what should I call ?

Digi Nomad
12 Nov, 2024, 23:00

Found it ! Use Payload instead in 7.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