Skip to content

circular import in users/resource.py #2

@zengyee

Description

@zengyee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions