-
-
Notifications
You must be signed in to change notification settings - Fork 753
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
Can't get the directory structure to resolve #969
Comments
remove the line |
Hmm, tried removing that and got the same error. |
mh, i copied your example here: https://github.com/drummerwolli/tmp_connexion_issue_969 ... this works for me ... can you maybe post your example somewhere, so we can have a closer look? |
just cloned your example - for my app I need to import other functions/values from within the src package. i.e. if I want to use a logger, I have to set it up as:
to add logging, I will have to then import If I remove all imports from under |
@drummerwolli any ideas? |
@drummerwolli : Did you find what was the problem ? I am facing similar issue |
sry, i have had no time lately to investigate this 😞 |
Description
I've spent the better part of a day trying to figure this out. Essentially I have his directory structure:
my_project
-- app.py
-- src
---- init.py
---- views.py
---- models.py
---- swagger
------ api.yml
app.py
is just:In
src/__init__.py
, I define the app:and then in
src/views.py
, I define the endpoints such asand finally in my swagger specs (
src/swagger/api.yml
) I haveExpected behaviour
Render correctly
Actual behaviour
I get the following error that claims that register_account isn't in my views. Is it something to do with my directory structure?:
Steps to reproduce
the above statements
Additional info:
Output of the commands:
python --version
Python 3.7.3
pip show connexion | grep "^Version\:"
Version: 2.2.0
The text was updated successfully, but these errors were encountered: