locustio / locust

Write scalable load tests in plain Python šŸš—šŸ’Ø
MIT License
24.64k stars 2.96k forks source link

failed with AttributeError #185

Closed skibum909 closed 10 years ago

skibum909 commented 10 years ago

[2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: Traceback (most recent call last): [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: result = self._run(_self.args, *_self.kwargs) [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: File "/usr/local/lib/python2.7/dist-packages/locust/runners.py", line 113, in start_locust [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: locust().run() [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: File "/usr/local/lib/python2.7/dist-packages/locust/core.py", line 102, in run [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: self.task_set(self).run() [2014-08-05 20:41:12,285] ip-10-252-228-82/ERROR/stderr: File "/usr/local/lib/python2.7/dist-packages/locust/core.py", line 285, in run [2014-08-05 20:41:12,286] ip-10-252-228-82/ERROR/stderr: if self.locust._catch_exceptions: [2014-08-05 20:41:12,286] ip-10-252-228-82/ERROR/stderr: AttributeError: 'NoneType' object has no attribute '_catch_exceptions' [2014-08-05 20:41:12,286] ip-10-252-228-82/ERROR/stderr: <Greenlet at 0x1d4fa50: start_locust(<class 'locust_file.MyLocust'>)> failed with AttributeError

This is a list of the error output that I get when each of the locusts fail

Jahaja commented 10 years ago

Could you describe your setup a bit more? OS, Python version, locust version etc.

skibum909 commented 10 years ago

I am running Ubuntu 12.04, Python 2.7 and the newest version of locust

heyman commented 10 years ago

Hi!

Did you manage to resolve this issue? If not, could you post the load testing script that causes this error (or preferably a minimal version that still causes the error)?

heyman commented 10 years ago

Any update on this?

skibum909 commented 10 years ago

Yeah, I got it working the way it was suppose to. Sorry for not getting back to you. On Sep 24, 2014 7:41 AM, "Jonatan Heyman" notifications@github.com wrote:

Any update on this?

ā€” Reply to this email directly or view it on GitHub https://github.com/locustio/locust/issues/185#issuecomment-56670659.

heyman commented 10 years ago

Ok, glad to hear you resolved it :).