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] <title> Rip Config Open #550

Closed G5dwe1 closed 7 months ago

G5dwe1 commented 7 months ago

Describe the bug

Is it when we want to change the configuration in the config file. The phone must be rooted? If not, how do I resolve the error when saving config file changes? Thank You

Command Used

Rip config open

Debug Traceback

rip config open -vvv
Opening file at
/data/data/com.termux/files/home/.config/streamrip/config.toml
╭───────────── Traceback (most recent call last) ──────────────╮
│ /data/data/com.termux/files/usr/bin/rip:8 in <module>        │
│                                                              │
│   5 from streamrip.rip import rip                            │
│   6 if __name__ == '__main__':                               │
│   7 │   sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '',  │
│ ❱ 8 │   sys.exit(rip())                                      │
│   9                                                          │
│                                                              │
│ /data/data/com.termux/files/usr/lib/python3.11/site-packages │
│ /click/core.py:1157 in __call__                              │
│                                                              │
│                   ... 8 frames hidden ...                    │
│                                                              │
│ /data/data/com.termux/files/usr/lib/python3.11/subprocess.py │
│ :1026 in __init__                                            │
│                                                              │
│   1023 │   │   │   │   │   self.stderr = io.TextIOWrapper(se │
│   1024 │   │   │   │   │   │   │   encoding=encoding, errors │
│   1025 │   │   │                                             │
│ ❱ 1026 │   │   │   self._execute_child(args, executable, pre │
│   1027 │   │   │   │   │   │   │   │   pass_fds, cwd, env,   │
│   1028 │   │   │   │   │   │   │   │   startupinfo, creation │
│   1029 │   │   │   │   │   │   │   │   p2cread, p2cwrite,    │
│                                                              │
│ /data/data/com.termux/files/usr/lib/python3.11/subprocess.py │
│ :1948 in _execute_child                                      │
│                                                              │
│   1945 │   │   │   │   │   │   err_filename = orig_executabl │
│   1946 │   │   │   │   │   if errno_num != 0:                │
│   1947 │   │   │   │   │   │   err_msg = os.strerror(errno_n │
│ ❱ 1948 │   │   │   │   │   raise child_exception_type(errno_ │
│   1949 │   │   │   │   raise child_exception_type(err_msg)   │
│   1950                                                       │
│   1951                                                       │
╰──────────────────────────────────────────────────────────────╯
FileNotFoundError: [Errno 2] No such file or directory: 'vim'

Config File

None

Operating System

Termux (Android)

streamrip version

2.0.2

Screenshots and recordings

Screenshot_2024-01-13-14-15-17-830_com rhmsoft edit

Additional context

No response

nathom commented 7 months ago

I think you mean to do rip -v config open, which turns on debug mode. If you put a -v after open it will try to open in vim.

G5dwe1 commented 7 months ago

I try this rip -v config open. when I want to save changes access is denied