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

The current project could not be installed: No file/folder found for package namespace #4

Closed
luketych opened this issue Feb 4, 2024 · 4 comments

Comments

@luketych
Copy link

luketych commented Feb 4, 2024

(base) ➜  poetry git:(main) make init
rm -rf .venv
pipx run poetry config virtualenvs.create true --local
⚠️  poetry is already on your PATH and installed at /Users/luketych/.local/bin/poetry. Downloading and running anyway.
pipx run poetry install --sync
⚠️  poetry is already on your PATH and installed at /Users/luketych/.local/bin/poetry. Downloading and running anyway.
Creating virtualenv namespace in /Users/luketych/Dev/_Playground/python-monorepo/poetry/.venv
Installing dependencies from lock file

Package operations: 17 installs, 0 updates, 1 removal

  • Removing setuptools (69.0.2)
  • Installing dnspython (2.2.1)
  • Installing idna (3.4)
  • Installing email-validator (1.3.0)
  • Installing typing-extensions (4.4.0)
  • Installing attrs (22.2.0)
  • Installing commonmark (0.9.1)
  • Installing iniconfig (2.0.0)
  • Installing packaging (23.0)
  • Installing pluggy (1.0.0)
  • Installing pydantic (1.10.2)
  • Installing pygments (2.13.0)
  • Installing orjson (3.8.0)
  • Installing pytest (7.2.2)
  • Installing rich (12.6.0)
  • Installing namespace-lib (0.0.0 /Users/luketych/Dev/_Playground/python-monorepo/poetry/workspaces/lib)
  • Installing namespace-app (0.0.0 /Users/luketych/Dev/_Playground/python-monorepo/poetry/workspaces/app)
  • Installing namespace-cli (0.0.0 /Users/luketych/Dev/_Playground/python-monorepo/poetry/workspaces/cli)

Installing the current project: namespace (0.1.0)
The current project could not be installed: No file/folder found for package namespace
If you do not want to install the current project use --no-root
@luketych
Copy link
Author

luketych commented Feb 4, 2024

@adriangb any ideas? Did poetry change?

@adriangb
Copy link
Owner

adriangb commented Feb 4, 2024

You now have to add --no-root. Contrary to what it might seem, that's a warning not an error. If you want better support for this setup upvote python-poetry/poetry#8650. Thanks!

@adriangb adriangb closed this as completed Feb 4, 2024
@josephfinlayson
Copy link

Now python-poetry/poetry#8650 is merged, does it make sense to update this repo as a demo?

@adriangb
Copy link
Owner

Yep, I think so! Would you like to make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants