This is the pyproject.toml:
[project]
name = ""
version = ""
description = ""
authors = [
{name = "JiangXiaoqiang", email = "[email protected]"},
]
dependencies = [
"requests>=2.5.4.1",
"pyjwt>=2.8.0",
"pytest>=8.2.1",
"python-dotenv>=1.0.1",
"rdpywheel>=0.1.34"
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
when I tried to use pdm install
command to install the dependencies:
> pdm install -v
Lock file does not exist
Updating the lock file...
STATUS: Resolving dependencies
pdm.termui: ======== Start resolving requirements ========
pdm.termui: requests>=2.5.4.1
pdm.termui: pyjwt>=2.8.0
pdm.termui: pytest>=8.2.1
pdm.termui: python-dotenv>=1.0.1
pdm.termui: rdpywheel>=0.1.34
pdm.termui: python>=3.10
pdm.termui: Adding requirement requests>=2.5.4.1
pdm.termui: Adding requirement pyjwt>=2.8.0
pdm.termui: Adding requirement pytest>=8.2.1
pdm.termui: Adding requirement python-dotenv>=1.0.1
pdm.termui: Adding requirement rdpywheel>=0.1.34
pdm.termui: Adding requirement python>=3.10
pdm.termui: ======== Starting round 0 ========
STATUS: Resolving: new pin python>=3.10
pdm.termui: Pinning: python None
pdm.termui: ======== Ending round 0 ========
pdm.termui: ======== Starting round 1 ========
STATUS: Resolving: new pin pyjwt 2.8.0
pdm.termui: Pinning: pyjwt 2.8.0
pdm.termui: ======== Ending round 1 ========
pdm.termui: ======== Starting round 2 ========
pdm.termui: Adding requirement iniconfig(from pytest 8.2.1)
pdm.termui: Adding requirement packaging(from pytest 8.2.1)
pdm.termui: Adding requirement pluggy<2.0,>=1.5(from pytest 8.2.1)
pdm.termui: Adding requirement exceptiongroup>=1.0.0rc8; python_version < "3.11"(from pytest 8.2.1)
pdm.termui: Adding requirement tomli>=1; python_version < "3.11"(from pytest 8.2.1)
pdm.termui: Adding requirement colorama; sys_platform == "win32"(from pytest 8.2.1)
STATUS: Resolving: new pin pytest 8.2.1
pdm.termui: Pinning: pytest 8.2.1
pdm.termui: ======== Ending round 2 ========
pdm.termui: ======== Starting round 3 ========
STATUS: Resolving: new pin python-dotenv 1.0.1
pdm.termui: Pinning: python-dotenv 1.0.1
pdm.termui: ======== Ending round 3 ========
pdm.termui: ======== Starting round 4 ========
pdm.termui: Adding requirement setuptools>=68.1.2(from rdpywheel 0.1.35)
pdm.termui: Adding requirement requests>=2.28.2(from rdpywheel 0.1.35)
pdm.termui: Adding requirement python-dotenv==1.0.0(from rdpywheel 0.1.35)
pdm.termui: Candidate rejected: [email protected] because it introduces a new requirement python-dotenv==1.0.0 that conflicts with other requirements:
python-dotenv>=1.0.1 (from project)
pdm.termui: Adding requirement setuptools>=68.1.2(from rdpywheel 0.1.34)
pdm.termui: Adding requirement requests>=2.28.2(from rdpywheel 0.1.34)
pdm.termui: Adding requirement python-dotenv==1.0.0(from rdpywheel 0.1.34)
pdm.termui: Candidate rejected: [email protected] because it introduces a new requirement python-dotenv==1.0.0 that conflicts with other requirements:
python-dotenv>=1.0.1 (from project)
pdm.termui: Conflicts detected:
python-dotenv==1.0.0 (from [email protected])
python-dotenv==1.0.0 (from [email protected])
python-dotenv>=1.0.1 (from project)
???? Lock failed
Unable to find a resolution for python-dotenv
because of the following conflicts:
python-dotenv==1.0.0 (from [email protected])
python-dotenv==1.0.0 (from [email protected])
python-dotenv>=1.0.1 (from project)
To fix this, you could loosen the dependency version constraints in pyproject.toml. See https://pdm-project.org/latest/usage/dependency/#solve-the-locking-failure for more details.
Traceback (most recent call last):
File "/Users/xiaoqiangjiang/Library/Python/3.10/bin/pdm", line 10, in <module>
sys.exit(main())
File "/Users/xiaoqiangjiang/Library/Application Support/pdm/venv/lib/python3.10/site-packages/pdm/core.py", line 295, in main
return Core().main(args or sys.argv[1:])
File "/Users/xiaoqiangjiang/Library/Application Support/pdm/venv/lib/python3.10/site-packages/pdm/core.py", line 208, in main
raise cast(Exception, err).with_traceback(traceback) from None
File "/Users/xiaoqiangjiang/Library/Application Support/pdm/venv/lib/python3.10/site-packages/pdm/core.py", line 203, in main
self.handle(project, options)
File "/Users/xiaoqiangjiang/Library/Application Support/pdm/venv/lib/python3.10/site-packages/pdm/core.py", line 157, in handle
command.handle(project, options)
File "/Users/xiaoqiangjiang/Library/Application Support/pdm/venv/lib/python3.10/site-packages/pdm/cli/commands/install.py", line 92, in handle
actions.do_lock(
File "/Users/xiaoqiangjiang/Library/Application Support/pdm/venv/lib/python3.10/site-packages/pdm/cli/actions.py", line 120, in do_lock
raise ResolutionImpossible("Unable to find a resolution") from None
resolvelib.resolvers.ResolutionImpossible: Unable to find a resolution
what should I do to fixed this issue?