Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th September 2008, 06:37 PM
DarkMasterHalo Offline
Registered User
 
Join Date: Sep 2008
Posts: 13
Unhappy Yum + Python syntax error

Hi guys,

Yesterday, I did update of my package with Yum. Everything went fine. No errors nothing. However, this morning, tried to run Yumex as usual. This error came to me when lauching the command Yum

------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 243, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 98, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 183, in getOptionsConfig
disabled_plugins=self.optparser._splitArg(opts.dis ableplugins))
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 189, in _getConfig
startupconf.pluginconfpath,disabled_plugins,enable d_plugins)
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 355, in doPluginSetup
plugin_types, confpath, disabled_plugins, enabled_plugins)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 152, in __init__
self._importplugins(types)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 195, in _importplugins
self._loadplugin(modulefile, types)
File "/usr/lib/python2.5/site-packages/yum/plugins.py", line 251, in _loadplugin
module = imp.load_module(modname, fp, pathname, description)
File "/usr/lib/yum-plugins/filter-data.py", line 111
('committers', 'committer')]
^
SyntaxError: invalid syntax
---------------------------------------------------------------------------------------------------------------------------------------

If you can please help me with this error. I have seriously no idea of how to solve it. I tried to reinstall Yum without success. Also perhaps there was a Python update as Python is involved here. Seems to be a syntax error, but I really don<t know how to fix it and which file to edit.

Thank you very much for your help !!
Please save my little Fedora .
Reply With Quote
  #2  
Old 11th September 2008, 06:56 PM
dodoedo Offline
Registered User
 
Join Date: Jan 2008
Posts: 7
I have got the same error !!!
Reply With Quote
  #3  
Old 11th September 2008, 07:06 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Try:
yum --noplugins [...]

I had to disable the 'skip-broken' plugin after today's new updates due to similar problems with python.

V
Reply With Quote
  #4  
Old 11th September 2008, 08:44 PM
DarkMasterHalo Offline
Registered User
 
Join Date: Sep 2008
Posts: 13
HeHey, it worked. But is there a way to make it permanently. So I can start Yumex without going through the command line ?

Thanks for your answer !

If you find a solution to why we have to deactivate the plugins to get Yum working, Tell me
Reply With Quote
  #5  
Old 11th September 2008, 09:01 PM
DarkMasterHalo Offline
Registered User
 
Join Date: Sep 2008
Posts: 13
Ok let it. I found how to deactivate the plugins permanently in the mean time there is an update.
Reply With Quote
  #6  
Old 11th September 2008, 09:26 PM
DarkMasterHalo Offline
Registered User
 
Join Date: Sep 2008
Posts: 13
For whoever wants the solution. Just edit the file "/etc/yum.conf" and set plugins to 0.
Reply With Quote
  #7  
Old 12th September 2008, 03:50 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Yes, you found the global plugin switch. You can also enable/disable individual plugins by editing the corresponding line in their respective config files: /etc/yum/pluginconf.d/[plugin-name].conf

It appears that Python choked when some of the old plugins (e.g.: skip-broken), which have now been integrated with the new YUM, were "double-loaded" (so to speak).

V
Reply With Quote
  #8  
Old 12th September 2008, 01:42 PM
DarkMasterHalo Offline
Registered User
 
Join Date: Sep 2008
Posts: 13
Ok Ok, will see this to enable my other plugins

Thanks for the reply !
Reply With Quote
  #9  
Old 12th September 2008, 01:52 PM
DarkMasterHalo Offline
Registered User
 
Join Date: Sep 2008
Posts: 13
Ok in my case it was the file "/etc/yum/pluginconf.d/filter-data.conf" that was causing the problem. I just deactivate it by putting the value enable to 0. Everything works fine now. Thanks for the help !!
Reply With Quote
  #10  
Old 12th September 2008, 01:58 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Well, then, that's two different plugins that cause Python to choke. One has to wonder why they were not simply deprecated and removed/replaced if their functionality has been integrated into the new YUM. Guess I'll check bugzilla....

V

EDIT: It appears that both items have been reported multiple times in the last few days. So they're covered already.

Last edited by Hlingler; 12th September 2008 at 02:42 PM.
Reply With Quote
  #11  
Old 12th September 2008, 02:46 PM
dlm4ut Offline
Registered User
 
Join Date: Dec 2005
Posts: 36
The file it points to has a syntax error. I noted that compared to other similar statements, it should have a colon ( at the end of the line it was pointing to. I added the colon and yum works back to normal.

Whether this is the correct fix, I don't know as I am not the developer.

I assume an update will be coming out soon to fix it, if one is not out already.

dlm4ut
Reply With Quote
Reply

Tags
error, python, syntax, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Syntax error ASP Servers & Networking 1 4th January 2009 07:41 AM
Parse error: syntax error, unexpected T_STRING in /home/wwwroot/phpMyAdmin-2.6.2/libr marco75 Servers & Networking 0 18th December 2006 02:35 AM
apache syntax error tradesman Servers & Networking 1 5th June 2006 04:13 PM
Httpd Syntax error mrman2787 Servers & Networking 4 18th August 2005 10:10 PM


Current GMT-time: 23:18 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat