Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"create-profile" error when importing Maltego .mtz file containing Icons folder #53

Open
david74552 opened this issue Oct 1, 2015 · 0 comments

Comments

@david74552
Copy link

When importing an .mtz file which contains Entities and Icons that were exported from Maltego 3.6.1, the "canari create-profile" command will throw the error:

****:~/Downloads/<project>$ canari create-profile <project>
Looking for transforms in <project>.transforms...
Package loaded.
Creating profile /home/****/Downloads/<project>/<project>.mtz...
Installing transform ****
Installing entity ****
Installing custom icon Icons/ to Icons/...
Traceback (most recent call last):
  File "/usr/local/bin/canari", line 4, in <module>
    __import__('pkg_resources').run_script('canari==1.1', 'canari')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1394, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/EGG-INFO/scripts/canari", line 20, in <module>
    canari_main()
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/framework.py", line 33, in _func
    return func(self.parser.parse_args(args_, namespace))
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/common.py", line 65, in canari_main
    opts.command_function(opts)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/commands/create_profile.py", line 54, in create_profile
    transform_package.create_profile(opts.working_dir, current_dir)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/transform.py", line 311, in create_profile
    self.install(install_prefix, mtz, configure)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/transform.py", line 237, in install
    self._install_entities(distribution)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/transform.py", line 263, in _install_entities
    distribution.write_file(p, data)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/maltego.py", line 695, in write_file
    self.writestr(zinfo_or_arcname, contents)
  File "/usr/local/lib/python2.7/dist-packages/canari-1.1-py2.7.egg/canari/pkgutils/maltego.py", line 481, in writestr
    with file(realpath, mode='wb') as f:
IOError: [Errno 21] Is a directory: '/tmp/tmpmfaenH/Icons/'
Writing transform set <project> to /home/****/Downloads/<project>/<project>.mtz...
Writing server Local to /home/****/Downloads/<project>/<project>.mtz

To generate the .mtz file within Maltego:

  1. Create a new entity;
  2. Import a new Icon;
  3. Assign the Icon to the entity;
  4. Export the entity to a .mtz file.
  5. Place the mtz file into the "/src//resources/maltego" folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant