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 if there is a "core" module in project #630

Closed
mclate opened this issue Jul 22, 2017 · 1 comment
Closed

ImportError if there is a "core" module in project #630

mclate opened this issue Jul 22, 2017 · 1 comment

Comments

@mclate
Copy link

mclate commented Jul 22, 2017

Hi. There is an import error in locust/__init__.py when imported from a folder where core module already exists.

Python version: 3.6

Consider next folder structure:

  • app/
    • core/
      • some_stuff.py
    • locust.py

Line 1 in locust/__init__.py does from core import ...
Under python 3 this makes interpreter to look for files not in locust core folder, but in core folder of my project.

Think changing line to from .core import ... will fix the issue.

@mclate
Copy link
Author

mclate commented Jul 22, 2017

Sorry, i've been using old version of locust and didn't check the master code....

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

1 participant