Coder Social home page Coder Social logo

Comments (3)

Goldcap avatar Goldcap commented on July 22, 2024

Having the same issue, and it's definately connected to the run_time variable. My guess is that the script is having a thread timeout prior to returning the resp_stats_list, or the stats_list object returned is None.

But it's a bugger of an issue, as I can't seem to get it consistently, and all my efforts to trap the issue in the "results.py" have been useless.

from multi-mechanize.

akrishan avatar akrishan commented on July 22, 2024

I 'm getting the same issue on Win 7 platform and also multiple results directories are being created with empty "results.csv" files. Is there a fix for code?

from multi-mechanize.

zettabyte avatar zettabyte commented on July 22, 2024

If the "elapsed time" for all of the threads (second field in a CSV result record) are longer than the run_time config value, then the conditional, if elapsed_time < self.run_time: on line 292 of results.py (the __parse_file() method of the Results class) prevents any records being added to the resp_stats_list list that the method returns. If the returned list has no entries, line 253 of results.py in the __init__() method of the Results class will raise an exception since it tries to access index 0 of the returned list.

I'm not sure how the elapsed_time value that gets written into the 2nd fields of the results.csv records is calculated, but with my very simple test configuration (with run_time set to 30 seconds), I consistently get this error since the elapsed_time on every record is slightly larger than 30 (31.838, 36.141, etc.). This is definitely a problem.

Perhaps the __init__() method of Results should check the length of the resp_stats_list returned by __parse_file() and, if empty, output a useful error message so users don't get a confusing "index out of range" exception. They could be informed that they likely need to increase run_time setting to be more than any values in the second column of results.csv or something similar.

from multi-mechanize.

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.