google-ai-edge / model-explorer

A modern model graph visualizer and debugger
Apache License 2.0
1.05k stars 84 forks source link

Dependency Resolution Error with ai-edge-model-explorer #39

Closed vrtnis closed 6 months ago

vrtnis commented 6 months ago

Hey all - thanks for building this! super useful!

I've been using it in colab but I'm encountering a dependency resolution issue when trying to install ai-edge-model-explorer. The error indicates conflicting dependencies between different versions of ai-edge-model-explorer and ai-edge-model-explorer-adapter.

Steps to Reproduce: Run pip install ai-edge-model-explorer.

Logs:


Collecting ai-edge-model-explorer
  Using cached ai_edge_model_explorer-0.1.0-1-py3-none-any.whl.metadata (2.3 kB)
Collecting flask (from ai-edge-model-explorer)
  Using cached flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)
Requirement already satisfied: ipython in c:\users\victg\appdata\local\programs\python\python311\lib\site-packages (from ai-edge-model-explorer) (8.23.0)
INFO: pip is looking at multiple versions of ai-edge-model-explorer to determine which version is compatible with other requirements. This could take a while.
Collecting ai-edge-model-explorer
  Using cached ai_edge_model_explorer-0.0.99-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.98-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.97-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.96-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.95-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.94-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.93-py3-none-any.whl.metadata (2.3 kB)
INFO: pip is still looking at multiple versions of ai-edge-model-explorer to determine which version is compatible with other requirements. This could take a while.
  Using cached ai_edge_model_explorer-0.0.92-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.91-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.90-py3-none-any.whl.metadata (2.3 kB)
  Using cached ai_edge_model_explorer-0.0.89-py3-none-any.whl.metadata (2.3 kB)
ERROR: Cannot install ai-edge-model-explorer==0.0.89, ai-edge-model-explorer==0.0.90, ai-edge-model-explorer==0.0.91, ai-edge-model-explorer==0.0.92, ai-edge-model-explorer==0.0.93, ai-edge-model-explorer==0.0.94, ai-edge-model-explorer==0.0.95, ai-edge-model-explorer==0.0.96, ai-edge-model-explorer==0.0.97, ai-edge-model-explorer==0.0.98, ai-edge-model-explorer==0.0.99 and ai-edge-model-explorer==0.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    ai-edge-model-explorer 0.1.0 depends on ai-edge-model-explorer-adapter==0.1.1
    ai-edge-model-explorer 0.0.99 depends on ai-edge-model-explorer-adapter==0.1.1
    ai-edge-model-explorer 0.0.98 depends on ai-edge-model-explorer-adapter==0.1.1
    ai-edge-model-explorer 0.0.97 depends on ai-edge-model-explorer-adapter==0.1.1
    ai-edge-model-explorer 0.0.96 depends on ai-edge-model-explorer-adapter==0.1.0
    ai-edge-model-explorer 0.0.95 depends on ai-edge-model-explorer-adapter==0.1.0
    ai-edge-model-explorer 0.0.94 depends on ai-edge-model-explorer-adapter==0.1.0
    ai-edge-model-explorer 0.0.93 depends on ai-edge-model-explorer-adapter==0.1.0
    ai-edge-model-explorer 0.0.92 depends on model-explorer-adapter==0.3.10
    ai-edge-model-explorer 0.0.91 depends on model-explorer-adapter==0.3.10
    ai-edge-model-explorer 0.0.90 depends on model-explorer-adapter==0.3.10
    ai-edge-model-explorer 0.0.89 depends on model-explorer-adapter==0.3.10

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
jinjingforever commented 6 months ago

Thank you for trying it out!

From the log messages looks like you are using the colab local runtime on windows (I might be wrong)? Unfortunately Model Explorer currently doesn't support native Windows.

You could try launching the colab local runtime in WSL if possible, or use its hosted runtime.

vrtnis commented 6 months ago

Ah that's exactly right- I tried it on windows. No worries, I'll move it to Linux. Thanks for the quick reply 🙏🏾, I'll close this