[p4python] [p4] Python scripting with Perforce
robert at vaccaperna.co.uk
Tue Oct 25 14:46:06 PDT 2005
I think you probably used a p4api built with the wrong version of gcc (most
are 2.95 or similar).
Have you tried the gcc 3 version at:
I should probably point this out in the docs.
Let me know if that fixes things.
> -----Original Message-----
> From: J. Paul Reed [mailto:preed at vmware.com]
> Sent: 25 October 2005 22:08
> To: Robert Cowham
> Subject: Re: [p4] Python scripting with Perforce
> Robert Cowham wrote:
> > Just a side note - there is a significant performance gain if your
> > script is executing more than a few p4 commands using p4python.
> > I modified P4DTI to use p4python rather than the marshalling and a
> > test harness run went from 120 seconds down to 20 seconds -
> no other changes.
> So, question:
> I compiled P4Python on a random system, and get this error
> when I try to use it:
> [preed at preed-lx ~]$
> python ./makeLabel.py Traceback (most recent call last):
> File "./makeLabel.py", line 3, in ?
> import p4
> File "/home/preed/nethome/pylibs//lib/python/p4.py", line 17, in ?
> import P4Client
> undefined symbol: _ZTV10ClientUser
> That symbol is not defined in any of the p4api static
> libraries, and I compiled P4Python.so with a relatively
> recent version of gcc, so I'm not surprised that the C++ name
> mangling semantics may have changed.
> Do I have to find a SuSE box (what p4/p4d/p4api were compiled
> on) and compile this there?
> Build/Release Engineer
> preed at vmware.com
> (650) 475-5248
More information about the p4python