-1

As the documentation isn't that good, anyone care to share a method of implementing a start script using Kitty katnip fuzzer targets? My error is

Traceback (most recent call last):
  File "c:\Users\silve\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\ptvsd_launcher.py", line 43, in <module>
    main(ptvsdArgs)
  File "c:\Users\silve\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\lib\python\old_ptvsd\ptvsd\__main__.py", line 432, in main
    run()
  File "c:\Users\silve\.vscode\extensions\ms-python.python-2019.11.50794\pythonFiles\lib\python\old_ptvsd\ptvsd\__main__.py", line 316, in run_file
    runpy.run_path(target, run_name='__main__')
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 262, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 95, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\Users\silve\Desktop\fuzzer.py", line 42, in <module>
    model.connect(bittorent_base_template)
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\high_level\graph.py", line 155, in connect
    dst_id = dst.hash()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\container.py", line 88, in hash
    hashed = super(Container, self).hash()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\field.py", line 321, in hash
    self._initialize()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\field.py", line 146, in _initialize
    self._init()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\container.py", line 204, in _init
    field._initialize()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\field.py", line 146, in _initialize
    self._init()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\container.py", line 204, in _initevel\container.py", line 204, in _init
    field._initialize()                                                                          evel\field.py", line 146, in _initialize
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\field.py", line 146, in _initialize                                                         evel\container.py", line 931, in _init
    self._init()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\container.py", line 931, in _init
    self._rebuild_fields()
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\site-packages\kitty\model\low_level\container.py", line 947, in _rebuild_fields
    current = self.random.sample(self._fields, field_list_len)
  File "C:\Users\silve\AppData\Local\Programs\Python\Python38\lib\random.py", line 364, in sample
    result = [None] * k
TypeError: can't multiply sequence by non-int of type 'float'
  • We really are not set up for troubleshooting questions. Also, when asking for troubleshooting help, just saying "gives error" isn't helpful: actually provide the error. – schroeder Dec 4 at 7:26
  • First, while I'm not familiar with Python (I'm allergic to languages without brace-defined scope), it looks like you're trying to assign a method to a variable. While this is possible in many languages, I don't think that's true of Python. Second, we're really not set up for troubleshooting questions. Perhaps you'd have better luck asking for help from Python developers or Kitty Katnip Fuzzer users. – Ghedipunk Dec 4 at 22:27

Browse other questions tagged or ask your own question.