Skip to content

ModuleNotFoundError: No module named 'kitsune.modules'; 'kitsune' is not a package #13

Description

@rmormando

Hello I just installed kitsune on my mac from the GitHub source. When I use the help command: python3 kitsune.py --help it outputs the normal message:

usage: kitsune <command> [<args>]

Available commands:
	acf	Compute average number of common features between signatures
	cre	Compute cumulative relative entropy
	dmatrix	Compute distance matrix
	kopt	Compute recommended choice (optimal) of kmer within a given kmer interval for a set of genomes using the cre, acf and ofc
	ofc	Compute observed feature frequencies

Use --help in conjunction with one of the commands above for a list of available options (e.g. kitsune acf --help)

However when I do python3 kitsune.py kopt --help I get this message:

Traceback (most recent call last):
  File "/Users/rimo/kitsune/kitsune/kitsune.py", line 75, in <module>
    main()
  File "/Users/rimo/kitsune/kitsune/kitsune.py", line 70, in main
    module = importlib.import_module("kitsune.modules.{}".format(cmd))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1135, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'kitsune.modules'; 'kitsune' is not a package

This happens when I try to use the kopt command with parameters set and I don't understand what's wrong or how to fix it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions