Giter Site home page Giter Site logo

Comments (3)

david-martin avatar david-martin commented on September 18, 2024

Possibly related stacktrace

Traceback (most recent call last):
  File "/usr/local/bin/bees", line 6, in <module>
    main.main()
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/main.py", line 163, in main
    parse_options()
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/main.py", line 154, in parse_options
    bees.attack(options.url, options.number, options.concurrent, **additional_options)
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 510, in attack
    summarized_results = _summarize_results(results, params, csv_filename)
  File "/Library/Python/2.7/site-packages/beeswithmachineguns/bees.py", line 304, in _summarize_results
    summarized_results['mean_response'] = sum(complete_results) / summarized_results['num_complete_bees']
ZeroDivisionError: integer division or modulo by zero

from beeswithmachineguns.

xtr33me avatar xtr33me commented on September 18, 2024

-- UPDATE --
Just a little bit more info. I tried uninstalling and reinstalling to various versions and was seeing the same thing. Then this morning I happened to have my amazon dash up and noticed that the bees were still initializing. Once I waited for them to fully come up, all worked fine. I just wanted to post in case anyone else ran into this in the future. Was stupid on my part, but perhaps the error message should states something different if possible to better point to the real issue.

-- Prior Post --
I just installed to t2.micro AWS Ubuntu AMI ubuntu-trusty-14.04-amd64-server-20140607.1 . I have the latest version and the Bees start up but when sending attack I get the following error ending with a divide by zero:

Traceback (most recent call last): File "/usr/local/bin/bees", line 6, in <module> main.main() File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/main.py", line 170, in main parse_options() File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/main.py", line 161, in parse_options bees.attack(options.url, options.number, options.concurrent, **additional_options) File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/bees.py", line 529, in attack summarized_results = _summarize_results(results, params, csv_filename) File "/usr/local/lib/python2.7/dist-packages/beeswithmachineguns/bees.py", line 315, in _summarize_results summarized_results['mean_response'] = sum(complete_results) / summarized_results['num_complete_bees'] ZeroDivisionError: integer division or modulo by zero

from beeswithmachineguns.

jgrevich avatar jgrevich commented on September 18, 2024

I also am getting this error and have not determined the cause yet. Below is a stacktrace:

bees attack -u http://54.nn.nn.nn/ -n 100000 -c 3000:

Traceback (most recent call last):
  File "/usr/local/bin/bees", line 6, in <module>
    main.main()
  File "/usr/local/lib/python2.7/site-packages/beeswithmachineguns/main.py", line 163, in main
    parse_options()
  File "/usr/local/lib/python2.7/site-packages/beeswithmachineguns/main.py", line 154, in parse_options
    bees.attack(options.url, options.number, options.concurrent, **additional_options)
  File "/usr/local/lib/python2.7/site-packages/beeswithmachineguns/bees.py", line 509, in attack
    summarized_results = _summarize_results(results, params, csv_filename)
  File "/usr/local/lib/python2.7/site-packages/beeswithmachineguns/bees.py", line 303, in _summarize_results
    summarized_results['mean_response'] = sum(complete_results) / summarized_results['num_complete_bees']
ZeroDivisionError: integer division or modulo by zero

from beeswithmachineguns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.