1 message in com.perforce.p4python[p4python] [p4] Python scripting with...| From | Sent On | Attachments |
|---|---|---|
| Robert Cowham | 25 Oct 2005 14:45 |
| Subject: | [p4python] [p4] Python scripting with Perforce![]() |
|---|---|
| From: | Robert Cowham (rob...@vaccaperna.co.uk) |
| Date: | 10/25/2005 02:45:44 PM |
| List: | com.perforce.p4python |
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:
ftp://ftp.perforce.com/perforce/r05.1/bin.linux3x86/
I should probably point this out in the docs.
Let me know if that fixes things.
Robert
-----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 ~]$ LD_LIBRARY_PATH="/exit14/home/preed/nethome/pylibs/lib/python" PYTHONPATH="/exit14/home/preed/nethome/pylibs/lib/python" 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 ImportError: /exit14/home/preed/nethome/pylibs/lib/python/P4Client.so: 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?
Later, Paul
-- Build/Release Engineer preed at vmware.com (650) 475-5248




