nathom / streamrip

A scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer
GNU General Public License v3.0
2.55k stars 219 forks source link

[BUG] Unable to create a new config bug #531

Closed Kincior closed 8 months ago

Kincior commented 8 months ago

Describe the bug

After upgrading to 2.0 just now, the app says that the config file doesn't exist and can't create a new one.

Command Used

rip url xyz
rip config open

Debug Traceback

C:\Users\Patryk>rip config open
No file found at C:\Users\Patryk\AppData\Roaming\streamrip\config.toml, creating default config.
┌─────────────────────────────── Traceback (most recent call last) ────────────────────────────────┐
│ in _run_module_as_main:198                                                                       │
│ in _run_code:88                                                                                  │
│                                                                                                  │
│                                     ... 9 frames hidden ...                                      │
│                                                                                                  │
│ C:\Users\Patryk\AppData\Local\Programs\Python\Python311\Lib\shutil.py:419 in copy                │
│                                                                                                  │
│    416 │   """                                                                                   │
│    417 │   if os.path.isdir(dst):                                                                │
│    418 │   │   dst = os.path.join(dst, os.path.basename(src))                                    │
│ >  419 │   copyfile(src, dst, follow_symlinks=follow_symlinks)                                   │
│    420 │   copymode(src, dst, follow_symlinks=follow_symlinks)                                   │
│    421 │   return dst                                                                            │
│    422                                                                                           │
│                                                                                                  │
│ C:\Users\Patryk\AppData\Local\Programs\Python\Python311\Lib\shutil.py:258 in copyfile            │
│                                                                                                  │
│    255 │   else:                                                                                 │
│    256 │   │   with open(src, 'rb') as fsrc:                                                     │
│    257 │   │   │   try:                                                                          │
│ >  258 │   │   │   │   with open(dst, 'wb') as fdst:                                             │
│    259 │   │   │   │   │   # macOS                                                               │
│    260 │   │   │   │   │   if _HAS_FCOPYFILE:                                                    │
│    261 │   │   │   │   │   │   try:                                                              │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Patryk\\AppData\\Roaming\\streamrip\\config.toml'

Config File

none?

Operating System

Windows 10

streamrip version

2.0

Screenshots and recordings

No response

Additional context

No response

nathom commented 8 months ago

Try creating the directory C:\Users\Patryk\AppData\Roaming\streamrip

nathom commented 8 months ago

Added a quickfix in v2.0.2.