You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ pdm export -v
The exported requirements file is no longer cross-platform. Using it on other platforms may cause unexpected result.
STATUS: Resolving packages from lockfile...
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "c:\users\hmy01\.local\bin\pdm.exe\__main__.py", line 7, in<module>
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\core.py", line 247, in main
returnCore().main(args)
^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\core.py", line 181, in main
raise cast(Exception, err).with_traceback(traceback) from None
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\core.py", line 176, in main
f(project, options)
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\cli\commands\export.py", line 74, in handle
candidates = resolve_candidates_from_lockfile(project, requirements.values())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\cli\actions.py", line 136, in resolve_candidates_from_lockfile
mapping, *_ = resolve(
^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\resolver\core.py", line 35, in resolve
result = resolver.resolve(requirements, max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\resolvelib\resolvers.py", line 521, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\resolvelib\resolvers.py", line 401, in resolve
name = min(unsatisfied_names, key=self._get_preference)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\resolvelib\resolvers.py", line 202, in _get_preference
return self._p.get_preference(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\resolver\providers.py", line 84, in get_preference
is_backtrack_cause = any(dep.identify() in backtrack_identifiers fordepin self.get_dependencies(candidate))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\resolver\providers.py", line 176, in get_dependencies
deps, requires_python, _ = self.repository.get_dependencies(candidate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\models\repositories.py", line 81, in get_dependencies
requirements, requires_python, summary = getter(candidate)
^^^^^^^^^^^^^^^^^
File "C:\Users\hmy01\.local\pipx\venvs\pdm\Lib\site-packages\pdm\models\repositories.py", line 411, in _get_dependencies_from_lockfile
return self.candidate_info[self._identify_candidate(candidate)]
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: ('nonebot-adapter-onebot', '2.2.2', None, False)
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
Actual behavior
Expected behavior
no error
Environment Information
The text was updated successfully, but these errors were encountered: