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

slap venv -i errors in directory that has a pyproject.toml but cannot be managed by Slap #65

Open
NiklasRosenstein opened this issue Aug 12, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@NiklasRosenstein
Copy link
Owner

The slap venv -i command is something you might run from ~/.profile or similar files, so it's not uncommon that it might be invoked in a directory that has a pyproject.toml but is not a compatible Slap project.

Example error?

[ ... ]
  File "/Users/niklas.rosenstein/gitme/slap/.venvs/3.10/lib/python3.10/site-packages/nr/util/functional/_once.py", line 29, in __call__
    self._value = self._supplier()
  File "/Users/niklas.rosenstein/gitme/slap/.venvs/3.10/lib/python3.10/site-packages/slap/project.py", line 150, in _get_dist_name
    return self.handler().get_dist_name(self)
  File "/Users/niklas.rosenstein/gitme/slap/.venvs/3.10/lib/python3.10/site-packages/nr/util/functional/_once.py", line 29, in __call__
    self._value = self._supplier()
  File "/Users/niklas.rosenstein/gitme/slap/.venvs/3.10/lib/python3.10/site-packages/slap/project.py", line 120, in _get_project_handler
    raise RuntimeError(f"unable to identify project handler for {self!r}")
RuntimeError: unable to identify project handler for Project(directory="/Users/niklas.rosenstein/gitme/kraken-base-image")
@NiklasRosenstein NiklasRosenstein added the bug Something isn't working label Aug 12, 2022
@NiklasRosenstein NiklasRosenstein self-assigned this Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant