AssertionError in multiprocessing/pool.py
See original GitHub issueHello!
I just tried to run malaria against vernemq server on another host, but I get an AssertionError.
Env:
- OS: Ubuntu 16.04
- Python: 2.7.11+ (Also tried python3 but failed with a syntax error)
- mqtt-malaria: Head
./malaria publish -t -n 100 -P 4 -H 10.1.2.2
Completed workers: 0/4
Completed workers: 0/4
Completed workers: 1/4
Completed workers: 2/4
Completed workers: 2/4
Completed workers: 2/4
Completed workers: 2/4
Completed workers: 2/4
Completed workers: 3/4
Completed workers: 4/4
Traceback (most recent call last):
File "./malaria", line 31, in <module>
beem.main.main()
File "/home/osboxes/dev/mqtt-malaria/beem/main.py", line 53, in main
options.handler(options)
File "/home/osboxes/dev/mqtt-malaria/beem/cmds/publish.py", line 201, in run
s = result.get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
AssertionError
Maybe I have a bad setup or something else. I can connect to the server via telnet, so this isn’t a problem. Could you give me a hint?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top Results From Across the Web
python multiprocessing pool Assertion Error in interpreter
I am writing a sample program to test the usage of multiprocessing pool of workers in python 2.7.2+.
Read more >invalid assert on big output of multiprocessing.Process
Process output when the size of the output gets bigger than signed int the value becomes negative, thus ``` assert left > 0...
Read more >AssertionError in Preprocessing Script - Support
Command I used: python3 preprocess.py -train_src data/BPE/train.src -train_tgt data/BPE/train.tgt -valid_src data/…
Read more >Checking progress of Python multiprocessing pools
Process pools, such as those afforded by Python's multiprocessing.Pool class, are often used to parallelize loops or map a function over an ...
Read more >Python: Lib/multiprocessing/pool.py
Member "Python-3.9.16/Lib/multiprocessing/pool.py" (6 Dec 2022, 32555 Bytes) ... int) 100 and maxtasks >= 1): 101 raise AssertionError("Maxtasks {!r} is not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My issue was that my broker doesn’t accept any other characters for the client id except letters. https://github.com/remakeelectric/mqtt-malaria/blob/master/beem/cmds/publish.py#L98 Changed that to account for the situation and now it works for me.
got this error. (Assertion error)
And then…
I got also the error as the following
how can I use
mqtt-malaria
again? please let me know it.OS : OSX 10.11.6 OSXfuse : v3.4.5 Python : v2.7.10
mosquitto==1.2.3 mqtt-malaria===0.1-81-ge718ba2 paho-mqtt==1.2