[p4] p4_shelve + py2exe
Alen Ladavac
alenl-ml at croteam.com
Wed Oct 15 08:49:59 PDT 2008
Thanks a lot for that exe. However, it doesn't work for me. The output
is like this:
STATUS: 5:40:49 Traceback (most recent call last):
File "p4shelf.py", line 423, in <module>
File "p4shelf.py", line 420, in main
File "p4shelf.py", line 320, in doCompress
File "p4shelf.py", line 195, in createDescription
File "p4shelf.py", line 164, in clientRoot
File "p4shelf.py", line 86, in getClientName
KeyError: 'clientName'
This track down to the function:
def getClientName():
entries = p4( 'info' )
return entries[0]['clientName'].strip()
I'm not sure I'm reading the marshalled data correctly, but it seems
that "p4 -G info" returns a table where the client name field is named
"Client name:" for me. Is this a mismatch in p4 versions?
Thanks,
Alen
Dennis wrote:
> I was able to make Jim Tilanders P4Shelve script into an .exe easy
> enough. I've attached a zip file with p4shelve as an .exe and the
> tools for P4V. It may not send as it is an .exe but we'll try anyway.
> -----Original Message-----
> From: Alen Ladavac [mailto:alenl-ml at croteam.com]
> Sent: Tuesday, 14 October 2008 4:54 AM
> To: Dennis Roche
> Cc: perforce-user at perforce.com
> Subject: Re[2]: [p4] p4_shelve + py2exe
> Thanks for the tip. But whichever script I'm going to use, it will
> have to be in form of an exe file. Installing Python on every machine
> is not going to be practical.
> Thanks anyway.
> Alen
> Monday, October 13, 2008, 5:33:00 AM, Dennis wrote:
>> Recommend using Jim Tilanders P4Shelve script as it actually works*
>> http://www.tilander.org/aurora/2008/01/p4shelf.html
>> * that said test it carefully before use as it there be unexpected
>> results with how your workspace / perforce is setup.
>> -----Original Message-----
>> From: perforce-user-bounces at perforce.com
>> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Alen Ladavac
>> Sent: Thursday, 9 October 2008 9:44 PM
>> To: perforce-user at perforce.com
>> Subject: [p4] p4_shelve + py2exe
>> Hi all,
>> Does anyone have a py2exe-ed version of Chris Stoy's p4_shelve python
>> scripts to share? Or can explain how to create one?
>> I've tried to build it, but haven't had any luck so far. It says: "The
>> following modules appear to be missing ['p4']" (Yes, I have installed
>> p4python from
>> http://public.perforce.com/guest/robert_cowham/perforce/API/python/local/dist/P4Python-2007.3.win32-py2.4.exe,
>> but that doesn't seem to help. *Shrug* )
>> Thanks,
>> Alen
>> _______________________________________________
>> perforce-user mailing list - perforce-user at perforce.com
>> http://maillist.perforce.com/mailman/listinfo/perforce-user
>> This message and its attachments may contain legally privileged or
>> confidential information. This message is intended for the use of
>> the individual or entity to which it is addressed. If you are not
>> the addressee indicated in this message, or the employee or agent
>> responsible for delivering the message to the intended recipient,
>> you may not copy or deliver this message or its attachments to
>> anyone. Rather, you should permanently delete this message and its
>> attachments and kindly notify the sender by reply e-mail. Any
>> content of this message and its attachments, which does not relate
>> to the official business of the sending company must be taken not to
>> have been sent or endorsed by the sending company or any of its
>> related entities. No warranty is made that the e-mail or
>> attachment(s) are free from computer virus or other defect.
> --
> Best regards,
> Alen mailto:alenl-ml at croteam.com
> This message and its attachments may contain legally privileged or
> confidential information. This message is intended for the use of
> the individual or entity to which it is addressed. If you are not
> the addressee indicated in this message, or the employee or agent
> responsible for delivering the message to the intended recipient,
> you may not copy or deliver this message or its attachments to
> anyone. Rather, you should permanently delete this message and its
> attachments and kindly notify the sender by reply e-mail. Any
> content of this message and its attachments, which does not relate
> to the official business of the sending company must be taken not to
> have been sent or endorsed by the sending company or any of its
> related entities. No warranty is made that the e-mail or
> attachment(s) are free from computer virus or other defect.
--
Alen
More information about the perforce-user
mailing list