Skip to content

Internal usage of find_spec results in unexpected import of parent packages #5478

@masenf

Description

@masenf

Describe the bug

Reflex needs to replace the use of find_spec, because importing parent of the app module could result in importing the app module itself if the parent imports the app module as well:

To Reproduce

app/__init__.py

from .app import app

REFLEX_USE_GRANIAN=1 reflex run

  • Python Version: 3
  • Reflex Version: 0.7.14

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions