allfro / canari

Local and Remote Maltego Rapid Transform Development Framework
http://www.canariproject.com
102 stars 27 forks source link

Fix "TypeError: __init__() takes at least 5 arguments (4 given)" #22

Closed cmlh closed 10 years ago

cmlh commented 10 years ago

A small amendment of http://www.canariproject.com/4-3-transform-development-quick-start/ to reduce the time that the reader allocates to the uptake of "Transform Development Quick-Start"

Operating System is Mac OSX.

Working Directory is "mypackage/src"

$canari debug-transform mypackage.transforms.helloworld Phil
Traceback (most recent call last):
  File
"/Library/Python/2.6/site-packages/canari-1.0-py2.6.egg/canari/commands/debug_transform.py",
line 92, in run
    ) if get_transform_version(m.dotransform) == 2 else m.dotransform(
TypeError: __init__() takes at least 5 arguments (4 given)

$ sudo easy_install sploitego
Password:
Searching for sploitego
[SNIP]
Finished processing dependencies for sploitego

$ canari debug-transform mypackage.transforms.helloworld
Phil
%50
D:This was pointless!
%100
`- MaltegoTransformResponseMessage:
  `- Entities:
[SNIP]

I have not tested these changes against a reStructuredText markup renderer aside from GitHub (which doesn't markup .. warning:: correctly)

allfro commented 10 years ago

Hi @cmlh,

Not sure what happened there? Looks very odd. There should be no dependency on sploitego for independent canari packages. I've just tested a new transform package and removed sploitego from the OS completely and the transform ran fine. Maybe you're running an older version of Canari? Try installing the newest version from github.

cmlh commented 10 years ago

@allfro,

The release of Canari was v1.0 but I will test against v1.1 and let you know if the issue persists.