OpenDevin icon indicating copy to clipboard operation
OpenDevin copied to clipboard

windows getting AttributeError: module 'os' has no attribute 'getuid'. Did you mean: 'getpid'?

Open borick opened this issue 3 months ago • 0 comments

Describe the bug getting the error AttributeError: module 'os' has no attribute 'getuid'. Did you mean: 'getpid'? on windows updated to latest in the main branch

Steps to Reproduce

  1. run uvicorn opendevin.server.listen:app --port 3000
  2. cd frontend; npm run start -- --port 3001
  3. wait for UI to load get the error in the uvicorn shell - "

Expected behavior OpenDevin works

Actual behavior

PS C:\Users\boris\thirdparty\OpenDevin> uvicorn opendevin.server.listen:app --port 3000 INFO: Started server process [111408] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:3000 (Press CTRL+C to quit) INFO: ('127.0.0.1', 54050) - "WebSocket /ws" [accepted] INFO: connection open Task exception was never retrieved future: <Task finished name='create controller' coro=<Session.create_controller() done, defined at C:\Users\boris\thirdparty\OpenDevin\opendevin\server\session.py:114> exception=AttributeError("module 'os' has no attribute 'getuid'")> Traceback (most recent call last): File "C:\Users\boris\thirdparty\OpenDevin\opendevin\server\session.py", line 132, in create_controller self.controller = AgentController(self.agent, directory, callbacks=[self.on_agent_event]) File "C:\Users\boris\thirdparty\OpenDevin\opendevin\controller_init_.py", line 33, in init self.command_manager = CommandManager(workdir) File "C:\Users\boris\thirdparty\OpenDevin\opendevin\controller\command_manager.py", line 24, in init self.shell = DockerInteractive(id="default", workspace_dir=dir) File "C:\Users\boris\thirdparty\OpenDevin\opendevin\sandbox\sandbox.py", line 51, in init uid = os.getuid() AttributeError: module 'os' has no attribute 'getuid'. Did you mean: 'getpid'?

Additional context Windows in PowerShell

borick avatar Mar 26 '24 00:03 borick