Skip to content

Poetry init not working when path contains certain characters #6848

@PabloRuizCuevas

Description

@PabloRuizCuevas
  • 1.2.2:
  • 3.8-2.10:
  • Windows 10:
  • None:
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

poetry init --vvv or in general any poetry command don't work and raise this error:
Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)

The only clue I have with this issue is that the username and therefore the path contains a special character "è"
such as :"C:\Users\MyUsèrWithRareCharactèr\Project

And if the path is written somewhere and parsed maybe gives an error like in this SO issue:

On the other hand the --vvv didn't help to solve it as it logs the same with or without --vvv so it may be a very early problem during execution.

Any idea, besides creating a new user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expectedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions