realbrowserlocusts
realbrowserlocusts copied to clipboard
Cannot run a demo file
I've installed python3.6 + locust.io + realbrowserlocusts on an AWS EC2 running ubuntu & python 3.6 I can run a demo from the locust.io web page. However, when I try to run the demo from realbrowserlocusts, it sends an error:
File "/usr/local/bin/locust", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/locust/main.py", line 113, in main
docstring, user_classes = load_locustfile(locustfile)
File "/usr/local/lib/python3.6/dist-packages/locust/main.py", line 77, in load_locustfile
imported = __import_locustfile__(locustfile, path)
File "/usr/local/lib/python3.6/dist-packages/locust/main.py", line 53, in __import_locustfile__
return source.load_module()
File "<frozen importlib._bootstrap_external>", line 399, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 823, in load_module
File "<frozen importlib._bootstrap_external>", line 682, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 684, in _load
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/ubuntu/reallocusts.py", line 1, in <module>
from realbrowserlocusts import FirefoxLocust, ChromeLocust, PhantomJSLocust
File "/usr/local/lib/python3.6/dist-packages/realbrowserlocusts/__init__.py", line 3, in <module>
from realbrowserlocusts.locusts import FirefoxLocust, PhantomJSLocust, \
File "/usr/local/lib/python3.6/dist-packages/realbrowserlocusts/locusts.py", line 7, in <module>
from realbrowserlocusts.core import RealBrowserClient
File "/usr/local/lib/python3.6/dist-packages/realbrowserlocusts/core.py", line 6, in <module>
from locust.exception import StopLocust
Seems to me that I have something missing. I´m not familiar with python.
@nickboucart - also having the same issue with 3.8.2 version of python. any suggestions what this might be?
getting the same issue on 3.8.3 (fedora 32)
It's not updated to Locust 1.0 They renamed from locustio to locust when they baselined.
pip uninstall locust
pip install locustio==0.14.6
@veenarm Ur fix works and now I can run my example without any issues.. Thank you
@npandey3 : Could you please update the script that worked for you? Also what was the python version?
Nick here, original author of realbrowserlocusts.
I'm really sorry to hear there's problems with the library. Unfortunately, I'm unable to work on it, in fact, I would welcome anybody wanting to adopt the library.
Kind regards, Nick.
On Wed, Sep 1, 2021 at 5:23 PM pchand-conga @.***> wrote:
@npandey3 https://github.com/npandey3 : Could you please update the script that worked for you? Also what was the python version?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nickboucart/realbrowserlocusts/issues/13#issuecomment-910391950, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVFPIYW26MT3LVUUADAKTT7ZAP3ANCNFSM4N75TG3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.