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

circular import in users/resource.py #2

Open
zengyee opened this issue Apr 29, 2020 · 1 comment
Open

circular import in users/resource.py #2

zengyee opened this issue Apr 29, 2020 · 1 comment

Comments

@zengyee
Copy link

zengyee commented Apr 29, 2020

when run the project with following command, got import errors:

python3 app.py -m flask run --host=0.0.0.0

error message:

ImportError: cannot import name 'UsersResource' from partially initialized module 'endpoints.users.resource' (most likely due to a circular import) (/home/jeff/Desktop/flask-restful-api-template-master/endpoints/users/resource.py)

not repro for python3 manage.py runserver

@kishdubey
Copy link

kishdubey commented Jan 3, 2021

Same issue as above! @zengyee I created a db.py file initializing db to solve this issue.

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

2 participants