[p4python] parse_forms() causing crash

Martin Linklater martin.linklater at lucidgames.co.uk
Wed Jul 11 06:46:29 PDT 2012

Hi - I've just started integrating perforce commands into my python based asset management scripts and I'm hitting a problem when I call parse_forms()

My code is:

from P4 import P4, P4Exception


self.p4 = P4()

As soon as the parse_forms() line is executed I get the following output:

Traceback (most recent call last):
  File "/Applications/PyCharm.app/helpers/pydev/pydevd.py", line 1401, in <module>
    debugger.run(setup['file'], None, None)
  File "/Applications/PyCharm.app/helpers/pydev/pydevd.py", line 1055, in run
    pydev_imports.execfile(file, globals, locals) #execute the script
  File "/Users/link/Work/dev/projects/Skylight/bin/DLCBuilder/builder.py", line 132, in <module>
  File "/Users/link/Work/dev/projects/Skylight/bin/DLCBuilder/builder.py", line 28, in Run
    p4 = DLC.perforce.Perforce( options, args )
  File "/Users/link/Work/dev/projects/Skylight/bin/DLCBuilder/DLC/perforce.py", line 47, in __init__
  File "/Library/Python/2.7/site-packages/P4.py", line 399, in <lambda>
    return lambda *args, **kargs: self.parse_spec(cmd, *args, **kargs)
TypeError: function takes exactly 2 arguments (1 given)
Disconnecting from Perforce

It's asking for a parameter, but I have no idea what it wants. All the sample code I've seen calls parse_forms() without a parameter. Can anyone help pls ?


Martin Linklater
Lucid Games Ltd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4python/attachments/20120711/83c289c5/attachment-0002.html>

More information about the p4python mailing list