This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Import error in hooks #17
Comments
@teone thanks for the report, what version of python are you using? |
|
Sorry for not repsonding got busy by other tasks. Is it still valid or have you found a solution? |
I'm having the same problem trying to import a function from another module into the dredd hooks module. It keeps saying 'No module named ...' even though the module is in the same directory as the dredd hooks one |
@DomhnallBoyle Are you on Python 2.7 as well? |
Yes 2.7.6 |
Cheers, will look into it. |
Thank-you |
w-vi
pushed a commit
that referenced
this issue
Oct 24, 2016
w-vi
pushed a commit
that referenced
this issue
Oct 24, 2016
@teone @DomhnallBoyle could you please confirm this has been fixed in #24? Thanks! |
Yes works great, thank-you! |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to create a
helpers
module to setup the db in my tests and import in into myhooks.py
file.This is the folder structure:
the subscriber module is:
I was trying to import it into
hooks.py
as:from helpers import subscriber
but I keep getting:
ImportError: No module named helpers
,googling around it seems to be the right syntax, any idea of what I’m missing?
Thanks in advance
The text was updated successfully, but these errors were encountered: