Skip to content

[Errno 2] No such file or directory When trying to run poetry #1545

Description

@AntoineSebert
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

Short desc

When I try to run poetry, I get: D:\Users\{username}\AppData\Local\Programs\Python\Python37\python.exe: can't open file '/cygdrive/c/Users/{username}/.poetry/bin/poetry': [Errno 2] No such file or directory

Replication

I followed the installation steps detailed at https://poetry.eustace.io/docs/:

{username}@{computer_name} /cygdrive/d 
$ curl -sSL https://github.com/@raw/sdispater/poetry/master/get-poetry.py | python
Retrieving Poetry metadata 

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at: 

%USERPROFILE%\.poetry\bin

This path will then be added to your `PATH` environment variable by     
modifying the `HKEY_CURRENT_USER/Environment/PATH` registry key.        

You can uninstall at any time with `poetry self:uninstall`,
or by executing this script with the --uninstall option,
and these changes will be reverted.

Installing version: 0.12.17
  - Downloading poetry-0.12.17-win32.tar.gz (7.21MB) 

Poetry (0.12.17) is installed now. Great!

To get started you need Poetry's bin directory (%USERPROFILE%\.poetry\bin) in your `PATH` 
environment variable. Future applications will automatically have the
correct environment, but you may need to restart your current shell.

Then I show that the file is present:

{username}@{computer_name} /cygdrive/d
$ cd /cygdrive/c/Users/{username}/.poetry/bin        

{username}@{computer_name} ~/.poetry/bin 
$ ls 
poetry  poetry.bat

Finally I try to run poetry:

{username}@{computer_name} /cygdrive/d
$ poetry --version 
D:\Users\{username}\AppData\Local\Programs\Python\Python37\python.exe: can't open file '/cygdrive/c/Users/{username}/.poetry/bin/poetry': [Errno 2] No such file or directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions