axcore / tartube

A GUI front-end for youtube-dl, partly based on youtube-dl-gui and written in Python 3 / Gtk 3
GNU Lesser General Public License v2.1
1.92k stars 105 forks source link

error accessing system preferences #594

Closed 7uxifer closed 7 months ago

7uxifer commented 8 months ago

Thanks for taking the time to submit a bug report! Please include the following information:

What operating system are you using?

Fedora 38

What version of Tartube are you using?

2.4.412

I'm using yt-dlp, so I try to go into the settings to set the path ( Edit | system preferences...), and I get an error. Interestingly the 'copy selected' button in the Errors/Warnings section does nothing, so I am writing the error by hand

Uncaught exception: Type: <class 'ValueError'> Value: 'ytdl_update_default_path' is not in list Traceback: File /usr/lib/python3.11/site-packages/tartube/mainapp.py", line 25539 ... ... File "/usr/lib/python3.11/site-packages/tartube/config.py", line 26779 in setup_downloader_paths_tab self.app_obj.ytdl_update_list.index(

7uxifer commented 8 months ago

trying File | database preferences... gives the same error

axcore commented 8 months ago

I can't see what is causing the problem; if copy and paste is not working, can you take a screenshot of the Errors/Warnings tab, showing the whole error?

7uxifer commented 8 months ago

2023-10-23_13-35

axcore commented 8 months ago

Do you know where tartube's config file is? You don't specify which of the million different installation methods you used, so I can't guess it; the file is called settings.json

If you can find it, open it in a text editor and show me the list called ytdl_update_list. This is what mine looks like:

updatelist2

7uxifer commented 8 months ago

installation: downloaded the rpm. did rpm -ivh filename.rpm.
here's my settings: 2023-10-24_09-59

7uxifer commented 8 months ago

I should note, I do not have youtube-dl installed, only yt-dlp

7uxifer commented 8 months ago

more joy. see below

[dave@horus Downloads] $ sudo rpm -ivh tartube-2.4.412.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] package tartube-2.4.412-1.noarch is already installed [dave@horus Downloads] $ tartube Traceback (most recent call last): File "/usr/bin/tartube", line 42, in import mainapp ModuleNotFoundError: No module named 'mainapp' [dave@horus Downloads] $ sudo rpm -e tartube-2.4.412.rpm error: package tartube-2.4.412.rpm is not installed [dave@horus Downloads] $ sudo rpm -ivh tartube-2.4.412.rpm Verifying... ################################# [100%] Preparing... ################################# [100%] package tartube-2.4.412-1.noarch is already installed [dave@horus Downloads] $ which tartube /usr/bin/tartube [dave@horus Downloads] $ tartube Traceback (most recent call last): File "/usr/bin/tartube", line 42, in import mainapp ModuleNotFoundError: No module named 'mainapp' [dave@horus Downloads] $

7uxifer commented 8 months ago

ok, I did a hard manual delete of all files and reinstall using rpm and it is working. Unknown what the issue was, but it works now.

axcore commented 8 months ago

Great, I think I understand what the problem is, though I'll do some more testing to make sure.

If you need to re-install Tartube between now and the next release, make sure you're not using the .rpm marked STRICT, as that's the broken one.

Re-opening so I don't forget to do it.

axcore commented 7 months ago

Fixed in v2.4.429.