 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

27th July 2012, 09:12 PM
|
|
Registered User
|
|
Join Date: Feb 2007
Location: European Union - Romania, Bucharest
Posts: 272

|
|
YUMEX does not work in Fedora 17
Hi!
I have been banging my head against the keyboard for the past few days because of a "tiny" problem that F17 brings to us, the users, the fact that YUMEX no longer works.
Sure, some of you will jump the gun and say "use PackageKit", but I like apps that are more inclined to usefulness than being stupid proof.
Anyways, got lots of errors when trying to run yumex, errors like this:
Code:
Traceback (most recent call last):
File "/bin/yumex", line 42, in <module>
app = YumexApplication(backend)
File "/usr/lib/python2.7/site-packages/yumexgui/__init__.py", line 203, in __init__
Controller.__init__(self, BUILDER_FILE , 'main', domain='yumex')
File "/usr/lib/python2.7/site-packages/guihelpers/__init__.py", line 278, in __init__
self.ui = UI(filename, rootname, domain)
File "/usr/lib/python2.7/site-packages/guihelpers/__init__.py", line 256, in __init__
self.add_from_file(filename)
GError: Failed to open file '/bin/yumex.glade': No such file or directory
Nothing seemed to be working, installed lots of "garbage" to no success. But then I remembered that some yumex python files (and many fedora python files in general) do not contain the shebang line (stuf like #! /usr/bin/kick_windows_ass).
Solution to all the problems:
Code:
python2 /usr/bin/yumex
Why? Because all yumex files are installed in python2 path and the system has been upgraded to python3, which is why yumex will not start.
LESSON: the importance of the shebang line should be thought to programmers !
PS: I have search the forum before posting (google as well) but could not find any viable solution, so I've posted this
PPS: sarcasm is meant to be constructive, if I've offended someone, than I'm sorry.
__________________
Desktop: Intel e6750 2.66GHz, A-Data Extreme 6GB DDR2-800, Leadtek P8600GT 256MB DDR3, Gigabyte GA-P35-DS3L
Laptop: Acer Aspire One D150, Intel Atom N270 1.6GHz, Kingston 1GB DDR2-533, Intel GMA950 8MB DDR2, Intel 4965AGN wifi
Server: Intel Atom D510 1.66GHz, Kingston 1GB DDR2-800, Intel GMA3150 8MB, Intel D510MO, Atheros AR5008 wifi
Last edited by gala_dragos; 27th July 2012 at 09:15 PM.
Reason: some bolding was needed
|

28th July 2012, 03:28 PM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,613

|
|
|
Re: YUMEX does not work in Fedora 17
You must have some other issue with your system than yumex.
Yumex has been working fine on F17, even with the python3 upgrade. The issue isn't with yumex.
Code:
[Me@tower20 ~]$ yumex
/usr/lib/python2.7/site-packages/guihelpers/__init__.py:256: GtkWarning: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead
self.add_from_file(filename)
09:22:37 : DEBUG - network interface p33p1 (r8169) is connected
09:22:37 : INFO - Connected to an network
09:22:37 : DEBUG - network interface p33p1 (r8169) is connected
09:22:37 : INFO - Starting yum child process
09:22:44 : INFO - YUM: Yum Version : 3.4.3
09:22:44 : INFO - YUM: Loaded plugins: etckeeper, langpacks, presto, remove-with-leaves
09:22:45 : INFO - Getting available updates
09:22:45 : INFO - Downloaded : repomdi6J0Gktmp.xml ( 951 )
09:22:46 : INFO - Downloaded : repomdgrqW_ctmp.xml ( 2.9 k )
09:22:46 : INFO - Downloaded : repomdAzrJNktmp.xml ( 2.9 k )
09:22:46 : INFO - Downloaded : repomderv0KMtmp.xml ( 2.9 k )
09:22:47 : INFO - Downloaded : repomdWN6Klftmp.xml ( 2.9 k )
09:22:47 : INFO - Downloaded : repomdgcYXVOtmp.xml ( 2.9 k )
09:22:48 : INFO - Downloaded : repomd37HNdBtmp.xml ( 2.9 k )
09:22:48 : INFO - Downloaded : repomdhkr3QAtmp.xml ( 2.9 k )
09:22:48 : INFO - Downloaded : repomdaGmEwRtmp.xml ( 3.3 k )
09:22:49 : INFO - Downloaded : repomdTiiwzbtmp.xml ( 3.3 k )
09:22:49 : INFO - Downloaded : repomd3dq01Ptmp.xml ( 3.3 k )
09:22:50 : INFO - Downloaded : repomdcHkeQvtmp.xml ( 3.3 k )
09:22:51 : INFO - Downloaded : updates/metalink ( 17 k )
09:22:51 : INFO - Downloaded : repomdIJlTgZtmp.xml ( 4.5 k )
09:22:51 : INFO - Downloaded : updates-testing/metalink ( 16 k )
09:22:51 : INFO - Downloaded : repomdZpOt01tmp.xml ( 4.5 k )
(1/2): updates/primary_db | 4.8 MB 01:39
(2/2): updates-testing/primary_db | 953 kB 00:03
09:24:36 : INFO - Downloaded : updates/group_gz ( 434 k )
09:24:37 : INFO - Downloaded : updates-testing/group_gz ( 434 k )
09:24:42 : INFO - 31 packages returned
09:24:42 : INFO - Getting available obsoletes
09:24:42 : INFO - 0 packages returned
09:24:42 : INFO - Adding Packages to view
09:24:42 : INFO - Added 31 Packages to view
09:24:58 : INFO - Closing rpm db and releasing yum lock
09:24:58 : INFO - yum backend process is ended
Edit:
I just found out exactly what your problem is... You are running yumex as root user. Don't do that!  Run it as a regular user, and let yumex handle the root authentication for you.
Here is what happens when run as root user:
Code:
[root@tower20 ~]# yumex
Don't run yumex as root it is unsafe (Use --root to force)
[root@tower20 ~]# yumex --root
Traceback (most recent call last):
File "/bin/yumex", line 42, in <module>
app = YumexApplication(backend)
File "/usr/lib/python2.7/site-packages/yumexgui/__init__.py", line 203, in __init__
Controller.__init__(self, BUILDER_FILE , 'main', domain='yumex')
File "/usr/lib/python2.7/site-packages/guihelpers/__init__.py", line 278, in __init__
self.ui = UI(filename, rootname, domain)
File "/usr/lib/python2.7/site-packages/guihelpers/__init__.py", line 256, in __init__
self.add_from_file(filename)
GError: Failed to open file '/bin/yumex.glade': No such file or directory
Last edited by DBelton; 28th July 2012 at 03:32 PM.
|

29th July 2012, 01:35 PM
|
|
Registered User
|
|
Join Date: Feb 2007
Location: European Union - Romania, Bucharest
Posts: 272

|
|
|
Re: YUMEX does not work in Fedora 17
My system is a brand new install of Fedora F17 x64 with LXDE, after previously running F14 x86 with Gnome 2 for the past 2 years or so.
If I run yumex as non root then I had a very similar error, but without the running as root warning.
__________________
Desktop: Intel e6750 2.66GHz, A-Data Extreme 6GB DDR2-800, Leadtek P8600GT 256MB DDR3, Gigabyte GA-P35-DS3L
Laptop: Acer Aspire One D150, Intel Atom N270 1.6GHz, Kingston 1GB DDR2-533, Intel GMA950 8MB DDR2, Intel 4965AGN wifi
Server: Intel Atom D510 1.66GHz, Kingston 1GB DDR2-800, Intel GMA3150 8MB, Intel D510MO, Atheros AR5008 wifi
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 20:51 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|