locust: ImportError: No module named 'core'

>> locust --help

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.4/bin/locust", line 9, in <module>
    load_entry_point('locustio==0.7.3', 'console_scripts', 'locust')()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/locustio-0.7.3-py3.4.egg/locust/__init__.py", line 1, in <module>
    from core import HttpLocust, Locust, TaskSet, task
ImportError: No module named 'core'

ideas ?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 5
  • Comments: 25 (5 by maintainers)

Most upvoted comments

0.8 should be released soon. Until then pip install locustio==0.8a2 should work.

pip install locustio==0.8a2 worked for me.

README.md says Locust works on Python 3.4 yet I still get this error on 0.7.5. Any chance for a new release?

Great! It’s working now after deleting the locust folder already created and ran pip install git+git://github.com/locustio/locust.git@master#egg=locustio

Thanks

redundant “me too” comments on closed issues aren’t very useful.

Suggestion given by @PrithiviRajG worked for me. I ran this first pip uninstall locustio then ran this pip install git+git://github.com/locustio/locust.git@master#egg=locustio In the end, in order to check if it is compiling and working locust -f locustfile.py

@Naughtron have you read through any of the thread where about 10 people posted the same solution as resolving the problem?

Just discovered Locust, looking forward to using it, however this Issue is still relevant - can we get a new PyPi release please? 😃

Thanks and merry insert holiday name!

pip install locustio==0.8a2 worked for me too.

As above – Python 3.4 and on Locust 0.7.5