indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.32k stars 227 forks source link

failed in exe.add_python_resources(exe.pip_download(["cmd2"])) #732

Open xiangzhu70 opened 6 months ago

xiangzhu70 commented 6 months ago

exe.add_python_resources(exe.pip_download(["cmd2"])) caused the following error:

` ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

error[PYOXIDIZER_PYTHON_EXECUTABLE]: calling pip download

Caused by:

    error running pip

   --> ./pyoxidizer.bzl:243:30

    |

243 |     exe.add_python_resources(exe.pip_download(["cmd2"]))

    |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^ PythonExecutable.pip_download()

error: calling pip download

`

My environment has Python cmd2 installed, as shown below, and the dependency requirement is satisfiled.

` pip3 install cmd2

Defaulting to user installation because normal site-packages is not writeable

Requirement already satisfied: cmd2 in /home/xiang/.local/lib/python3.10/site-packages (2.4.1)

Requirement already satisfied: wcwidth>=0.1.7 in /home/xiang/.local/lib/python3.10/site-packages (from cmd2) (0.2.5)

Requirement already satisfied: attrs>=16.3.0 in /home/xiang/.local/lib/python3.10/site-packages (from cmd2) (21.4.0)

Requirement already satisfied: pyperclip>=1.6 in /home/xiang/.local/lib/python3.10/site-packages (from cmd2) (1.8.2)

`

any idea? Thanks!