uvloop does not support Windows at the moment
Describe the buggit log -n 1
I'm trying to install OpenDevin truough the make build command but it exited with an error
Setup and configuration
Windows with WSL, Python 3.11.8, Docker Desktop 4.28.0 and Node.js 20.12.1
Current version:
commit 310cd7017d669c5414f29fcb79fc2b8e6e51c552 (HEAD -> main, origin/main, origin/HEAD)
Author: Robert Brennan <[email protected]>
Date: Wed Apr 3 10:22:08 2024 -0400
Add link to LiteLLM to make-setup (#614)
* Update Makefile
* fix tab
* add note to readme
My config.toml and environment vars (be sure to redact API keys):
LLM_API_KEY="<YOUR OPENAI API KEY>"
WORKSPACE_DIR="./workspace"
My model and agent (you can see these settings in the UI):
- Model:
- Agent:
Commands I ran to install and run OpenDevin:
make build
Steps to Reproduce:
- Pulling latest Docker image
- Installing dependencies
- Building the whole project
Logs, error messages, and screenshots: error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File
"C:\Users\Maradei\AppData\Local\Programs\Python\Python311\Lib\site-packages\pipenv\patched\pip_vendor\pyproject_hooks_
in_process_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Getting requirements to build wheel did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> [18 lines of output]
[pipenv.exceptions.InstallError]: Traceback (most recent call last):
[pipenv.exceptions.InstallError]: File "C:\Users\Maradei\AppData\Local\Programs\Python\Python311\Lib\site-packages\pipenv\patched\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
Additional Context
I think I properly set up my environment but I'm unable to get it to work. Maybe the devs can help me. Thank you.
+1 I get the same error, yesterday I was able to install it normally but since today it won't anymore
+1 get the same error. Windows with WSL, Python 3.11.0, Docker Desktop 4.28.0 and Node.js 21.7.1
+1
+1
+1
+1
Remove the entire "uvloop" json section from Pipfile.lock file and that should resolve the unsupported error.
"uvloop": {
"hashes": [
"sha256:0246f4fd1bf2bf702e06b0d45ee91677ee5c31242f39aab4ea6fe0c51aedd0fd",
...
"sha256:f467a5fd23b4fc43ed86342641f3936a68ded707f4627622fa3f82a120e18256"
],
"version": "==0.19.0"
},
Ideally, the Pipfile should check for windows and exclude uvloop or, as an alternative, consider winloop.
e.g.
uvloop = {version = "*", markers = "sys_platform != 'win32'"}
borawjm's recommendation seems to help a bit. After removing uvloop from the Pipfile.lock file, setup continues but then runs into a new error:
Installing dependencies from Pipfile.lock (90ed62)... "Setting up frontend environment..." "Detect Node.js version..." Current Node.js version is 20.11.1, corepack is supported. -f was unexpected at this time. make: *** [Makefile:23: build] Error 255
Any ideas?
@leonvanzyl which shell do you use? I have a similar problem when I run "make run" with powershell. When I run it in git bash, the command works. The frontend and backend start and the frontend can be called. However, when I call the frontend I get this error:
Please check Docker is running using docker ps.
Error! Install pypiwin32 package to enable npipe:// support
Failed to stop container: Install pypiwin32 package to enable npipe:// support
Error creating controller.
and I see no indication that a container will be started after the Docker pull
after Removing the entire "uvloop" , ihave this error :
make run
"Running the app..."
"Windows_NT" was unexpected at this time.
make: *** [Makefile:43: run] Error 255
it appear after make run , and at the end of make build :
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
"Setting up frontend environment..."
"Detect Node.js version..."
Current Node.js version is 20.11.0, corepack is supported.
-f was unexpected at this time.
@waello same quedtion to you. What shell do you use?
@waello same quedtion to you. What shell do you use?
powershell
Try to use a bash e.g. git bash. That worked for me :)
We have folks up and running on WSL, so I'm going to close this one as obsolete. If folks are still struggling with uvloop errors when running on WSL, feel free to open a new issue with the template filled out.