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
Adding packages to default dependencies: git+ssh://[email protected]:pdm-project/pdm.git
⠙ 0:00:00 Resolve for environment (==3.9.*) None
See /home/yanli.yu/.local/state/pdm/log/pdm-lock-vhu5sgik.log for detailed debug log.
[UnpackError]: ssh: Could not resolve hostname github.com:pdm-project: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
WARNING: Add '-v' to see the detailed traceback
Adding packages to default dependencies: git+ssh://[email protected]:pdm-project/pdm.git
pdm.termui: ======== Start resolving requirements ========
pdm.termui: pdm @ git+ssh://[email protected]/pdm-project/pdm.git
pdm.termui: git+ssh://[email protected]:pdm-project/pdm.git
pdm.termui: Adding requirement python==3.9.*
pdm.termui: Adding requirement pdm @ git+ssh://[email protected]/pdm-project/pdm.git
pdm.termui: Adding requirement git+ssh://[email protected]:pdm-project/pdm.git
unearth.vcs.git: Cloning ssh://***@github.com:pdm-project/pdm.git to /tmp/pdm-build-v73s8e7j
Traceback (most recent call last):
File "/opt/Anaconda3/bin/pdm", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/core.py", line 379, in main
return core.main(args or sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/core.py", line 267, in main
raise cast(Exception, err).with_traceback(traceback) from None
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/core.py", line 262, in main
self.handle(project, options)
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/core.py", line 194, in handle
command.handle(project, options)
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/cli/commands/add.py", line 71, in handle
self.do_add(
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/cli/commands/add.py", line 155, in do_add
resolved = do_lock(
^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/cli/actions.py", line 133, in do_lock
resolved, collected_groups = resolver.resolve()
^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/resolver/resolvelib.py", line 51, in resolve
mapping = self._do_resolve()
^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/resolver/resolvelib.py", line 89, in _do_resolve
result = resolver.resolve(requirements, max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 515, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 388, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/opt/Anaconda3/lib/python3.11/site-packages/resolvelib/resolvers/resolution.py", line 141, in _add_to_criteria
if not criterion.candidates:
File "/opt/Anaconda3/lib/python3.11/site-packages/resolvelib/structs.py", line 169, in __bool__
next(iter(self))
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/resolver/providers.py", line 350, in matches_gen
yield from super_find()
^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/resolver/providers.py", line 221, in matches_gen
candidates = self._find_candidates(reqs[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/resolver/providers.py", line 172, in _find_candidates
can.prepare(self.repository.environment).metadata
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/models/candidates.py", line 603, in metadata
result = self.prepare_metadata()
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/models/candidates.py", line 494, in prepare_metadata
self._unpack(validate_hashes=False)
File "/opt/Anaconda3/lib/python3.11/site-packages/pdm/models/candidates.py", line 465, in _unpack
result = finder.download_and_unpack(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/unearth/finder.py", line 441, in download_and_unpack
file = unpack_link(
^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/unearth/preparer.py", line 322, in unpack_link
backend.fetch(link, location)
File "/opt/Anaconda3/lib/python3.11/site-packages/unearth/vcs/base.py", line 152, in fetch
return self.fetch_new(location, url, rev, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/Anaconda3/lib/python3.11/site-packages/unearth/vcs/git.py", line 50, in fetch_new
self.run_command(
File "/opt/Anaconda3/lib/python3.11/site-packages/unearth/vcs/base.py", line 78, in run_command
raise UnpackError(e.output) from None
unearth.errors.UnpackError: Cloning into '/tmp/pdm-build-v73s8e7j'...
ssh: Could not resolve hostname github.com:pdm-project: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Additional Context
No response
Are you willing to submit a PR to fix this bug?
Yes, I would like to submit a PR.
The text was updated successfully, but these errors were encountered:
Describe the bug
Run command:
Output:
Workaround:
Seems like pdm (or its dependency?) cannot parse the
:username
aftergithub.com
To reproduce
As previous
Expected Behavior
As previous
Environment Information
pdm -v output
Additional Context
No response
Are you willing to submit a PR to fix this bug?
The text was updated successfully, but these errors were encountered: