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

[PdmUsageError]: Requested groups not in lockfile: default #2050

Closed
1 task done
tekumara opened this issue Jun 24, 2023 · 0 comments · Fixed by j178/pdm#1
Closed
1 task done

[PdmUsageError]: Requested groups not in lockfile: default #2050

tekumara opened this issue Jun 24, 2023 · 0 comments · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@tekumara
Copy link

  • I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

❯ pdm init -n
...
❯ pdm add --dev pytest
Adding group dev to lockfile
Adding packages to dev dev-dependencies: pytest
🔒 Lock successful
Changes are written to pyproject.toml.
Synchronizing working set with lock file: 4 to add, 0 to update, 0 to remove

  ✔ Install iniconfig 2.0.0 successful
  ✔ Install pluggy 1.2.0 successful
  ✔ Install packaging 23.1 successful
  ✔ Install pytest 7.4.0 successful
❯ pdm install --dev
[PdmUsageError]: Requested groups not in lockfile: default

Actual behavior

See above

Expected behavior

pytest is installed into the virtualenv

Environment Information

# Paste the output of `pdm info && pdm info --env` below:
❯ pdm info && pdm info --env
PDM version:
  2.7.4
Python Interpreter:
  /private/tmp/foo/.venv/bin/python (3.11)
Project Root:
  /private/tmp/foo
Local Packages:

{
  "implementation_name": "cpython",
  "implementation_version": "3.11.4",
  "os_name": "posix",
  "platform_machine": "arm64",
  "platform_release": "22.5.0",
  "platform_system": "Darwin",
  "platform_version": "Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000",
  "python_full_version": "3.11.4",
  "platform_python_implementation": "CPython",
  "python_version": "3.11",
  "sys_platform": "darwin"
}
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

Successfully merging a pull request may close this issue.

1 participant