devika
devika copied to clipboard
Flask server is not starting.
-
in
pip install -r requirements.txtinstalls all the required Python packages, including Flask, then why it is showing this error? Error: File "C:\Users\BZK2KOR\Desktop\Internship\Gen-AI\DevikaAI\devika\devika.py", line 1, infrom flask import Flask, request, jsonify, send_file, make_response ModuleNotFoundError: No module named 'flask' Note: Python packages installed in env, and running the Python server inside that env.
try using python3 devika.py
try using python3 devika.py
^ if that doesn't work make sure you are properly within your env too if using one. Issues tend to be that its not installed on current env or the path for python isn't correct like manish suggests.
I get the same.
All requirements were installed successfully, within the venv. But running python3 devika.py, as per readme instructions, gives me the above error.
Btw, the big list-of-commands code block in the readme could be confusing as starting any of the three servers (ollama, devika, UI) doesn't return to the terminal, so you have to open a new one for each. Small issue, but could trip people up as well.
I get the same. All requirements were installed successfully, within the venv. But running
python3 devika.py, as per readme instructions, gives me the above error.
Btw, the big list-of-commands code block in the readme could be confusing as starting any of the three servers (ollama, devika, UI) doesn't return to the terminal, so you have to open a new one for each. Small issue, but could trip people up as well.
If using UV you forgot the line that says "activate" but you can copy and paste or click to activate. Could be that, I ran into the issue before I went to env even though I had proper wsl dependencies, its also most likely that the requirements werent downloaded to proper pathing in that case. :) HOpe this helps!
Yes I was sure I had done it, but repeating the steps again, including the activation and re-installation of the dependencies after that, then made it work for me.
create virtual env. search how to create venv in python. install the requirements.txt
