Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run a demo file #13

Open
gacostaf opened this issue Jun 16, 2020 · 5 comments
Open

Cannot run a demo file #13

gacostaf opened this issue Jun 16, 2020 · 5 comments

Comments

@gacostaf
Copy link

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.

@williamfalconeruk
Copy link

@nickboucart - also having the same issue with 3.8.2 version of python. any suggestions what this might be?

@veenarm
Copy link

veenarm commented Jul 16, 2020

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

@npandey3
Copy link

@veenarm Ur fix works and now I can run my example without any issues.. Thank you

@pchand-conga
Copy link

@npandey3 : Could you please update the script that worked for you? Also what was the python version?

@nickboucart
Copy link
Owner

nickboucart commented Sep 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants