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

The "--requirements" option does not exist. #2135

Closed
2 tasks
leileigong opened this issue Mar 6, 2020 · 4 comments
Closed
2 tasks

The "--requirements" option does not exist. #2135

leileigong opened this issue Mar 6, 2020 · 4 comments

Comments

@leileigong
Copy link

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

poetry add --requirements requirements.txt rasise an error

comand poetry add --requirements requirements.txt got an error:

PS E:\GisManager> poetry add --requirements requirements.txt

[NoSuchOptionException]
The "--requirements" option does not exist.

Traceback (most recent call last):
  File "c:\python36\lib\site-packages\clikit\console_application.py", line 124, in run
    self, args, input_stream, output_stream, error_stream
  File "c:\python36\lib\site-packages\poetry\console\config\application_config.py", line 165, in create_io
    resolved_command = application.resolve_command(args)
  File "c:\python36\lib\site-packages\clikit\console_application.py", line 110, in resolve_command
    return self._config.command_resolver.resolve(args, self)
  File "c:\python36\lib\site-packages\clikit\resolver\default_resolver.py", line 34, in resolve
    return self.create_resolved_command(result)
  File "c:\python36\lib\site-packages\clikit\resolver\default_resolver.py", line 166, in create_resolved_command
    if not result.is_parsable():
  File "c:\python36\lib\site-packages\clikit\resolver\resolve_result.py", line 43, in is_parsable
    self._parse()
  File "c:\python36\lib\site-packages\clikit\resolver\resolve_result.py", line 49, in _parse
    self._parsed_args = self._command.parse(self._raw_args)
  File "c:\python36\lib\site-packages\clikit\api\command\command.py", line 113, in parse
    return self._config.args_parser.parse(args, self._args_format, lenient)
  File "c:\python36\lib\site-packages\clikit\args\default_args_parser.py", line 53, in parse
    self._parse(args, _fmt, lenient)
  File "c:\python36\lib\site-packages\clikit\args\default_args_parser.py", line 101, in _parse
    self._parse_long_option(token, tokens, fmt, lenient)
  File "c:\python36\lib\site-packages\clikit\args\default_args_parser.py", line 247, in _parse_long_option
    self._add_long_option(name, None, tokens, fmt, lenient)
  File "c:\python36\lib\site-packages\clikit\args\default_args_parser.py", line 300, in _add_long_option
    raise NoSuchOptionException(name)

PS E:\GisManager>
@finswimmer
Copy link
Member

Hello @leileigong,

as the output says:

The "--requirements" option does not exist.

poetry doesn't support such an option.

fin swimmer

@leileigong
Copy link
Author

the issue #663 show that, i can use this option.I just wanna know how to import an requirements.txt

@finswimmer
Copy link
Member

Hello again,

in #633 there was just a suggestion to add such an option. @absassi mentioned why this doesn't make sense in most cases.

The thread includes some one-liner how one can achieve this if really needed. You can also give dephell a try.

fin swimmer

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants