Comments (5)
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.
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.
"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.
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.
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)
- multimech-run causes infinite loop HOT 1
- Problem w/ sqlite database result storage. HOT 2
- multimech-run v1.2.0 does not work under Windows HOT 4
- Wrong number of threads HOT 1
- Wrong couting HOT 1
- Create transaction object with params defined in general config
- http://multimechanize.com/ -- domain expired HOT 1
- Add support for sqlalchemy 0.8.x
- Errors not reported correctly in results.csv
- Add header row to results.csv
- 'NoneType' object has no attribute 'Empty' HOT 1
- Traceback output while running
- Project Dead? HOT 4
- Website URL not working HOT 1
- what's the meaning of 80pct, 90pct & rate HOT 2
- can not find test script: v_user.py HOT 3
- how can I get the requests per second?
- Fix simple typo: exeption -> exception
- Create settings file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-mechanize.