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

group_dependencies: Invalid specifier: '>=0.4.21+cuda12.cudnn89' #2599

Closed
1 task done
messense opened this issue Jan 31, 2024 · 0 comments · Fixed by j178/pdm#1
Closed
1 task done

group_dependencies: Invalid specifier: '>=0.4.21+cuda12.cudnn89' #2599

messense opened this issue Jan 31, 2024 · 0 comments · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@messense
Copy link

messense commented Jan 31, 2024

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

Trying to migrate a project from Poetry to PDM.

Steps to reproduce

pyproject.toml

[tool.poetry]
name = "repro"
version = "0.1.0"
description = ""
authors = []
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"
ruff = "^0.1.15"

[tool.poetry.group.jax.dependencies]
jaxlib = { extras = [
    "cuda12-pip",
], version = "^0.4.21+cuda12.cudnn89", source = "jax-releases" }
jax = { extras = ["cuda12-pip"], version = "^0.4.21" }

[[tool.poetry.source]]
name = "jax-releases"
url = "https://storage.googleapis.com/jax-releases/jax_cuda_releases.html"
priority = "explicit"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Actual behavior

$ pdm --help
Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/pdm", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 288, in main
    return Core().main(args or sys.argv[1:])
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 181, in main
    args = self._get_cli_args(args, obj)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 163, in _get_cli_args
    config = project.pyproject.settings.get("options", {})
  File "/usr/lib/python3.10/functools.py", line 981, in __get__
    val = self.func(instance)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/project/core.py", line 112, in pyproject
    return PyProject(self.root / self.PYPROJECT_FILENAME, ui=self.core.ui)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/project/toml_file.py", line 18, in __init__
    self._data = self.read()
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/project/project_file.py", line 33, in read
    metadata, settings = converter.convert(None, self._path, None)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/formats/poetry.py", line 213, in convert
    return converter.convert()
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/formats/base.py", line 85, in convert
    raise MetaConvertError(errors, data=self._data, settings=self.settings)
pdm.formats.base.MetaConvertError:
group_dependencies: Invalid specifier: '>=0.4.21+cuda12.cudnn89'

Expected behavior

Show pdm help.

Environment Information

Paste the output of pdm info && pdm info --env below:

$ pdm info && pdm info --env
Traceback (most recent call last):
  File "/home/ubuntu/.local/bin/pdm", line 8, in <module>
    sys.exit(main())
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 288, in main
    return Core().main(args or sys.argv[1:])
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 181, in main
    args = self._get_cli_args(args, obj)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/core.py", line 163, in _get_cli_args
    config = project.pyproject.settings.get("options", {})
  File "/usr/lib/python3.10/functools.py", line 981, in __get__
    val = self.func(instance)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/project/core.py", line 112, in pyproject
    return PyProject(self.root / self.PYPROJECT_FILENAME, ui=self.core.ui)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/project/toml_file.py", line 18, in __init__
    self._data = self.read()
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/project/project_file.py", line 33, in read
    metadata, settings = converter.convert(None, self._path, None)
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/formats/poetry.py", line 213, in convert
    return converter.convert()
  File "/home/ubuntu/.local/pipx/venvs/pdm/lib/python3.10/site-packages/pdm/formats/base.py", line 85, in convert
    raise MetaConvertError(errors, data=self._data, settings=self.settings)
pdm.formats.base.MetaConvertError:
group_dependencies: Invalid specifier: '>=0.4.21+cuda12.cudnn89'

$ cd && pdm --version
PDM, version 2.12.2
@messense messense added the 🐛 bug Something isn't working label Jan 31, 2024
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