xpk icon indicating copy to clipboard operation
xpk copied to clipboard

XPK install broken due to dependency

Open pgmoka opened this issue 8 months ago • 3 comments

I am following the steps in https://github.com/AI-Hypercomputer/xpk?tab=readme-ov-file#installation after following the pre-requisites.

Running pip install xpk will get the error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flask 3.1.0 requires Werkzeug>=3.1, but you have werkzeug 2.0.3 which is incompatible.
Successfully installed werkzeug-2.0.3

I have updated werkzeug-2.0.3 to werkzeug-3.1.3, but that just yields the error:

Downloading Werkzeug-2.0.3-py3-none-any.whl (289 kB)
Installing collected packages: werkzeug
  Attempting uninstall: werkzeug
    Found existing installation: Werkzeug 3.1.3
    Uninstalling Werkzeug-3.1.3:
      Successfully uninstalled Werkzeug-3.1.3
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
flask 3.1.0 requires Werkzeug>=3.1, but you have werkzeug 2.0.3 which is incompatible.
Successfully installed werkzeug-2.0.3

It seems pip install is deleting the correctly set-up version, and install the older version.

I could not find the reference of the package under the repo or I would submit a quick PR to update the reference. I double checked the Makefile, but I don't see any obvious sign of a problem there.

pgmoka avatar Mar 29 '25 00:03 pgmoka

@pgmoka there is no direct dependency to that packages. All dependencies are here.

Did you try to install using a venv?

sharabiani avatar Mar 31 '25 18:03 sharabiani

I did not. I have done so, and it seems to be working properly now.

I initially was following https://github.com/AI-Hypercomputer/xpk/tree/6ba0019ac14f9c0b1d5c51371bc40bc43e3b65a8?tab=readme-ov-file#installation, and just used pip install xpk. Should the instructions default to using venv or pointing at it as a more general solutions to potential issues with the pip install xpk approach?

pgmoka avatar Mar 31 '25 21:03 pgmoka

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 30 '25 02:10 github-actions[bot]