question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AssertionError in multiprocessing/pool.py

See original GitHub issue

Hello!

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:open
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Arqucommented, Mar 8, 2017

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.

0reactions
chris-K-leecommented, Jan 31, 2017

got this error. (Assertion error)

Traceback (most recent call last):
  File "./malaria", line 31, in <module>
    beem.main.main()
  File "/Users/chrislee/Daliworks-PC/git/mqtt-malaria/beem/main.py", line 53, in main
    options.handler(options)
  File "/Users/chrislee/Daliworks-PC/git/mqtt-malaria/beem/cmds/publish.py", line 202, in run
    s = result.get()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 567, in get
    raise self._value
AssertionError

And then…

I got also the error as the following

Traceback (most recent call last):
  File "./malaria", line 31, in <module>
    beem.main.main()
  File "/Users/chrislee/Daliworks-PC/git/mqtt-malaria/beem/main.py", line 53, in main
    options.handler(options)
  File "/Users/chrislee/Daliworks-PC/git/mqtt-malaria/beem/cmds/publish.py", line 202, in run
    s = result.get()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 567, in get
    raise self._value
TypeError: object of type 'int' has no len()

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found