Skip to content

ImportError: cannot import name 'component' from partially initialized module 'reactpy' (most likely due to a circular import) #1122

@muhammadd8

Description

@muhammadd8

Current Situation

from reactpy import component, html, run

@component
def hello_world():
return html.h1("Hello, World!")

run(hello_world)

when i execute this test code, it gives me the error below
Traceback (most recent call last):
File "", line 1, in
File "/home/dev/Desktop/AIML/reactpy.py", line 1, in
from reactpy import component
ImportError: cannot import name 'component' from partially initialized module 'reactpy' (most likely due to a circular import) (/home/dev/Desktop/AIML/reactpy.py)

reactpy is installed and sample application pages is opening as well.
kindly tell how to cater this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions