You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi. There is an import error in
locust/__init__.py
when imported from a folder wherecore
module already exists.Python version: 3.6
Consider next folder structure:
Line 1 in
locust/__init__.py
doesfrom 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.The text was updated successfully, but these errors were encountered: