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

Error due to dev-dependency despite using "poetry install --no-dev" #4603

Closed
3 tasks done
juliuskittler opened this issue Oct 6, 2021 · 2 comments
Closed
3 tasks done
Labels
kind/bug Something isn't working as expected

Comments

@juliuskittler
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

I am getting an error because of a package from my dev dependencies even though I am conducting an installation with excluding the dev dependencies (with poetry install --no-dev). This error is expected for poetry install because said dev dependency is installed from a local directory which is missing. However, I expect that it does not occur with poetry install --no-dev because then this dependency is not meant to be installed.

To reproduce:

  1. Download the pyproject.toml from the gist link (above), put it in a folder and navigate into the folder from your terminal.
  2. Run poetry install --no-dev.
  3. You will get the error:
ValueError

  Directory ../Merlion/ts_datasets does not exist

  at ~/anaconda3/lib/python3.8/site-packages/poetry/core/packages/directory_dependency.py:41 in __init__
       37│         self._develop = develop
       38│         self._supports_poetry = False
       39│ 
       40│         if not self._full_path.exists():
    →  41│             raise ValueError("Directory {} does not exist".format(self._path))
       42│ 
       43│         if self._full_path.is_file():
       44│             raise ValueError("{} is a file, expected a directory".format(self._path))
@juliuskittler juliuskittler added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 6, 2021
@finswimmer
Copy link
Member

Hello @juliuskittler,

this was ask earlier in #668

fin swimmer

@abn abn removed the status/triage This issue needs to be triaged label Mar 3, 2022
Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants