OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: make states poetry is not installed

Open josephykwang opened this issue 1 year ago • 11 comments

Is there an existing issue for the same bug?

  • [X] I have checked the troubleshooting document at https://opendevin.github.io/OpenDevin/modules/usage/troubleshooting
  • [X] I have checked the existing issues.

Describe the bug

curl -sSL https://install.python-poetry.org | python3.11 - 
Retrieving Poetry metadata

The latest version (1.8.3) is already installed.
(venv) jwang@jwang-JMLWV6CL9W OpenDevin % make
Building project...
Checking dependencies...
Checking system...
macOS detected.
Checking Python installation...
Python 3.11.8 is already installed.
Checking npm installation...
npm 10.5.0 is already installed.
Checking Node.js installation...
Node.js 21.7.1 is already installed.
Checking Docker installation...
Docker version 26.0.0, build 2ae903e is already installed.
make[2]: poetry: Command not found
Checking Poetry installation...
Poetry is not installed. You can install poetry by running the following command, then adding Poetry to your PATH:
 curl -sSL https://install.python-poetry.org | python3.11 -
More detail here: https://python-poetry.org/docs/#installing-with-the-official-installer
make[2]: *** [check-poetry] Error 1
make[1]: *** [check-dependencies] Error 2
make: *** [build] Error 2

Current Version

git branch
* (HEAD detached at 0.5.3)
  main

Installation and Configuration

run

Model and Agent

NA

Reproduction Steps

  1. run make

Logs, Errors, Screenshots, and Additional Context

Retrieving Poetry metadata

The latest version (1.8.3) is already installed.
(venv) jwang@jwang-JMLWV6CL9W OpenDevin % make
Building project...
Checking dependencies...
Checking system...
macOS detected.
Checking Python installation...
Python 3.11.8 is already installed.
Checking npm installation...
npm 10.5.0 is already installed.
Checking Node.js installation...
Node.js 21.7.1 is already installed.
Checking Docker installation...
Docker version 26.0.0, build 2ae903e is already installed.
make[2]: poetry: Command not found
Checking Poetry installation...
Poetry is not installed. You can install poetry by running the following command, then adding Poetry to your PATH:
 curl -sSL https://install.python-poetry.org | python3.11 -
More detail here: https://python-poetry.org/docs/#installing-with-the-official-installer
make[2]: *** [check-poetry] Error 1
make[1]: *** [check-dependencies] Error 2```

josephykwang avatar May 22 '24 17:05 josephykwang

You can install poetry by running the following command, then adding Poetry to your PATH: curl -sSL https://install.python-poetry.org | python3.11 -

SmartManoj avatar May 23 '24 04:05 SmartManoj

Did that . However when running make , it states it is not installed. See the logSent from my iPhoneOn May 22, 2024, at 9:20 PM, மனோஜ்குமார் பழனிச்சாமி @.***> wrote:

You can install poetry by running the following command, then adding Poetry to your PATH: curl -sSL https://install.python-poetry.org | python3.11 -

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

josephykwang avatar May 23 '24 04:05 josephykwang

reopen the terminal

SmartManoj avatar May 23 '24 05:05 SmartManoj

What do you mean? Please see the log I copied to the bug issue Sent from my iPhoneOn May 22, 2024, at 10:10 PM, மனோஜ்குமார் பழனிச்சாமி @.***> wrote: reopen the shell

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

josephykwang avatar May 23 '24 13:05 josephykwang

You can install Poetry by running the following command:

curl -sSL install.python-poetry.org | python3.11 -

After running the command, you'll need to reload your shell configuration to ensure that the changes take effect. You can do this by running:

source ~/.bashrc

Reopening the terminal achieves the same result.

If you still encounter issues, please share the log for further assistance.

SmartManoj avatar May 23 '24 13:05 SmartManoj

open a new terminal and then run the following``` @.*** workspace % cd OpenDevin

@.*** OpenDevin % bash

The default interactive shell is now zsh.

To update your account to use zsh, please run chsh -s /bin/zsh.

For more details, please visit https://support.apple.com/kb/HT208050.

bash-3.2$ source venv/bin/activate

(venv) bash-3.2$  curl -sSL https://install.python-poetry.org | python3.11 -

Retrieving Poetry metadata

The latest version (1.8.3) is already installed.

(venv) bash-3.2$ make

