radicalxdev / kai-ai-backend

This is the Kai Teaching Assistant ai repo.
MIT License
12 stars 46 forks source link

HTTPException: 500: Failed to import module from features.quizzify.core: No module named 'features' #50

Open sanithpallerla opened 1 week ago

sanithpallerla commented 1 week ago

Scenario - 1 :

After cloning the changes in the main code base

Code snippet below

scenario 1

Config snippet below

Scenario 1 config

Error snippet below

Scenario 1 error

Scenario - 2 :

After changing the config file

Config snippet below

Scenario 2

Error snippet below

scenario 2 Error

Solution :

Patching the code until a solution is found

solution

mikhailocampo commented 1 week ago

Yes, we introduced the parent module directly in order to allow relative module imports. So when you add app to that module, it specified which module path.

@sanithpallerla Given that you have a solution, can you make a PR for this for me to review the changes and do testing into STAGING? Thanks. Optionally, if you add some documentation as a separate README or comments as appropriate, that would be helpful too!

AaronSosaRamos commented 1 week ago

@mikhailocampo I have found that the system actually works when I build a Docker Container for it. I think that @sanithpallerla is trying to run the code in his local environment.

sanithpallerla commented 1 week ago

@AaronSosaRamos Yes, I completely agree with you. @mikhailocampo I have made the necessary changes. Now it works in Local environment and Docker container and raised a PR from AI-Avengers team's end which includes expedition 7.1 too.