Odd poetry cache dir error

I am getting a very strange error in poetry

('Configuration file exists at /Users/<me>/Library/Application Support/pypoetry, reusing this directory.\n\nConsider moving TOML configuration files to /Users/<me>/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.',)\

The cache-dir is already set to /Users/<me>/Library/Application Support/pypoetry and it is displaying the same path in the error message.

Any idea what is causing that?

Is there a misunderstanding somewhere? Could well be on my side…

The error message seems to be about the “configuration file”, but then your message mentions cache-dir. Also the error message mentions twice the same path, is that really so?

I guess if it really is about the configuration file, then it seems like should be located at ~/Library/Preferences/pypoetry.

That is actually the issue I am trying to figure out.

The config directory is at

/Users/<me>/Library/Application Support/pypoetry

and the TOML file is there as well.

So not only do I not know why it is complaining but I can’t understand why the error mentions that same path twice.

Does poetry config --list give some hint as to what is going wrong?

I do not use Poetry, so I will just do some guesses…

If I were you I would experiment something like this:

  • delete the configuration file
  • see how Poetry behaves without this file
  • force Poetry to create a new configuration file with some configuration command, for example: poetry config installer.parallel false
  • check where this file is created and if Poetry behaves better now

Otherwise I would get in touch with Poetry community (either GitHub or their Discord).

I did some work simplifying my python install and as part of that I had to reinstall poetry.

That solved the issue. I suspect that your suggestion to use poetry config installer.parallel false would have worked as well.

It certainly was an odd error.

Thanks for the help