Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install failed #1332

Open
MrMic opened this issue Oct 6, 2024 · 3 comments
Open

Install failed #1332

MrMic opened this issue Oct 6, 2024 · 3 comments

Comments

@MrMic
Copy link

MrMic commented Oct 6, 2024

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,

@aarondr77
Copy link
Member

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.

@MrMic
Copy link
Author

MrMic commented Oct 8, 2024

pip_list.txt

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

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

@Cirr0e
Copy link

Cirr0e commented Nov 28, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants