Skip to content

[Bug] Error on second launch of macos app #8610

Closed

Description

@mblakele

Note: Please do not remove the questions. Answer beside them.

  1. Did you update? pip install --upgrade unsloth unsloth_zoo: N/A
  2. Colab or Kaggle or local / cloud: N/A
  3. Number GPUs used, use nvidia-smi:  Apple M4 Pro
  4. Which notebook? Please link! N/A
  5. Which Unsloth version, TRL version, transformers version, PyTorch version? Unsloth-Desktop-0_1_701_beta-MacOS
  6. Which trainer? SFTTrainer, GRPOTrainer etc: N/A
Put Minimal code to reproduce error here ###Remove Hugging Face token###
###Please make sure to check formatting properly, edit if needed.###
N/A

First launch of Unsloth-Desktop-0_1_701_beta-MacOS works as expected and functions as expected. On second launch, the app gets stuck and fails with [ERROR] Repair finished, but Unsloth install is still not desktop-ready.

diagnostics.txt

At this point the Copy Diagnostics button does nothing. I generated the logs above by starting Unsloth Desktop from a terminal window.

Workaround: quit unsloth app, trash $HOME/.unsloth/studio, and relaunch app.

🦥 You can also ask via our Reddit page: https://reddit.com/r/unsloth/

Activity

  1. karanlyadav-code commented on Aug 12, 2026

    @karanlyadav-code

    can you assign this to me @mblakele ?

  2. mahiatlinux commented on Aug 12, 2026

    @mahiatlinux
    Contributor
  3. Lyxot commented on Aug 13, 2026

    @Lyxot
    Collaborator

    Is it always happening? After your workaround, can second launch succeed?

    The problem is somehow you installed unsloth 2026.8.4, which is lower than desktop app's requirement 2026.8.15. Then it executed repair and unsloth studio update from that old version, which is broken. We will fix this but those broken old versions can still not work. So the best resolution for you now, as is your workaround, uninstall unsloth studio and then retry install it from desktop app, or manually update via command curl -fsSL https://unsloth.ai/install.sh | sh

  4. mblakele commented on Aug 13, 2026

    @mblakele
    Author

    @Lyxot yes the error continues to happen after each cycle of: remove ~/.unsloth/studio, launch, quit, launch.

    No idea how I'd have any version other than the one from Unsloth-Desktop-0_1_701_beta-MacOS.dmg.

    Upgrade? Ah, ~/.unsloth/studio is a venv so the instructions to upgrade manually are:

    1. cd ~/.unsloth/studio`
    2. source unsloth_studio/bin/activate
    3. pip install --upgrade unsloth unsloth_zoo

    After that, the app seems to launch as expected. Thanks!

  5. Lyxot commented on Aug 14, 2026

    @Lyxot
    Collaborator

    A custom uv or pip setting may cause you installed old version.

    Could you share the output of these commands?

    uv --version
    python3 -m pip config debug
    cat ~/.config/uv/uv.toml 2>/dev/null

    Please remove any passwords or tokens before posting.

  6. mblakele commented on Aug 14, 2026

    @mblakele
    Author
    $ uv --version
    uv 0.12.3 (Homebrew 2026-08-07 aarch64-apple-darwin)
    $ python3 -m pip config debug
    env_var:
    env:
    global:
      /Library/Application Support/pip/pip.conf, exists: False
    site:
      /opt/homebrew/Caskroom/miniforge/base/pip.conf, exists: False
    user:
      /Users/fubar/.pip/pip.conf, exists: False
      /Users/fubar/.config/pip/pip.conf, exists: False
    $ cat ~/.config/uv/uv.toml 2>/dev/null
    exclude-newer = "7 days"
    
  7. mblakele commented on Aug 14, 2026

    @mblakele
    Author

    I ran into a similar error when updating to today's release (v0.1.800). The workaround at #8610 (comment) seems to have fixed it.

  8. Lyxot commented on Aug 14, 2026

    @Lyxot
    Collaborator

    There's exclude-newer = "7 days" in your uv config, so it installed a old version of unsloth. same with #8530 (comment)

  9. mattaustin commented on Aug 18, 2026

    @mattaustin

    I encountered this bug today, (I have exclude-newer specified in my user uv config), on Ubuntu.

    In terms of a bug then, I guess if the unsloth install health check wants to be more robust and isolated whilst managing itself, it would need to ensure valid user/global uv configs (in ~/.config/uv, or /etc) don't cause problems/conflicts (either by overriding settings like exclude-newer, or by completely ignoring those config files).

    A better solution might be that the unsloth install health checker can handle and respect the exclude-newer setting. People set this to help protect them from a malicious upload to pypi that may go unnoticed for a short time. Ideally, unsloth should respect this too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions