Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1515927 - Gnome-tweak-tool is broken on Fedora 27
Summary: Gnome-tweak-tool is broken on Fedora 27
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-tweak-tool
Version: 27
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Mohamed El Morabity
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-21 15:51 UTC by Henrique C. S. Junior
Modified: 2018-04-27 13:07 UTC (History)
6 users (show)

Fixed In Version: gnome-tweak-tool-3.26.3-3.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 11:17:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Henrique C. S. Junior 2017-11-21 15:51:02 UTC
Description of problem:
gnome-tweak-tool does not start

Version-Release number of selected component (if applicable):
gnome-tweak-tool-3.26.3-2.fc27.noarch

How reproducible:
Install and try to run the software


Actual results:

[henrique@localhost ~] $ gnome-tweak-tool 
Traceback (most recent call last):
  File "/usr/bin/gnome-tweak-tool", line 24, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

Comment 1 Fedora Update System 2017-11-23 17:17:07 UTC
gnome-tweak-tool-3.26.3-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-2696dde173

Comment 2 Fedora Update System 2017-11-25 00:37:03 UTC
gnome-tweak-tool-3.26.3-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-2696dde173

Comment 3 Henrique C. S. Junior 2017-12-02 12:02:07 UTC
Looks like the update does not fix the problem.

[henrique@localhost Elk] $ rpm -qa | grep gnome-tweak-tool
gnome-tweak-tool-3.26.3-3.fc27.noarch

The error:
[henrique@localhost Elk] $ gnome-tweak-tool 
Traceback (most recent call last):
  File "/usr/bin/gnome-tweak-tool", line 24, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

Comment 4 Fedora Update System 2017-12-12 11:17:10 UTC
gnome-tweak-tool-3.26.3-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 William Gacquer 2018-01-19 17:53:51 UTC
Please reopen the ticket as it is now defunct in the latest stable version on Fedora Core 27.

$sudo dnf install gnome-tweak-tool
Last metadata expiration check: 2:03:37 ago on Fri Jan 19 16:47:31 2018.
Dependencies resolved.
=======================================================================================================
 Package                                  Arch           Version                 Repository       Size
=======================================================================================================
Installing:
 gnome-tweak-tool                         noarch         3.26.4-1.fc27           updates         323 k
Installing dependencies:
 gnome-shell-extension-user-theme         noarch         3.26.2-1.fc27           updates          23 k

Transaction Summary
=======================================================================================================
Install  2 Packages

Total download size: 346 k
Installed size: 1.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): gnome-shell-extension-user-theme-3.26.2-1.fc27.noarch.rpm       446 kB/s |  23 kB     00:00    
(2/2): gnome-tweak-tool-3.26.4-1.fc27.noarch.rpm                       4.2 MB/s | 323 kB     00:00    
-------------------------------------------------------------------------------------------------------
Total                                                                  369 kB/s | 346 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                               1/1 
  Installing       : gnome-shell-extension-user-theme-3.26.2-1.fc27.noarch                         1/2 
  Installing       : gnome-tweak-tool-3.26.4-1.fc27.noarch                                         2/2 
  Running scriptlet: gnome-tweak-tool-3.26.4-1.fc27.noarch                                         2/2 
  Running scriptlet: gnome-shell-extension-user-theme-3.26.2-1.fc27.noarch                         2/2 
  Running scriptlet: gnome-tweak-tool-3.26.4-1.fc27.noarch                                         2/2 
  Verifying        : gnome-tweak-tool-3.26.4-1.fc27.noarch                                         1/2 
  Verifying        : gnome-shell-extension-user-theme-3.26.2-1.fc27.noarch                         2/2 

Installed:
  gnome-tweak-tool.noarch 3.26.4-1.fc27      gnome-shell-extension-user-theme.noarch 3.26.2-1.fc27     

Complete!

$ gnome-tweak-tool 
Traceback (most recent call last):
  File "/usr/bin/gnome-tweak-tool", line 24, in <module>
    import gi
ModuleNotFoundError: No module named 'gi'

Comment 6 Patrick 2018-03-29 21:50:14 UTC
I see this is status closed errata. That's a mistake. I'm on fedora 27 with the version out of updates, 3.26.4 and gnome-tweak-tool fails trying to import the python module gi. If that succeeded it would fail on the import of gtweak. Please be more careful when closing tickets:)

Comment 7 Patrick 2018-03-29 21:57:52 UTC
A workaround, is to replace the first line of gnome-tweak-tool

 #!/usr/bin/env python3

with

 #!/usr/bin/python3

If yours says python that's ok too.
For some reason env isn't finding the right python. Does that mean that the error is in env and not in gnome-tweak-tool?

Comment 8 Dominik Hlavac Duran 2018-04-27 13:07:48 UTC
(In reply to Patrick from comment #7)
> A workaround, is to replace the first line of gnome-tweak-tool
> 
>  #!/usr/bin/env python3
> 
> with
> 
>  #!/usr/bin/python3
> 
> If yours says python that's ok too.
> For some reason env isn't finding the right python. Does that mean that the
> error is in env and not in gnome-tweak-tool?

Thanks! that works for me.


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