stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.45k stars 2.4k forks source link

[Bug]devika.py runs but does not show "Serving Flask app 'devika'" #492

Closed tblock-zz closed 6 months ago

tblock-zz commented 6 months ago

Describe the bug

I am following the installation guidlines on my system with ubuntu 22.04 LTS. Devika starts with: 24.04.26 13:17:27: root: INFO : Initializing Devika... 24.04.26 13:17:27: root: INFO : checking configurations... 24.04.26 13:17:27: root: INFO : Initializing Prerequisites Jobs... 24.04.26 13:17:29: root: INFO : Loading sentence-transformer BERT models... 24.04.26 13:17:31: root: INFO : BERT model loaded successfully. 24.04.26 13:17:32: root: INFO : Ollama available 24.04.26 13:17:32: root: INFO : Devika is up and running! but does not show

When I look at netstat -aon | grep "127.0.0.1:" I see many tcp 0 0 127.0.0.1:11434 0.0.0.0: LISTEN off (0.00/0/0) tcp 0 0 127.0.0.1:37677 0.0.0.0: LISTEN off (0.00/0/0) tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN off (0.00/0/0)

When I start in ui bun run start or bun run dev I only see a plain line without URL like $ vite dev I do not see 127.0.0.1:3000, thus the UI is not available.

Expected behavior

I would expect that I can start the UI as shown in the video demo.

Screenshots and logs

must share logs from frontend or backend. also If applicable, add screenshots to help explain your problem.

Configuration

pip freeze: aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.6.0 anthropic==0.25.6 anyio==4.3.0 arabic-reshaper==3.0.0 asn1crypto==1.5.1 async-timeout==4.0.3 attrs==23.2.0 backoff==2.2.1 beautifulsoup4==4.12.3 bidict==0.23.1 blinker==1.7.0 bun==0.0.8 cachetools==5.3.3 certifi==2024.2.2 cffi==1.16.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 cryptography==42.0.5 cssselect2==0.7.0 curl_cffi==0.6.3 distro==1.9.0 dnspython==2.6.1 duckduckgo_search==5.3.0 eventlet==0.36.1 exceptiongroup==1.2.1 fastlogging==1.0.0 filelock==3.13.4 Flask==3.0.3 Flask-Cors==4.0.0 Flask-SocketIO==5.3.6 frozenlist==1.4.1 fsspec==2024.3.1 gevent==24.2.1 gevent-websocket==0.10.1 gitdb==4.0.11 GitPython==3.1.43 google-ai-generativelanguage==0.6.2 google-api-core==2.18.0 google-api-python-client==2.127.0 google-auth==2.29.0 google-auth-httplib2==0.2.0 google-generativeai==0.5.2 googleapis-common-protos==1.63.0 greenlet==3.0.3 groq==0.5.0 grpcio==1.62.2 grpcio-status==1.62.2 h11==0.14.0 html5lib==1.1 httpcore==1.0.5 httplib2==0.22.0 httpx==0.27.0 huggingface-hub==0.22.2 idna==3.7 iniconfig==2.0.0 itsdangerous==2.2.0 Jinja2==3.1.3 joblib==1.4.0 keybert==0.8.4 lxml==5.2.1 Markdown==3.6 markdown-it-py==3.0.0 markdownify==0.12.1 MarkupSafe==2.1.5 mdurl==0.1.2 mistletoe==1.3.0 mistralai==0.0.8 mpmath==1.3.0 multidict==6.0.5 netlify-py==0.1.0 networkx==3.3 nodejs==0.1.1 numpy==1.26.4 nvidia-cublas-cu12==12.1.3.1 nvidia-cuda-cupti-cu12==12.1.105 nvidia-cuda-nvrtc-cu12==12.1.105 nvidia-cuda-runtime-cu12==12.1.105 nvidia-cudnn-cu12==8.9.2.26 nvidia-cufft-cu12==11.0.2.54 nvidia-curand-cu12==10.3.2.106 nvidia-cusolver-cu12==11.4.5.107 nvidia-cusparse-cu12==12.1.0.106 nvidia-nccl-cu12==2.20.5 nvidia-nvjitlink-cu12==12.4.127 nvidia-nvtx-cu12==12.1.105 ollama==0.1.8 openai==1.23.6 optional-django==0.1.0 orjson==3.10.1 oscrypto==1.3.0 packaging==24.0 pdfminer.six==20231228 pillow==10.3.0 playwright==1.43.0 pluggy==1.5.0 proto-plus==1.23.0 protobuf==4.25.3 pyasn1==0.6.0 pyasn1_modules==0.4.0 pycparser==2.22 pydantic==2.7.1 pydantic_core==2.18.2 pyee==11.1.0 Pygments==2.17.2 pyHanko==0.23.2 pyhanko-certvalidator==0.26.3 pyparsing==3.1.2 pypdf==4.2.0 pypng==0.20220715.0 pytest==8.1.1 pytest-base-url==2.1.0 pytest-playwright==0.4.4 python-bidi==0.4.2 python-engineio==4.9.0 python-slugify==8.0.4 python-socketio==5.11.2 PyYAML==6.0.1 qrcode==7.4.2 regex==2024.4.16 reportlab==4.0.9 requests==2.31.0 rich==13.7.1 rsa==4.9 safetensors==0.4.3 scikit-learn==1.4.2 scipy==1.13.0 sentence-transformers==2.7.0 sidetrack==2.0.1 simple-websocket==1.0.0 six==1.16.0 smmap==5.0.1 sniffio==1.3.1 soupsieve==2.5 SQLAlchemy==2.0.29 sqlmodel==0.0.16 svglib==1.5.1 sympy==1.12 text-unidecode==1.3 threadpoolctl==3.4.0 tiktoken==0.6.0 tinycss2==1.3.0 tokenizers==0.19.1 toml==0.10.2 tomli==2.0.1 torch==2.3.0 tqdm==4.66.2 transformers==4.40.1 triton==2.3.0 typing_extensions==4.11.0 tzlocal==5.2 uritemplate==4.1.1 uritools==4.0.2 urllib3==2.2.1 webencodings==0.5.1 Werkzeug==3.0.2 wsproto==1.2.0 xhtml2pdf==0.2.15 yarl==1.9.4 zope.event==5.0 zope.interface==6.3

Python 3.10.12 bun --version 1.1.4

ARajgor commented 6 months ago

it will not serving flask app 'devika' cause the werkzeug log is off. but if you see devika up and running then it's working fine.