PyYIMt Latest CVS

3 views
Skip to first unread message

Vishal

unread,
Oct 1, 2009, 3:07:05 AM10/1/09
to py-transports
Hi Norman

When i try to update to the latest PyYIMt Latest CVS version i get the
following error

Traceback (most recent call last):
File "C:\yahoo-t-0.4\yahoo.py", line 3, in <module>
version = 'CVS ' + '$Revision$'.split()[1]
IndexError: list index out of range

I have also updated the xmpp files. Can you kindly suggest the
workaround? Older cvs version is working fine on the server

Thanks
Vishal

Mike Markley

unread,
Oct 2, 2009, 9:33:43 PM10/2/09
to py-transports
Looks like you got it out of GIT, not CVS. I commented out that
"version = [...]" line at the top of yahoo.py and replaced it with:

version = 'git'

joeuser

unread,
Oct 6, 2009, 3:29:09 PM10/6/09
to py-transports
I just downloaded PyYIMt from http://github.com/normanr/yahoo-transport
and when I tried to run it I got the same error. I commented out the
the version line and it started without the error message.
#version = 'CVS ' + '$Revision$'.split()[1]

What I wonder is if this is the git version why does the version say
CVS?

Tim Stewart

unread,
Oct 6, 2009, 3:45:49 PM10/6/09
to py-tra...@googlegroups.com
On Oct 6, 2009, at 3:29 PM, joeuser wrote:

> I just downloaded PyYIMt from http://github.com/normanr/yahoo-
> transport
> and when I tried to run it I got the same error. I commented out the
> the version line and it started without the error message.
> #version = 'CVS ' + '$Revision$'.split()[1]

I had to make the same change in my version a while back, but I had
forgotten about it until I saw the commit in my local brach yesterday.

> What I wonder is if this is the git version why does the version say
> CVS?

I know Git discourages keyword expansion, and will only perform it if
the file has the `keywords' attribute set. I expect `CVS' is left
over from when this code was originally hosted in CVS.

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


Norman Rasmussen

unread,
Oct 6, 2009, 6:50:03 PM10/6/09
to py-tra...@googlegroups.com
This is now fixed on github (for yahoo and irc).

It reads .git/refs/heads/master and uses that as the version.  This isn't 100% right (it should read .git/HEAD and follow the ref, but it's good enough for now)
--
- Norman Rasmussen
- Email: nor...@rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/
Reply all
Reply to author
Forward
0 new messages