OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

make build error

Open MohamedAtta-AI opened this issue 1 year ago • 9 comments

Describe the bug

I get this error when I type the command make build image

MohamedAtta-AI avatar Apr 08 '24 00:04 MohamedAtta-AI

OS?

SmartManoj avatar Apr 08 '24 00:04 SmartManoj

Windows 11, python 3.11.6

MohamedAtta-AI avatar Apr 08 '24 00:04 MohamedAtta-AI

Where did you run this?

SmartManoj avatar Apr 08 '24 00:04 SmartManoj

locally inside the OpenDevin directory image

MohamedAtta-AI avatar Apr 08 '24 01:04 MohamedAtta-AI

In WSL terminal?

SmartManoj avatar Apr 08 '24 01:04 SmartManoj

No, this is VS Code powershell

MohamedAtta-AI avatar Apr 08 '24 01:04 MohamedAtta-AI

https://learn.microsoft.com/en-us/windows/wsl/install

Please check the requirements

SmartManoj avatar Apr 08 '24 01:04 SmartManoj

Okay, I just installed WSL and cloned the repo there. Now, there is this new error here:

Building project...
Checking dependencies...
Checking Python installation...
Python 3.11.0 is already installed.
Checking npm installation...
npm 9.8.1 is already installed.
Checking Docker installation...
Docker version 24.0.6, build ed223bc is already installed.
Checking Poetry installation...
Poetry version 1.1.12 is already installed.
Dependencies checked successfully.
Pulling Docker image...
Using default tag: latest
latest: Pulling from opendevin/sandbox
Digest: sha256:486e3da1d7c8ec54a2e3269071eed9b91bc75b82ca5d1ac1760d33883c39e575
Status: Image is up to date for ghcr.io/opendevin/sandbox:latest
ghcr.io/opendevin/sandbox:latest

What's Next?
  View a summary of image vulnerabilities and recommendations → docker scout quickview ghcr.io/opendevin/sandbox
Docker image pulled successfully.
Installing Python dependencies...

  Stack trace:

  11  /usr/lib/python3/dist-packages/clikit/console_application.py:123 in run
      io = io_factory(

  10  /usr/lib/python3/dist-packages/poetry/console/config/application_config.py:221 in create_io
      resolved_command = application.resolve_command(args)

   9  /usr/lib/python3/dist-packages/clikit/console_application.py:110 in resolve_command
      return self._config.command_resolver.resolve(args, self)

   8  /usr/lib/python3/dist-packages/clikit/resolver/default_resolver.py:34 in resolve
      return self.create_resolved_command(result)

   7  /usr/lib/python3/dist-packages/clikit/resolver/default_resolver.py:166 in create_resolved_command
      if not result.is_parsable():

   6  /usr/lib/python3/dist-packages/clikit/resolver/resolve_result.py:43 in is_parsable
      self._parse()

   5  /usr/lib/python3/dist-packages/clikit/resolver/resolve_result.py:49 in _parse
      self._parsed_args = self._command.parse(self._raw_args)

   4  /usr/lib/python3/dist-packages/clikit/api/command/command.py:113 in parse
      return self._config.args_parser.parse(args, self._args_format, lenient)

   3  /usr/lib/python3/dist-packages/clikit/args/default_args_parser.py:53 in parse
      self._parse(args, _fmt, lenient)

   2  /usr/lib/python3/dist-packages/clikit/args/default_args_parser.py:101 in _parse
      self._parse_long_option(token, tokens, fmt, lenient)

   1  /usr/lib/python3/dist-packages/clikit/args/default_args_parser.py:247 in _parse_long_option
      self._add_long_option(name, None, tokens, fmt, lenient)

  NoSuchOptionException

  The "--without" option does not exist.

  at /usr/lib/python3/dist-packages/clikit/args/default_args_parser.py:300 in _add_long_option
      296│     def _add_long_option(
      297│         self, name, value, tokens, fmt, lenient
      298│     ):  # type: (str, Optional[str], List[str], ArgsFormat, bool) -> None
      299│         if not fmt.has_option(name):
    → 300│             raise NoSuchOptionException(name)
      301│
      302│         option = fmt.get_option(name)
      303│
      304│         if value is False:
make[1]: *** [Makefile:84: install-python-dependencies] Error 1
make: *** [Makefile:25: build] Error 2

MohamedAtta-AI avatar Apr 08 '24 01:04 MohamedAtta-AI

check poetry version >=1.8 poetry -V

if so, just run poetry install --without evaluation

SmartManoj avatar Apr 08 '24 01:04 SmartManoj

@MohamedAtta-AI you are using Poetry version 1.1.12 so try to upgrade your poetry version to version 1.8>=

anasdorbani avatar Apr 08 '24 05:04 anasdorbani

@SmartManoj hello, i have this : image linux ,centos. i change makefile @echo "$(BLUE)Usage: make [target]$(RESET)" to @echo -e "$(BLUE)Usage: make [target]$(RESET)", color is work. image windows is work? no idea.

a18792721831 avatar Apr 08 '24 07:04 a18792721831

upgrade your poetry version to version 1.8>=

@a18792721831 run this to update poetry curl -sSL https://install.python-poetry.org | python3 -

SmartManoj avatar Apr 08 '24 07:04 SmartManoj

upgrade your poetry version to version 1.8>=

@a18792721831 run this to update poetry curl -sSL https://install.python-poetry.org | python3 -

image no working

a18792721831 avatar Apr 08 '24 08:04 a18792721831

Can you pls try these steps and send me the full terminal output:

  • pull the latest changes
  • and run make build

anasdorbani avatar Apr 08 '24 08:04 anasdorbani

Can you pls try these steps and send me the full terminal output:

  • pull the latest changes
  • and run make build

make build can work, but color : image

a18792721831 avatar Apr 08 '24 08:04 a18792721831

so what's the issue now?

anasdorbani avatar Apr 08 '24 08:04 anasdorbani

so what's the issue now?

new issue , i create now .

a18792721831 avatar Apr 08 '24 08:04 a18792721831

so what's the issue now?

new issue , i create now .

https://github.com/OpenDevin/OpenDevin/issues/893

a18792721831 avatar Apr 08 '24 08:04 a18792721831