vysakh0 / dravid

AI powered cli coding agent that monitors your dev/test server and fixes errors and adds features
MIT License
192 stars 4 forks source link

Cannot start --hf due to uvicorn error #3

Closed ldorigo closed 2 months ago

ldorigo commented 3 months ago
ℹ Starting server monitor...
Starting server with command: uvicorn src.main:app --reload
ℹ Server monitor started. Press Ctrl+C to stop.
INFO:     Will watch for changes in these directories: ['/home/ldorigo/Dropbox/projects/pybooks/src/detectron2_server']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [135019] using StatReload
<frozen importlib._bootstrap>:488: UserWarning: enum class uv_fs_event not importable from uvloop.includes.uv. You are probably using a cpdef enum declared in a .pxd file that does not have a .py  or .pyx file.
Process SpawnProcess-1:
Traceback (most recent call last):
  File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 78, in subprocess_started
    target(sockets=sockets)
  File "/usr/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run

Been playing with this, seems promising, but cannot start the auto-fixing mode.

vysakh0 commented 3 months ago

@ldorigo Oh got it, I'll replicate this and update here.

vysakh0 commented 3 months ago
Screenshot 2024-07-18 at 12 35 46 AM Screenshot 2024-07-18 at 12 37 45 AM

Couldn't exactly replicate the issue, is the command working fine without being part of the drd --hf command as a params? @ldorigo

ldorigo commented 3 months ago

Oh, so the uvicorn command is something drd is using to run my project? I thought drd itself was using a uvicorn server for something internally. Then it makes sense that it doesn't work !