Back

[Solved] Python runtime environment Getting a ModuleNotFoundError: No module named 'userlib.index'

  • 0
  • Functions
Hmasters
13 Aug, 2023, 19:46

Hello All,

I am trying to run a the starter function in python environment and I am getting the following error from the runtime container logs:

TL;DR
The user encountered a ModuleNotFoundError when trying to run a Python code. They solved the issue by updating the command they used for deployment to account for a change in the structure of the code. The solution was to provide the full path of the code in the deployment command.
Hmasters
13 Aug, 2023, 19:57

Using Ubuntu 20.4 on WSL and appwrite 1.3.8

Drake
13 Aug, 2023, 21:34

How exactly did you deploy the function?

Hmasters
14 Aug, 2023, 17:38

Hey sorry for the late reply, Solved the issue. It seems the structure of the started code change. But when I did a CLi deployment I used a command that did not take into account the changed structure, so it seems like it could not find the index.py file. so I had to change it and put the full path of the code.

Hmasters
14 Aug, 2023, 17:39

[Solved] Python runtime environment Getting a ModuleNotFoundError: No module named 'userlib.index'

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