You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an empty project with poetry init, then attempt to install it. Without the README.md file being created, the installation will fail. When installation fails without configuring package-mode, Poetry 1.8.1 emits the following error message:
Warning: The current project could not be installed: [Errno 2] No such file or directory: '/README.md'
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can set the operating mode to "non-package" in your pyproject.toml file.
In a future version of Poetry this warning will become an error!
The message instructs to 'set the operating mode to "non-package" in your pyproject.toml file', implying using 'non-package = true' or similar, whereas the correct key is 'package-mode = false'.
$ poetry -vvv install
Loading configuration file /home/andy/.config/pypoetry/config.toml
Using virtualenv: /home/andy/.cache/pypoetry/virtualenvs/foo-IVQOPcWJ-py3.9
Installing dependencies from lock file
Finding the necessary packages for the current system
Installing the current project: foo (0.1.0)
Warning: The current project could not be installed: [Errno 2] No such file or directory: '/home/andy/foo/README.md'
If you do not want to install the current project use --no-root.
If you want to use Poetry only fordependency management but not for packaging, you can set the operating mode to "non-package"in your pyproject.toml file.
In a future version of Poetry this warning will become an error!
The text was updated successfully, but these errors were encountered:
Description
Create an empty project with
poetry init
, then attempt to install it. Without theREADME.md
file being created, the installation will fail. When installation fails without configuringpackage-mode
, Poetry 1.8.1 emits the following error message:The message instructs to 'set the operating mode to "non-package" in your pyproject.toml file', implying using 'non-package = true' or similar, whereas the correct key is 'package-mode = false'.
Workarounds
The correct key can be inferred from a search.
Poetry Installation Method
pipx
Operating System
Linux Mint 21.3
Poetry Version
1.8.1
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: