Coder Social home page Coder Social logo

Comments (5)

ADTC avatar ADTC commented on June 23, 2024 1

I found that it's working correctly in the latest dev version. Now the question is, when will there be a new release? It's been more than 5 years now.

from multi-mechanize.

Limfocit avatar Limfocit commented on June 23, 2024

I meet the same problem. This helped https://groups.google.com/forum/?fromgroups=#!topic/multi-mechanize/nweLvopvFOM :
"In case it could be useful to others, just to let you know I resolved this by modifying run.py line 90: user_group.run() instead of user_group.start(). For some reason, with user_group.start() the UserGroup run method was never called."

from multi-mechanize.

hexture2 avatar hexture2 commented on June 23, 2024

"modifying run.py line 90:"
Additionally make sure to turn off console logging as the join() will not work.

This worked for me on windows 7 64 bit, python 2.7
I don't know enough about python threading to say why, but it's a bug for sure.

from multi-mechanize.

fruch avatar fruch commented on June 23, 2024

The real reason it's not working on windows, it's cause multiprocessing couldn't pickle some of the objects on the Process

Changing it .start call to .run just run the whole thing sequentially in one process (it seems to work, but in big number of virtual users, you'll run out of file descriptors per process)

Moving to use pathos.multiprocessing might solve some of the pickling issues
https://github.com/uqfoundation/pathos

I'll give it a go, to see if I can fix it correctly

from multi-mechanize.

ADTC avatar ADTC commented on June 23, 2024

EDIT: It works correctly in the latest development version. To install it, run pip install -e git+http://github.com/cgoldberg/multi-mechanize.git#egg=multimechanize

OP: This is still happening with release version 1.2.0, and in the untouched sample project created by multimech-newproject nonetheless. And there's another error. It can't find the test scripts. I'm really confused how to solve this.

C:\my_folder>multimech-run multimech-sample

  user_groups:  2
  threads: 6

ERROR: can not find test script: v_user.py.  aborting user group: user_group-1 errors: 0
ERROR: can not find test script: v_user.py.  aborting user group: user_group-1
ERROR: can not find test script: v_user.py.  aborting user group: user_group-1
ERROR: can not find test script: v_user.py.  aborting user group: user_group-2
ERROR: can not find test script: v_user.py.  aborting user group: user_group-2
ERROR: can not find test script: v_user.py.  aborting user group: user_group-2
[================100%==================]  30s/30s   transactions: 0  timers: 0  errors: 0


analyzing results...

Traceback (most recent call last):
  File "C:\Python27\Scripts\multimech-run-script.py", line 11, in <module>
    load_entry_point('multi-mechanize==1.2.0', 'console_scripts', 'multimech-run')()
  File "c:\python27\lib\site-packages\multimechanize\utilities\run.py", line 64, in main
    run_test()
  File "c:\python27\lib\site-packages\multimechanize\utilities\run.py", line 131, in run_test
    results.output_results(output_dir, 'results.csv', run_time, rampup, results_ts_interval, user_group_configs, xml_report)
  File "c:\python27\lib\site-packages\multimechanize\results.py", line 19, in output_results
    results = Results(results_dir + results_file, run_time)
  File "c:\python27\lib\site-packages\multimechanize\results.py", line 253, in __init__
    self.epoch_start = self.resp_stats_list[0].epoch_secs
IndexError: list index out of range

C:\my_folder>

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.