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

How to use --verbose in poetry run? #3960

Closed
gc-ss opened this issue Apr 17, 2021 · 3 comments
Closed

How to use --verbose in poetry run? #3960

gc-ss opened this issue Apr 17, 2021 · 3 comments

Comments

@gc-ss
Copy link

gc-ss commented Apr 17, 2021

Using poetry 1.1.4:

When using --verbose with poetry run I would expect to see some details like env. vars, and relevant context in which the poetry run is executed to show up so that I have more details to figure out why a certain poetry run fails.

However, when I try and place --verbose in these two ways, neither seems to work as expected although the USAGE docs as printed seems to suggest --verbose is supported:

-vvv to poetry:

  # poetry -vvv run bash
  USAGE
    poetry help [<command1>] ... [<commandN>]

  ARGUMENTS
    <command>              The command name

  GLOBAL OPTIONS
    -h (--help)            Display this help message
    -q (--quiet)           Do not output any message
    -v (--verbose)         Increase the verbosity of messages: "-v" for normal output, "-vv" for more verbose output and "-vvv" for debug
    -V (--version)         Display this application version
    --ansi                 Force ANSI output
    --no-ansi              Disable ANSI output
    -n (--no-interaction)  Do not ask any interactive question

-vvv to poetry run:

  # poetry run -vvv bash

    FileNotFoundError

    [Errno 2] No such file or directory

    at /usr/local/lib/python3.9/os.py:607 in _execvpe
         603│         path_list = map(fsencode, path_list)
         604│     for dir in path_list:
         605│         fullname = path.join(dir, file)
         606│         try:
      →  607│             exec_func(fullname, *argrest)
         608│         except (FileNotFoundError, NotADirectoryError) as e:
         609│             last_exc = e
         610│         except OSError as e:
         611│             last_exc = e

It seems to me that poetry is trying to run -vvv but the message:

[Errno 2] No such file or directory

does not give any context.

A properly implemented --verbose option could helpfully printout that information, the PATH and so on.

@abn
Copy link
Member

abn commented Apr 30, 2021

Closing as this is a duplicate.

@abn abn closed this as completed Apr 30, 2021
Copy link

github-actions bot commented Mar 2, 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 2, 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

3 participants