mito icon indicating copy to clipboard operation
mito copied to clipboard

Install failed

Open MrMic opened this issue 1 year ago • 3 comments

Hi,

As described I have:

$> python -m pip install mitoinstaller
=> OK

$> python -m mitoinstaller install
Starting Mito install. This make take a few moments.

In the meantime, check out a 2 minute intro to Mito: https://www.youtube.com/watch?v=LFfWfqzdKyE

Upgrade mitoinstaller
Setting up environment
Check dependencies
Traceback (most recent call last):
  File "/home/mic/.pyenv/versions/jupyter_env/lib/python3.10/site-packages/mitoinstaller/installer_steps/installer_step.py", line 44, in execute
    self.execution_function()
  File "/home/mic/.pyenv/versions/jupyter_env/lib/python3.10/site-packages/mitoinstaller/installer_steps/mitosheet_installer_steps.py", line 37, in install_step_mitosheet_check_dependencies
    raise Exception('Installed extensions {extension_names}'.format(extension_names=extension_names))
Exception: Installed extensions ['jupyterlab_pygments', 'jupyterlab-plotly', 'jupyterlab-wakatime', 'jupyterlab-quarto', 'codeium-jupyter', '@jupyter-notebook/lab-extension', '@jupyter-widgets/jupyterlab-manager']

Can you fix what happened? Rgds,

MrMic avatar Oct 06 '24 17:10 MrMic

Hey @MrMic thanks for opening this issue + sorry for the troubles! The installation might have failed for a few reasons. Can you share here the list of Python packages in this environment? I'll take a look for incompatibilities.

aarondr77 avatar Oct 08 '24 18:10 aarondr77

pip_list.txt

Here it is @aarondr77 And thanks for troubleshooting this issue.

I'm eager to read how to fix it. Rgds,

MrMic avatar Oct 08 '24 18:10 MrMic

I see what's happening here. The installation is failing because of two main issues:

  1. The dependency check is detecting existing JupyterLab extensions that might conflict with the installation
  2. There might be a caching issue during the installation process

Here's how to fix it:

  1. First, create a fresh virtual environment to avoid conflicts:
python -m venv mito_env
source mito_env/bin/activate  # On Windows, use: mito_env\Scripts\activate
  1. Then install with the no-cache flag:
python -m pip install mitoinstaller
python -m mitoinstaller install --no-cache-dir

This solution is based on:

  1. The installer code from mitosheet_installer_steps.py which shows the dependency checking logic
  2. Previous successful installations documented in realinstall.sh
  3. Known issues with pip caching during installation

Important notes:

  • The --no-cache-dir flag helps avoid getting stuck during installation
  • Installing in a fresh virtual environment prevents conflicts with existing extensions
  • Make sure you're using Python 3.7 or higher, but not Python 3.12 (as it's not yet supported)

Let me know if you run into any issues with these steps, and I'll be happy to help further!

Cirr0e avatar Nov 28 '24 18:11 Cirr0e