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

TypeError: can't multiply sequence by non-int of type 'float' #91

Open
silverfox983 opened this issue Dec 4, 2019 · 0 comments
Open

Comments

@silverfox983
Copy link

Python 3 running a katnip target but this is a kitty

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'
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