Bug 698955

Summary: [abrt] gnome-tweak-tool-3.0.0-1.fc15: zipfile.py:699:__init__:IOError: [Errno 2] No such file or directory: '/usr/share/themes/Macbuntu/Macbuntu'
Product: [Fedora] Fedora Reporter: Igor Katalnikov <igor.katalnikov>
Component: gnome-tweak-toolAssignee: Michel Alexandre Salim <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: michel
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:22d7a49824bc699237ad0a9a904d4ce029f8ebbb
Fixed In Version: gnome-tweak-tool-3.0.3-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 05:02:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace none

Description Igor Katalnikov 2011-04-22 12:34:54 UTC
abrt version: 2.0.1
comment: Trying to change theme
executable: /usr/bin/gnome-tweak-tool
cmdline: python /usr/bin/gnome-tweak-tool
component: gnome-tweak-tool
uid: 500
kernel: 2.6.38.2-9.fc15.i686
reason: zipfile.py:699:__init__:IOError: [Errno 2] No such file or directory: '/usr/share/themes/Macbuntu/Macbuntu'
package: gnome-tweak-tool-3.0.0-1.fc15
username: igor
architecture: i686
os_release: Fedora release 15 (Lovelock)
time: 1303475521

backtrace
-----
zipfile.py:699:__init__:IOError: [Errno 2] No such file or directory: '/usr/share/themes/Macbuntu/Macbuntu'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_shell.py", line 133, in _on_file_set
    with zipfile.ZipFile(f, 'r') as z:
  File "/usr/lib/python2.7/zipfile.py", line 699, in __init__
    self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: '/usr/share/themes/Macbuntu/Macbuntu'

Local variables in innermost frame:
key: 'r'
compression: 0
modeDict: {'a': 'r+b', 'r': 'rb', 'w': 'wb'}
self: <zipfile.ZipFile instance at 0x9552f6c>
allowZip64: False
mode: 'r'
file: '/usr/share/themes/Macbuntu/Macbuntu'

Comment 1 Igor Katalnikov 2011-04-22 12:34:56 UTC
Created attachment 494195 [details]
File: backtrace

Comment 2 Michel Alexandre Salim 2011-05-04 09:45:09 UTC
That seems like an improperly installed theme -- shouldn't /usr/share/themes/Macbuntu only contain gtk-2.0, index.theme and metacity-1?

I downloaded the latest Macbuntu from Sourceforge, and copied the themes/Macbuntu directory directly to /usr/share/themes, and could not reproduce it with gtt 3.0.3 (that will be released as an update).

Comment 3 Fedora Update System 2011-05-04 09:48:35 UTC
gnome-tweak-tool-3.0.3-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/gnome-tweak-tool-3.0.3-1.fc15

Comment 4 Igor Katalnikov 2011-05-04 12:30:54 UTC
Test script:

1. Start gnome-tweak-tool
2. From "Shell" open "Shell theme" file browser.
3. In "Location" field type "somefile" and hit "Open"

Test result:
gnome-tweak-tool silently fails without crash. This is OK so in my opinion this bug can be closed.

Additional notes:
1. As far as I can understand gnome-tweak-tool expects compressed (ziped) theme file as input. It would be nice to have one (I mean GTK 3.x) for test purposes so we can see that good path works.

2. It would be nice to have a GUI error message telling user what is going on.

Comment 5 Fedora Update System 2011-05-05 04:44:09 UTC
Package gnome-tweak-tool-3.0.3-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-tweak-tool-3.0.3-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/gnome-tweak-tool-3.0.3-1.fc15
then log in and leave karma (feedback).

Comment 6 Igor Katalnikov 2011-05-06 06:45:33 UTC
*** Bug 702556 has been marked as a duplicate of this bug. ***

Comment 7 Igor Katalnikov 2011-05-06 06:58:21 UTC
Still getting crash after fresh install of Final TC1. "Location" field is hidden by default so I had to click icon first.

Comment 8 Fedora Update System 2011-05-19 05:02:26 UTC
gnome-tweak-tool-3.0.3-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.