Building project...

Checking dependencies...

Checking system...

macOS detected.

Checking Python installation...

Python 3.11.8 is already installed.

Checking npm installation...

npm 10.5.0 is already installed.

Checking Node.js installation...

Node.js 21.7.1 is already installed.

Checking Docker installation...

Docker version 26.0.0, build 2ae903e is already installed.

make[2]: poetry: Command not found

Checking Poetry installation...

Poetry is not installed. You can install poetry by running the following command, then adding Poetry to your PATH:

 curl -sSL https://install.python-poetry.org | python3.11 -

More detail here: https://python-poetry.org/docs/#installing-with-the-official-installer

make[2]: *** [check-poetry] Error 1

make[1]: *** [check-dependencies] Error 2

make: *** [build] Error 2

    On Thursday, May 23, 2024 at 06:36:15 AM PDT, மனோஜ்குமார் பழனிச்சாமி ***@***.***> wrote:  
 
 


You can install Poetry by running the following command:
curl -sSL install.python-poetry.org | python3.11 -
After running the command, you'll need to reload your shell configuration to ensure that the changes take effect. You can do this by running:
source ~/.bashrc
Reopening the terminal achieves the same result.

If you still encounter issues, please share the log for further assistance.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
  

josephykwang avatar May 23 '24 15:05 josephykwang

without venv?

SmartManoj avatar May 23 '24 16:05 SmartManoj

% bash




The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

bash-3.2$ make

Building project...

Checking dependencies...

Checking system...

macOS detected.

Checking Python installation...

Python 3.11.8 is already installed.

Checking npm installation...

npm 10.5.0 is already installed.

Checking Node.js installation...

Node.js 21.7.1 is already installed.

Checking Docker installation...

Docker version 26.0.0, build 2ae903e is already installed.

make[2]: poetry: Command not found

Checking Poetry installation...

Poetry is not installed. You can install poetry by running the following command, then adding Poetry to your PATH:

 curl -sSL https://install.python-poetry.org | python3.11 -

More detail here: https://python-poetry.org/docs/#installing-with-the-official-installer

make[2]: *** [check-poetry] Error 1

make[1]: *** [check-dependencies] Error 2

make: *** [build] Error 2

bash-3.2$ curl -sSL https://install.python-poetry.org | python3.11 -

Retrieving Poetry metadata



The latest version (1.8.3) is already installed.
```    On Thursday, May 23, 2024 at 09:16:05 AM PDT, மனோஜ்குமார் பழனிச்சாமி ***@***.***> wrote:  




without venv?

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
 

josephykwang avatar May 23 '24 17:05 josephykwang

Why are you running this command source venv/bin/activate?

SmartManoj avatar May 24 '24 01:05 SmartManoj

To activate virtual environment . Note with or without virtual environment, it doesn’t work Sent from my iPhoneOn May 23, 2024, at 6:43 PM, மனோஜ்குமார் பழனிச்சாமி @.***> wrote: Why are you running this command source venv/bin/activate?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

josephykwang avatar May 24 '24 02:05 josephykwang

virtual environment is not needed as poetry will do that itself. Could you just run poetry after it is installed?

SmartManoj avatar May 24 '24 02:05 SmartManoj

***@***.*** OpenDevin % curl -sSL https://install.python-poetry.org | python3.11 -

Retrieving Poetry metadata




The latest version (1.8.3) is already installed.

***@***.*** OpenDevin % echo $SHELL

/bin/zsh

***@***.*** OpenDevin % poetry

zsh: command not found: poetry

***@***.*** OpenDevin % bash




The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

bash-3.2$ poetry
bash: poetry: command not found```
   On Thursday, May 23, 2024 at 07:52:28 PM PDT, மனோஜ்குமார் பழனிச்சாமி ***@***.***> wrote:  




virtual environment is not needed as poetry will do that itself.
Could you just run poetry after it is installed?

—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
 

josephykwang avatar May 26 '24 17:05 josephykwang

https://stackoverflow.com/a/73656539/5033247

Coould you run export PATH="$HOME/.poetry/bin:$PATH" and check?

SmartManoj avatar May 27 '24 03:05 SmartManoj

I'm going to close this one. Please try the newest version. If it still has issues, please open a new issue or re-open this with more info.

mamoodi avatar Jun 21 '24 17:06 mamoodi