Skip to content

Commit

Permalink
Run with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Jan 21, 2025
1 parent 87d1e9c commit 1b5fbe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhands/runtime/impl/local/local_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def connect(self):
server_port=self._host_port,
plugins=self.plugins,
app_config=self.config,
python_prefix=[],
python_prefix=['poetry', 'run'],
override_user_id=self._user_id,
override_username=self._username,
)
Expand Down Expand Up @@ -276,7 +276,7 @@ def _find_available_port(self, port_range, max_attempts=5):
def _wait_until_alive(self):
"""Wait until the server is ready to accept requests."""
if self.server_process and self.server_process.poll() is not None:
raise RuntimeError('Server process died')
raise RuntimeError(f'Server process died with exit code {self.server_process.poll()}')

try:
response = self.session.get(f'{self.api_url}/alive')
Expand Down

0 comments on commit 1b5fbe7

Please sign in to comment.