Bug 1885785 - dnfdragora-updater - Unexpected error: [Errno 20] Not a directory: '/usr/share/dnfdragora/images/dnfdragora.svg/dnfdragora-update.png'
Summary: dnfdragora-updater - Unexpected error: [Errno 20] Not a directory: '/usr/shar...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnfdragora
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-06 21:57 UTC by Marcin Zajaczkowski
Modified: 2020-10-12 21:56 UTC (History)
3 users (show)

Fixed In Version: dnfdragora-2.1.0-2.fc32 dnfdragora-2.1.0-2.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-12 00:39:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1876299 0 unspecified CLOSED dnfdragora-2.1.0 is available 2021-02-22 00:41:40 UTC

Description Marcin Zajaczkowski 2020-10-06 21:57:08 UTC
Description of problem:
After upgrade to 2.1.0 dnfdragora-updater doesn't start anymore.

Version-Release number of selected component (if applicable):
dnfdragora-2.1.0-1.fc32.noarch
dnfdragora-updater-2.1.0-1.fc32.noarch

How reproducible:
Always

Steps to Reproduce:
1. $ dnfdragora-updater

Actual results:

> $ dnfdragora-updater
> Try reading configuration file
> From ./dnfdragora.yaml
> Skipped exception: <[Errno 2] No such file or directory: './dnfdragora.yaml'> 
> From /etc/dnfdragora/dnfdragora.yaml
> Finally read user settings from /home/foobar/.config/dnfdragora.yaml
> Logging disabled
> [Errno 20] Not a directory: '/usr/share/dnfdragora/images/dnfdragora.svg/dnfdragora-update.png'
> Cannot open theme icon using default one /usr/share/dnfdragora/images/dnfdragora.svg/dnfdragora-update.png
> Unexpected error: [Errno 20] Not a directory: '/usr/share/dnfdragora/images/dnfdragora.svg/dnfdragora-update.png' 
> Closing dnfdragora-updater


Expected results:

It works

Additional info:

1. There seems to be something with image path building.
2. It would be good to put the new version (#1876299) to the testing repository first - I would provide feedback before making it available for everyone

Comment 1 Fedora Update System 2020-10-08 10:27:33 UTC
FEDORA-2020-c593958267 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c593958267

Comment 2 Marcin Zajaczkowski 2020-10-08 10:41:22 UTC
With dnfdragora-updater-2.1.0-2.fc32.noarch I see the following stacktrace when I start dnfdragora-updater from a terminal. I don't know how much critical it is.

> $ dnfdragora-updater
> Try reading configuration file
> From ./dnfdragora.yaml
> Skipped exception: <[Errno 2] No such file or directory: './dnfdragora.yaml'> 
> From /etc/dnfdragora/dnfdragora.yaml
> Finally read user settings from /home/foobar/.config/dnfdragora.yaml
> Logging disabled
> 
> (dnfdragora-updater:26035): Gdk-CRITICAL **: 12:30:30.064: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
> Exception in thread Thread-1:
> Traceback (most recent call last):
>   File "/usr/lib64/python3.8/threading.py", line 932, in _bootstrap_inner
>     self.run()
>   File "/usr/lib64/python3.8/threading.py", line 870, in run
>     self._target(*self._args, **self._kwargs)
>   File "/usr/lib/python3.8/site-packages/dnfdragora/updater.py", line 343, in __update_loop
>     self.__tray.notify(title='dnfdragora-update', message=_('%d updates available.') % self.__update_count)
>   File "/usr/lib/python3.8/site-packages/pystray/_base.py", line 234, in notify
>     self._notify(message, title)
>   File "/usr/lib/python3.8/site-packages/pystray/_util/gtk.py", line 81, in _notify
>     self._notifier.notify(title or self.title, message, self._icon_path)
>   File "/usr/lib/python3.8/site-packages/pystray/_util/notify_dbus.py", line 69, in notify
>     shutil.copy(icon, self._icon),
>   File "/usr/lib64/python3.8/shutil.py", line 415, in copy
>     copyfile(src, dst, follow_symlinks=follow_symlinks)
>   File "/usr/lib64/python3.8/shutil.py", line 261, in copyfile
>     with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
> FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpd9ew4mco'
> Try reading configuration file
> From ./dnfdragora.yaml
> Skipped exception: <[Errno 2] No such file or directory: './dnfdragora.yaml'> 
> From /etc/dnfdragora/dnfdragora.yaml
> Finally read user settings from /home/foobar/.config/dnfdragora.yaml
> Logging disabled
> <_M_> [ui] YUILoader.cc:50 loadUI(): DISPLAY: ":0"
> ...

Comment 3 Marcin Zajaczkowski 2020-10-08 11:31:39 UTC
And the notification about available updates is not shown.

Comment 4 Fedora Update System 2020-10-08 22:19:25 UTC
FEDORA-2020-c593958267 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c593958267`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c593958267

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Ed Greshko 2020-10-09 11:23:39 UTC
While this new version works when dnfdragora-updater-2.1.0-2.fc32.noarch is installed on an F32 system 
I get the following error on F33 with dnfdragora-2.1.0-2.fc33.noarch dnfdragora-updater-2.1.0-2.fc33.noarch
installed.

[egreshko@f33k ~]$ dnfdragora-updater 
Traceback (most recent call last):
  File "/usr/bin/dnfdragora-updater", line 36, in <module>
    import dnfdragora.updater
  File "/usr/lib/python3.9/site-packages/dnfdragora/updater.py", line 18, in <module>
    from pystray import Menu, MenuItem
  File "/usr/lib/python3.9/site-packages/pystray/__init__.py", line 48, in <module>
    Icon = backend().Icon
  File "/usr/lib/python3.9/site-packages/pystray/__init__.py", line 40, in backend
    return importlib.import_module(__package__ + '._' + module)
  File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/lib/python3.9/site-packages/pystray/_appindicator.py", line 22, in <module>
    gi.require_version('AppIndicator3', '0.1')
  File "/usr/lib64/python3.9/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

Comment 6 Fedora Update System 2020-10-10 13:07:25 UTC
FEDORA-2020-c593958267 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c593958267

Comment 7 Fedora Update System 2020-10-10 13:07:49 UTC
FEDORA-2020-53b413c557 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-53b413c557

Comment 8 Fedora Update System 2020-10-10 17:46:20 UTC
FEDORA-2020-c593958267 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c593958267`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c593958267

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-10-10 19:23:31 UTC
FEDORA-2020-53b413c557 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-53b413c557

Comment 10 Fedora Update System 2020-10-10 19:23:48 UTC
FEDORA-2020-c593958267 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c593958267

Comment 11 Fedora Update System 2020-10-10 23:00:42 UTC
FEDORA-2020-53b413c557 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-53b413c557`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-53b413c557

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2020-10-12 00:39:34 UTC
FEDORA-2020-53b413c557 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2020-10-12 21:56:59 UTC
FEDORA-2020-c593958267 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


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