-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug on Windows #142
Comments
What exactly do you mean with "did not work"? Which step didn't work? Did you get any error message? |
After I runned front and backend some error was throwing up like maybe something with Docker? I used this steps above from the readme but I added the venv and set it for Windows. |
Can I contact you somehow? |
There is an issue with the tag of the docker image. The script is looking for the :latest image while it's not labeled as is on docker hub.
|
The readme is missing content because there is nothing written that you need to use Docker |
I'm just a standard user of the project that faced the same issue and willing to help |
Ah okay I got it. Thank you. |
Can I make a Discord Server for it? |
uvicorn opendevin.server.listen:app --port 3000 |
What version of python are you using? This syntax has been introduced in 3.10. https://docs.python.org/3/whatsnew/3.10.html |
Looks like we've documented the need for latest python and for docker. Going to close this one, but let us know if you need more help! |
Python version 3.12.2,I have changed Python version to 3.10,the exception still exists; |
Hrmm. That error message is almost always an indication of an old python version. I wonder if uvicorn is using an old version of python somewhere on your machine? What does
|
I get this C:\Users\pierr>uvicorn --version |
Very strange. I'm totally unable to reproduce. Granted I'm on Linux, but it shouldn't really matter--it's a python typing error. ❯ /home/rbren/.asdf/installs/python/3.10.11/bin/uvicorn --version
Running uvicorn 0.29.0 with CPython 3.10.11 on Linux
❯ /home/rbren/.asdf/installs/python/3.10.11/bin/uvicorn opendevin.server.listen:app --port 3000
INFO: Started server process [2153603]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:3000 (Press CTRL+C to quit) Everything I'm seeing online is cases of "I thought it was running python 3.10, but it turned out it was linking into an old version." Maybe try reinstalling python, uvicorn, or |
(env) PS C:\opendevin> python -m pip install -r requirements.txt |
I runned this but it did not worked.
Step 1: Set up the OpenAI API key
Step 2: Create a project folder
C:\opendevin
Step 3: Create a virtual environment
cd C:\opendevin
python -m venv env
Step 4: Activate the virtual environment
env\Scripts\activate
Step 5: Set environment variables
set OPENAI_API_KEY=your_api_key_here
set WORKSPACE_DIR=C:\opendevin
Step 6: Install dependencies
python -m pip install -r requirements.txt
Step 7: Start the backend
uvicorn opendevin.server.listen:app --port 3000
Step 8: Start the frontend (new terminal)
cd C:\opendevin\frontend
npm install
npm run start -- --port 3001
You can now access OpenDevin at http://localhost:3001 in your browser.
Remember to deactivate the virtual environment when you're done by typing
deactivate
in the command prompt.The text was updated successfully, but these errors were encountered: