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

how to run the master branch #732

Closed
jjnha opened this issue Feb 12, 2018 · 4 comments
Closed

how to run the master branch #732

jjnha opened this issue Feb 12, 2018 · 4 comments

Comments

@jjnha
Copy link

jjnha commented Feb 12, 2018

hi, i have pulled the master branch code

when i execute the command python main.py . something wrong happened

C:\Python27\python.exe D:/python-project/locust/locust/main.py
Traceback (most recent call last):
File "D:/python-project/locust/locust/main.py", line 14, in
from . import events, runners, web
File "C:\Python27\lib\site-packages\gevent\builtins.py", line 93, in import
result = _import(*args, **kwargs)
ValueError: Attempted relative import in non-package

how to deal with it ?

@jjnha
Copy link
Author

jjnha commented Feb 12, 2018

the python -V is 2.7.13

D:\python-project\locust-master\locust>python main.py
Traceback (most recent call last):
File "main.py", line 14, in
from . import events, runners, web
File "C:\Python27\lib\site-packages\gevent\builtins.py", line 93, in import
result = _import(*args, **kwargs)
ValueError: Attempted relative import in non-package

@heyman
Copy link
Member

heyman commented Feb 12, 2018

Try to run:

python setup.py install

And if Locust installs successfully you should hopefully be able to run locust:

locust --help

@jjnha
Copy link
Author

jjnha commented Feb 13, 2018

@heyman i know how to use the locust. i have run " python setup.py install"
but i want to debug the source code. is the main function the entrance to the project?
when i execute the command python main.py , the error comes

the python -V is 2.7.13

D:\python-project\locust-master\locust>python main.py
Traceback (most recent call last):
File "main.py", line 14, in
from . import events, runners, web
File "C:\Python27\lib\site-packages\gevent\builtins.py", line 93, in import
result = _import(*args, **kwargs)
ValueError: Attempted relative import in non-package

what should i do ?

thanks

@cgoldberg
Copy link
Member

see: #613

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

3 participants