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

ImportError: No module named 'core' #310

Closed
dotpot opened this issue Jul 31, 2015 · 25 comments
Closed

ImportError: No module named 'core' #310

dotpot opened this issue Jul 31, 2015 · 25 comments
Milestone

Comments

@dotpot
Copy link
Contributor

dotpot commented Jul 31, 2015

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

@vividhsv
Copy link

Looks like you are using python 3.4. Locust does not support python3.x yet.

You should use python2.7.

@dotpot
Copy link
Contributor Author

dotpot commented Jul 31, 2015

Oh i see, any ETA on py3 support ? Anyone is working on it already ?

@vividhsv
Copy link

No ETA defined yet, get more info on #279

@eyalev
Copy link

eyalev commented Aug 20, 2015

Happened to me as well. Was fixed after I re-entered the shell.

@jleclanche
Copy link

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?

@ryankennedyio
Copy link

As above -- Python 3.4 and on Locust 0.7.5

@MrLokans
Copy link

Same issue occurs on Python 3.5 in the virtual environment.

@PrithiviRajG
Copy link

Still Getting the same error as @richardasaurus mentioned in the previous comment, when I use Locust with python 3.4.

I installed locust by running pip install locustio command

@richardasaurus How to install master branch?

@PrithiviRajG
Copy link

@richardasaurus I am not able to find requirements.txt in python34 folder in C drive..
where can I find it?

I tried to install with pip install git+git://github.com/locustio/locust.git@master#egg=locustio but I am still getting the same error

@PrithiviRajG
Copy link

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

@simonamdev
Copy link

simonamdev commented Dec 25, 2016

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!

@AilisObrian
Copy link

Same error happened with Python 3.5.2 (virtualenv) and locust 0.7.5.

@sunnytambi
Copy link

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

@heyman
Copy link
Member

heyman commented Feb 14, 2017

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

@justiniso justiniso added this to the 0.8.0 milestone Feb 14, 2017
@jruizaranguren
Copy link

pip install locustio==0.8a2 worked for me.

@liusong1999
Copy link

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

@luoziluojun
Copy link

pip install locustio==0.8a2 worked for me too

@eddscode
Copy link

eddscode commented Jul 7, 2017

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

@cgoldberg
Copy link
Member

redundant "me too" comments on closed issues aren't very useful.

@baynes
Copy link

baynes commented Jul 12, 2017

@heyman In Feb you said "0.8 should be released soon" - but pip still installs 0.7.5 by default and it is now July. Please can you clarify what you mean by "soon"

@cgoldberg
Copy link
Member

@baynes: I'd also like to get the new release out, and hopefully we can get it uploaded to PyPI sooner than later. However, "soon" is subjective, and may not necessarily point to a particular point in time ¯\_(ツ)_/¯

In the meantime, you can pip install directly from git.

@charleshu44
Copy link

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

@naughtron
Copy link

Has this issue been addressed? I am running a virtual env with Python 3.6 and

locustio==0.7.5
pyzmq==16.0.2
(locust_py_3)$ python
Python 3.6.2 (default, Jul 17 2017, 16:44:45)

when I attempt to run a script the following error occurs:

(locust_py_3) $ locust -f testmctest.py
Traceback (most recent call last):
  File "/Users/python_code/locust_py_3/bin/locust", line 7, in <module>
    from locust.main import main
  File "/Users/python_code/locust_py_3/lib/python3.6/site-packages/locust/__init__.py", line 1, in <module>
    from core import HttpLocust, Locust, TaskSet, task
ModuleNotFoundError: No module named 'core'

@aldenpeterson-wf
Copy link
Contributor

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

@zjdataa
Copy link

zjdataa commented Jul 7, 2020

good,i found it.thank you

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