Skip to content

[Bug] Problems with the Windows/Powershe installer if your username profile contains spaces. #10722

Closed

Description

@chriswinslow

name: Unsloth Studio Bug
about: Report a problem with the Unsloth Studio desktop app or web UI
title: "[Unsloth Bug] Problems with the Windows/Powershe installer if your username profile contains spaces."
labels: bug
assignees: ""

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version: Windows 11 Home Edition

GPU model(s) and accelerator backend:
RTX3080 and GTX1080

Versions:
Unsloth Version
v0.1.808-beta
Package Version
2026.9.4
Desktop App Version
0.1.808-beta
llama.cpp Version
b10840-mix-d5c17a0

What happened?

Steps to reproduce:
Installing Unslouth Desktop using a user account profile containing a space, such as C:\Users\John Doe, will fail. Because the installer will truncate all characters preceding a space, preventing access to the user profile's temp folder, i.e, C:\Users\John Doe\AppData\Local\Temp.

The way to get around this is to temporarily set the user profile's temp folder to a location containing no spaces, such as C:\Windows\Temp (The unsloth team should set this as the default folder).

Before changing your user profile's temp folder. Make sure no Windows updates are pending.

You can edit your user profile temp folder by typing Edit environment variables for your account in the Windows Start menu. In the top options, in the "User variables [YOUR USERNAME]" section, look for two variables TEMP and TMP make a note of their values by double-clicking them; they will contain something like %USERPROFILE%\AppData\Local\Temp Then change both of them to something like C:\Windows\Temp Now restart Windows and restart the Unsloth installation; you should find no more errors like the ones below. After the installation has finished, set your user profile TEMP and TMPfolder back to the previously noted values and then restart Windows once more.

I'm guessing, when an update is available, you will need to repeat these steps.

Expected behavior:
Installation to complete

Actual behavior:
Installation fails

Model and operation involved: N/A

Diagnostics and logs

Desktop application

Click Copy Diagnostics on the error, startup, or update screen and paste the
result below:

🦥 Unsloth Studio Installer (Windows)
────────────────────────────────────────────────────

[TAURI:STEP] Checking system dependencies
winget available
[TAURI:STEP] Installing Python
python Python 3.12 already installed
[TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.12 skip_torch=false mac_intel=false gpu_branch=unknown torch_index_family=none
[TAURI:STEP] Installing uv package manager
uv cache reusing existing shared cache ($HOME\AppData\Local\uv\cache) to avoid duplicate Torch/CUDA downloads; use --isolated-uv-cache to isolate
[TAURI:STEP] Creating virtual environment
venv creating Python 3.12 virtual environment
<studio_home>\unsloth_studio
[TAURI:OUTPUT_CLEAR] create virtual environment
[TAURI:ERROR_CLEAR] create virtual environment recovered
[TAURI:ERROR_CLEAR] create virtual environment recovered
gpu NVIDIA GPU detected
pre-Turing NVIDIA GPUs (sm_<75) are present -- selecting cu126, because PyTorch 2.11's cu130 wheels start at sm_75
[TAURI:DIAG] diag_schema=1 platform=windows arch=x86_64 python_version=3.12 skip_torch=false mac_intel=false gpu_branch=cuda torch_index_family=cu126
[TAURI:STEP] Installing PyTorch
installing PyTorch (https://download.pytorch.org/whl/cu126)...
[TAURI:OUTPUT_CLEAR] install PyTorch
[TAURI:ERROR_CLEAR] install PyTorch recovered
[TAURI:ERROR_CLEAR] install PyTorch recovered
[TAURI:STEP] Installing unsloth
installing unsloth (this may take a few minutes)...
[TAURI:OUTPUT_CLEAR] install unsloth
warning: Requirements file %USERPROFILE% does not contain any dependencies error: File not found: Doe\AppData\Local\Temp\tmpB12C.tmp`

[TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
retrying "install unsloth" after transient failure (attempt 2/3, waiting 3s)...
[TAURI:OUTPUT_CLEAR] install unsloth
warning: Requirements file %USERPROFILE% does not contain any dependencies error: File not found: Doe\AppData\Local\Temp\tmpB12C.tmp`

[TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
retrying "install unsloth" after transient failure (attempt 3/3, waiting 6s)...
[TAURI:OUTPUT_CLEAR] install unsloth
warning: Requirements file %USERPROFILE% does not contain any dependencies error: File not found: Doe\AppData\Local\Temp\tmpB12C.tmp`

[TAURI:ERROR_OUTPUT] install unsloth failed (exit code 2)
[ERROR] Failed to install unsloth (exit code 2)
[TAURI:ERROR_DEFAULT] Failed to install unsloth (exit code 2)


== Collection warnings ==
- <studio_home>\tauri.log.1 unavailable: The system cannot find the file specified. (os error 2)

== Redaction/omission summary ==
redaction_replacements=70
redaction_scope=ANSI, private keys, URL credentials, auth headers, cookies, token patterns, assignment-style secrets, studio/home paths, emails
report_bounds=log sections <=1000 lines/200KiB each; backend session logs <=400 lines/64KiB each; total clipboard text <=1MiB
known_v1_gap=elevated apt helper may buffer subprocess output before diagnostics caps it
known_v1_gap=normal install elevation resume is linked in same-run state/report history; disk fallback conservatively includes recent install attempts but has no explicit install_group_id in V1

Activity

  1. added
    feature request
    on Sep 10, 2026
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

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions