Re: Yum error: SyntaxError: not well-formed (invalid token):

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your response answers below.


On Thu, 12 Mar 2009, Heimburger,Justin C wrote:

> 
> Hello,
> 
> I'm getting an error when I try to list available packages with yum:
> 
> ----
> Reading repository metadata in from local files
> ejrpm_noar: #####################################?????????????
979/1320Traceback (most recent call last):
> ? File "/usr/bin/yum", line 29, in ?
> ??? yummain.main(sys.argv[1:])
> ? File "/usr/share/yum-cli/yummain.py", line 97, in main
> ??? result, resultmsgs = do()
> ? File "/usr/share/yum-cli/cli.py", line 516, in doCommands
> ??? ypl = self.returnPkgLists()
> ? File "/usr/share/yum-cli/cli.py", line 1192, in returnPkgLists
> ??? ypl = self.doPackageLists(pkgnarrow=pkgnarrow)
> ? File "__init__.py", line 972, in doPackageLists
> ? File "/usr/share/yum-cli/cli.py", line 82, in doRepoSetup
> ??? self.doSackSetup(thisrepo=thisrepo)
> ? File "__init__.py", line 291, in doSackSetup
> ? File "repos.py", line 289, in populateSack
> ? File "sqlitecache.py", line 96, in getPrimary
> ? File "sqlitecache.py", line 89, in _getbase
> ? File "sqlitecache.py", line 344, in updateSqliteCache
> ? File "/usr/lib/python2.3/site-packages/yum/mdparser.py", line 61, in
next
> ??? for event, elem in self.reader:
> ? File "<string>", line 61, in __iter__
> SyntaxError: not well-formed (invalid token): line 2380, column 321
> ----
> 
> I'm of the mind that this was caused by a package that was added to
the repository yesterday afternoon, as one time it
> worked, and the next it didn't.? I've been searching the internet for
a good chunk of the day, but haven't found this
> particular error and its solution anywhere.
> 
> I'm also guessing that the line and column numbers at the end of the
error refer to the position in the primary.xml.gz
> file, but taking a look there shows me nothing different than what's
in every other package in the repo.
> 
> Any suggestions?? I'm able to get around it by just using rpm, but I
lose the some of the benefits provided by yum.?
> Thanks in advance for your help!
>

you're probably not wrong.

1. what ver of yum?
 - 2.6.1 (running on RHEL4)
2. what is generating the repodata on the repository side
 - The repos reside on shared NAS.  All clients have identical yum.conf
files.  One master servers creates all repos hourly to keep up-to-date
with package changes.
3. what pkgs got added to the repo yesterday?
 - There were 19 packages added on the 11th, but they're all internal
pkgs, none from external sources.  On top of that, most of the folks
creating the packages are new to rpm and Linux.
4. can you post your primary.xml.gz file?
 - Sadly, no.  I'm not sure what data is in there, and since all of the
packages are from internal sources here, I could find my self in a World
of Hurt if I publish the contents of our rpms on the interwebs.

Here's another question:  Is there a debug statement that I could add to
one (or more) of the python scripts that would be able to spit out
details as the progress hash makes its way across the screen?

I suppose I'll start moving packages out of the way and see if anything
sticks.

Thanks again!
Justin

thanks,
-sv

------------------------------

Message: 5
Date: Fri, 13 Mar 2009 01:23:59 -0400
From: pranjal pandit <pranjal5215@xxxxxxxxx>
Subject: Re:  yum source code
To: "Yellowdog Updater, Modified" <yum@xxxxxxxxxxxxxxxxx>
Message-ID:
	<32793db80903122223x284d7957rf717ef10a38c0f17@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

> Are you working out of the git tree? Which branch?
>
> You want to be on yum-3_2_X,

The source code is  yum-3_2_X and 3.2.X Branch

i have downloaded the yum source code from git as given on link
http://yum.baseurl.org/

--Regards
--Pranjal Pandit


------------------------------


 
 If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments.  If you no longer wish to receive e-mail from Edward Jones, please send this request to messages@xxxxxxxxxxxxxxxx  You must include the e-mail address that you wish not to receive e-mail communications.  For important additional information related to this e-mail, visit www.edwardjones.com/US_email_disclosure
 
_______________________________________________
 

Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum


End of Yum Digest, Vol 68, Issue 12
***********************************
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux