Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bare Metal install fails on ubuntu 22.04 #125

Open
bmullan opened this issue Dec 1, 2023 · 2 comments
Open

Bare Metal install fails on ubuntu 22.04 #125

bmullan opened this issue Dec 1, 2023 · 2 comments

Comments

@bmullan
Copy link

bmullan commented Dec 1, 2023

when I execute the step:

$ sudo poetry install --only main

it generates a traceback. Is this a bug or has the Bare Metal install instructions changed?

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 "--only" 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:

@MartinJohannesNilsen
Copy link

when I execute the step:

$ sudo poetry install --only main

it generates a traceback. Is this a bug or has the Bare Metal install instructions changed?

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 "--only" 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:

I had the same issues as you. I started fresh and installed Python 3.11 with Pyenv (https://blog.mjntech.dev/posts/7FPz65Fkv8sHM3aDIx0r#Installing_Pyenv), installed poetry with curl -sSL https://install.python-poetry.org/ | python3 - and added the necessary variables to PATH. I then got to run the poetry project, although I get some list index out of range in wsgi.create().

Did you ever figure this out yourself?

@PaPaTheGMan
Copy link

Same issue here. Any status on a fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants