Bug 30039 - Tartube 2.3.042-1 system preferences not working, need to update downloder
Summary: Tartube 2.3.042-1 system preferences not working, need to update downloder
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-12 13:15 CET by Lloyd Osten
Modified: 2024-08-22 23:02 CEST (History)
3 users (show)

See Also:
Source RPM: tartube.2.3.042-1.mga8, tartube 2.3.332.mag8
CVE:
Status comment: Upstream version OK, see c4


Attachments
Update downloader window (37.48 KB, image/png)
2022-02-12 14:14 CET, sturmvogel
Details
Upstream update downloader window (52.93 KB, image/png)
2022-02-12 14:17 CET, sturmvogel
Details

Description Lloyd Osten 2022-02-12 13:15:52 CET
Description of problem:

Under Edit -> System Preferences....clicking on System Preferences has no effect at all. Nothing happens. There are no choices that show up


Version-Release number of selected component (if applicable):

v2.3.042-1, also 2.3.332


How reproducible:

Always


Steps to Reproduce:
1.Open Tartube
2.Click "Edit."
3.Click "System Preferences.."


When I click on "System Preferences", nothing appears to happen. It just grays out, but no preferences show up.
Lloyd Osten 2022-02-12 13:17:11 CET

Hardware: All => x86_64
CC: (none) => lloyd.osten

Comment 1 sturmvogel 2022-02-12 13:35:41 CET
Please change the titel to something meaningfull: Tartube 2.3.042-1 system preferences not working


Bug confirmed. Console output whilst trying to open system settings inside of tartube:
raceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/tartube/mainapp.py", line 18983, in on_menu_system_preferences
    config.SystemPrefWin(self)
  File "/usr/lib/python3.8/site-packages/tartube/config.py", line 9235, in __init__
    self.setup()
  File "/usr/lib/python3.8/site-packages/tartube/config.py", line 98, in setup
    self.setup_tabs()
  File "/usr/lib/python3.8/site-packages/tartube/config.py", line 9409, in setup_tabs
    self.setup_downloader_tab()
  File "/usr/lib/python3.8/site-packages/tartube/config.py", line 12591, in setup_downloader_tab
    self.setup_downloader_paths_tab(inner_notebook)
  File "/usr/lib/python3.8/site-packages/tartube/config.py", line 12847, in setup_downloader_paths_tab
    self.app_obj.ytdl_update_list.index(
ValueError: 'ytdl_update_default_path' is not in list
Comment 2 sturmvogel 2022-02-12 13:56:26 CET
Latest upstream release tartube v2.3.367 doesn't have this problem
https://github.com/axcore/tartube/releases/tag/v2.3.367
Comment 3 sturmvogel 2022-02-12 14:14:52 CET
Created attachment 13127 [details]
Update downloader window

I did an additional test with tartube v2.3.042 from upstream (the version which we have packaged).

Upstream version works. The problem with our package is that an important step whilst initial tartube setup is skipped.
Atached a screenshot from upstream version v2.3.042 that shows that tartube want to update the downloader (youtube-dl). This step is not possible with our packaged version: this dialog doesn't even show up whilst initial tartube setup.
Comment 4 sturmvogel 2022-02-12 14:17:15 CET
Created attachment 13128 [details]
Upstream update downloader window

When the attempted update of the downloader (in upstream tartube version) is done, everything works fine.
Comment 5 Morgan Leijström 2022-02-12 14:56:33 CET
Thank you Lloyd for reporting, and sturmvogel for the analysis

Assigning to maintainer.

@sturmvogel: have you asked for rights to edit fields?

CC: (none) => fri
Status comment: (none) => Upstream version OK, see c4
Summary: system prefernces does nothing => Tartube 2.3.042-1 system preferences not working, need to update downloder
Assignee: bugsquad => thierry.vignaud

Comment 6 Dave Hodgins 2022-02-12 16:06:36 CET
I've added the edit fields privilege for sturmvogel and Lloyd Osten.

CC: (none) => davidwhodgins

Comment 7 Lloyd Osten 2022-02-14 13:40:09 CET
I tried manually installing tartube 2.3.367 from source. After creating a couple

of directories for Python 3.8, it seemed to install correctly. The command I used 

to install Tartube (as per the instructions) was python3 setup.py install I have 

the tartube executable in /usr/local/bin. However, when I start it from a terminal 

(Konsole) I get errors. I'm sorry, I can't see anywhere to attach error files...so 

I'm just showing the terminal output.

1.Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/mainapp.py", line 2870, in do_activate
    self.start()
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/mainapp.py", line 2967, in start
    self.main_win_obj = mainwin.MainWin(self)
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/mainwin.py", line 747, in __init__
    self.setup_pixbufs()
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/mainwin.py", line 875, in setup_pixbufs
    GdkPixbuf.Pixbuf.new_from_file(full_path),
gi.repository.GLib.Error: g-file-error-quark: Failed to open file “/usr/share/tartube/icons/win/system_icon_16.png”: No such file or directory (4)

2.Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/mainapp.py", line 22908, in on_menu_system_preferences
    config.SystemPrefWin(self)
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/config.py", line 16520, in __init__
    self.setup()
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/config.py", line 107, in setup
    self.setup_tabs()
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/config.py", line 16745, in setup_tabs
    self.setup_downloader_tab()
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/config.py", line 21523, in setup_downloader_tab
    self.setup_downloader_paths_tab(self.downloader_inner_notebook)
  File "/usr/local/lib/python3.8/site-packages/tartube-2.3.367-py3.8.egg/tartube/config.py", line 21849, in setup_downloader_paths_tab
    self.app_obj.ytdl_update_list.index(
ValueError: 'ytdl_update_default_path' is not in list
Comment 8 sturmvogel 2022-02-14 16:14:43 CET
You have to delete your old tartube config under ./config as the upstream package will try to use your old config which is already borked with the non existing upgrade path.

I did run it without installation as described here:
https://github.com/axcore/tartube/blob/master/README.rst#5310-run-without-installing
Comment 9 Lloyd Osten 2022-02-14 16:45:21 CET
I will try that. Thank you. I’ll let you know if it worked.
Comment 10 sturmvogel 2022-02-14 21:05:30 CET
This is for Thierry (and Lloyd if he wants to use the Mageia package).

@Thierry: This applies to our actual packaged version v2.3.042-1
After first start of tartube the settings.json file gets created. I found the relevant part in it which causes this problem.

Not working:
58 "ytdl_bin": "youtube-dl",
59 "ytdl_path_default": "/usr/bin/youtube-dl",
60 "ytdl_path": "/usr/bin/youtube-dl",
61 "ytdl_update_dict": {
62     "ytdl_update_disabled": []
63 },
64 "ytdl_update_list": [
65     "ytdl_update_disabled"
66 ],
67 "ytdl_update_current": "ytdl_update_default_path",



if i change line 67 to 
67 "ytdl_update_current": "ytdl_update_disabled",

everthing works fine.

I'm not sure if you can achive this within the spec file or how it could be done that the setting file get changed to this working version.
Comment 11 Lloyd Osten 2022-02-15 14:18:48 CET
I don't know exactly what I did, but I deleted pretty much everything tartube-related. Just now, I installed tartube-2.3.332.rpm. When I clicked on "about", it came up as 2.3.367 and system preferences is now working!
Comment 12 sturmvogel 2022-02-15 14:34:21 CET
Where do you have tartube-2.3.332.rpm from? It's no Mageia package. That fits to my findings that upstream versions work. We have to disable additional download of ressources whilst the application is run. There the problems arise, because maybe the  environment variable "TARTUBE_PKG_STRICT=1" from upstream doesn't properly disable the download function, so that packages will brake.
Comment 13 Lloyd Osten 2022-02-16 14:13:27 CET
I think I may have gotten tartube-2.3.332 from rpmfind.net or sourceforge. At any rate, it is working now. I'm hoping that tartube-2.3.367 makes it into Mageia 9.
Comment 14 Thierry Vignaud 2022-02-16 15:35:49 CET
I pushed tartube-2.3.367-1.mga9 to Cauldron
Comment 15 Thierry Vignaud 2022-02-16 15:40:56 CET
If it works fine for you, we can backport it to mga8 as an update
Thierry Vignaud 2022-02-16 15:41:03 CET

Keywords: (none) => NEEDINFO

Comment 16 sturmvogel 2022-02-16 17:02:45 CET
On a freshly updated Cauldron system tartube-2.3.367-1.mga9 wont start at all. Error:
$ tartube
Traceback (most recent call last):
  File "/usr/bin/tartube", line 40, in <module>
    import mainapp
  File "/usr/lib/python3.10/site-packages/tartube/mainapp.py", line 96, in <module>
    import config
  File "/usr/lib/python3.10/site-packages/tartube/config.py", line 54, in <module>
    from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg
ModuleNotFoundError: No module named 'matplotlib.backends.backend_gtk3agg'


After manual installation of python3-matplotlib-gtk3-3.3.3-3.mga9 tartube starts. But why is this python lib a dependency for tartube?

The originial problem that System Preferences won't open is solved with tartube-2.3.367-1.mga9
Comment 17 sturmvogel 2022-02-16 17:07:46 CET
(In reply to sturmvogel from comment #16)
> But why is this python lib a dependency for tartube?

My bad. It is a dependency according github page. But we are missing it in our cauldron tartube package.
sturmvogel 2022-02-16 17:09:07 CET

Keywords: NEEDINFO => (none)

Comment 18 Lloyd Osten 2022-02-16 19:08:22 CET
(In reply to Thierry Vignaud from comment #15)
> If it works fine for you, we can backport it to mga8 as an update

That would be good...:-)

Thank you!
Comment 19 Lloyd Osten 2022-02-17 14:33:17 CET
So, I just updated my Mageia 8 installation to Cauldron. After creating a couple of directories that said were missing (by the tartube installation script) and updating and installing more dependencies...I'm happy to say that tartube-2.3.367.mga9 is working!
Comment 20 Lloyd Osten 2022-02-17 14:48:55 CET
I honestly can't rember if I installed Tartube from the RPM or whether I installed it from source code. It might have been a combination of both.
Comment 21 sturmvogel 2022-02-17 15:44:48 CET
(In reply to Lloyd Osten from comment #20)
> I honestly can't rember if I installed Tartube from the RPM or whether I
> installed it from source code. It might have been a combination of both.

Good that it works for you now. But to be able to build a properly working package for all people we need to be precise as possible. Mixing packages/configurations will propably lead to an unsatisfactory result for others who will install this package.



(In reply to Lloyd Osten from comment #19)
> and installing more dependencies...

Can you tell at least if you also had to install python3-matplotlib-gtk3-3.3.3-3.mga9 to get tartube running or was it pulled in as dependency?
Comment 22 sturmvogel 2022-02-17 16:25:29 CET
I have setup a completely new cauldron VB (Plasma 64bit) for testing purposes.

tartube-2.3.367-1.mga9 doesn't start because of a missing dependency.

$ tartube
Traceback (most recent call last):
  File "/usr/bin/tartube", line 40, in <module>
    import mainapp
  File "/usr/lib/python3.10/site-packages/tartube/mainapp.py", line 96, in <module>
    import config
  File "/usr/lib/python3.10/site-packages/tartube/config.py", line 54, in <module>
    from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg
ModuleNotFoundError: No module named 'matplotlib.backends.backend_gtk3agg'

The packet python3-matplotlib-gtk3-3.3.3-3.mga9 needs to be added as dependency. After that everything works fine including all menues.
Comment 23 Thierry Vignaud 2022-02-18 13:39:31 CET
Fixed in tartube-2.3.367-2.mga9
Comment 24 sturmvogel 2022-02-19 09:49:45 CET
Fresh test (deleted settings and deps before):

- tartube-2.3.367-2.mga9 installs without problems
- all deps get pulled in
- tartube opens
- all settings are accessible, so the originial problem is solved

Plasma MGA9 64bit OK
Comment 25 Lloyd Osten 2022-03-01 13:44:29 CET
I think I may have found another bug in Tartube 2.3.367

Under Edit->System Preferences->Windows->Websites, there are four checkboxes. Three of them work when I click OK. The one that does NOT work. The checkbox for "ignore YouTube age-restriction errors" does not stay checked. As soon as I hit OK, the window disappears, as expected. Re-opening the window shows that particular box is unchecked.
Comment 26 Marja Van Waes 2024-08-22 23:02:49 CEST
We stopped supporting Mageia 8 almost 8 months ago 
https://blog.mageia.org/en/2023/12/30/mageia-8-end-of-life/

That means we also stopped fixing Mageia 8 bugs and that this bug report needs to be closed, regardless of whether it was fixed for Mageia 8 or not.

If this particular bug did not get fixed for Mageia 8, then we do regret that.

If this issue is still present in Mageia 9 or cauldron, then please reopen this report, write a comment and adjust the "Version:" field.

If you are not yet a member of one or our teams, then please consider becoming one. https://wiki.mageia.org/en/Contributing
Mageia is a community project, meaning that we, the users, make Mageia together.

The more active contributors we have, the more bug reports will get fixed.
Besides, being active in a team can be very rewarding. It was and is certainly rewarding to me :-D

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.