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

RuntimeError: Directory 'C:\Users\myuser\.spotdl\web-ui\dist' does not exist #2177

Closed
uhlmul opened this issue Sep 2, 2024 · 3 comments
Closed
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@uhlmul
Copy link

uhlmul commented Sep 2, 2024

System OS

Windows

Python Version

3.11 (CPython)

Install Source

pip / PyPi

Install version / commit hash

4.2.7

Expected Behavior vs Actual Behavior

When i run "spotdl web"
 spotdl web
Using cached web app. To update use the --force-update-gui flag.
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in _run_module_as_main:198 │
│ in _run_code:88 │
│ │
│ in :7 │
│ │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotdl\console\entry_po │
│ int.py:53 in console_entry_point │
│ │
│ 52 │ else: │
│ ❱ 53 │ │ entry_point() │
│ 54 │
│ │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotdl\console\entry_po │
│ int.py:119 in entry_point │
│ │
│ 118 │ │ # Start web ui │
│ ❱ 119 │ │ web(web_settings, downloader_settings) │
│ 120 │
│ │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotdl\console\web.py:1 │
│ 18 in web │
│ │
│ 117 │ │ "/", │
│ ❱ 118 │ │ SPAStaticFiles(directory=web_app_dir, html=True), │
│ 119 │ │ name="static", │
│ │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\starlette\staticfiles.p │
│ y:57 in init
│ │
│ 56 │ │ if check_dir and directory is not None and not os.path.isdir(directory): │
│ ❱ 57 │ │ │ raise RuntimeError(f"Directory '{directory}' does not exist") │
│ 58 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Directory 'C:\Users\santi.spotdl\web-ui\dist' does not exist

Steps to reproduce - Ensure to include actual links!

spotdl web

Traceback

 spotdl web
Using cached web app. To update use the `--force-update-gui` flag.
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ in _run_module_as_main:198                                                                       │
│ in _run_code:88                                                                                  │
│                                                                                                  │
│ in <module>:7                                                                                    │
│                                                                                                  │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotdl\console\entry_po │
│ int.py:53 in console_entry_point                                                                 │
│                                                                                                  │
│    52 │   else:                                                                                  │
│ ❱  53 │   │   entry_point()                                                                      │
│    54                                                                                            │
│                                                                                                  │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotdl\console\entry_po │
│ int.py:119 in entry_point                                                                        │
│                                                                                                  │
│   118 │   │   # Start web ui                                                                     │
│ ❱ 119 │   │   web(web_settings, downloader_settings)                                             │
│   120                                                                                            │
│                                                                                                  │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\spotdl\console\web.py:1 │
│ 18 in web                                                                                        │
│                                                                                                  │
│   117 │   │   "/",                                                                               │
│ ❱ 118 │   │   SPAStaticFiles(directory=web_app_dir, html=True),                                  │
│   119 │   │   name="static",                                                                     │
│                                                                                                  │
│ C:\Users\santi\AppData\Local\Programs\Python\Python312\Lib\site-packages\starlette\staticfiles.p │
│ y:57 in __init__                                                                                 │
│                                                                                                  │
│    56 │   │   if check_dir and directory is not None and not os.path.isdir(directory):           │
│ ❱  57 │   │   │   raise RuntimeError(f"Directory '{directory}' does not exist")                  │
│    58                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Directory 'C:\Users\santi\.spotdl\web-ui\dist' does not exist

Other details

Python version 3.12.5 pip 24.2

@uhlmul uhlmul added the Bug Unexpected problem or unintended behavior that needs to be fixed label Sep 2, 2024
@R0GUE-A5H
Copy link
Contributor

R0GUE-A5H commented Sep 2, 2024

I have already issued a fix for that in #2175. However, I still need to work on it because the web app doesn't use caching yet. It updates and downloads from the repository every time.

For now, you can download the required files from this link. Please download the favicon assets folder and the index.html file, then place them in:

C:\Users\santi.spotdl\web-ui\dist\ (you will need to create the dist folder since it doesn't exist)

@xnetcat xnetcat mentioned this issue Sep 2, 2024
10 tasks
@Smoodie7
Copy link

Smoodie7 commented Sep 3, 2024

I have the same issue too on my arm mac, and intel mac.

@xnetcat
Copy link
Member

xnetcat commented Sep 6, 2024

fixed in v4.2.8

@xnetcat xnetcat closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

No branches or pull requests

4 participants